Created
July 20, 2017 20:20
-
-
Save wikimatze/2f7aa2ae2f282af50a175420542ec489 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "=> Creating database '#{database}'" | |
if config[:adapter] == 'sqlite3' | |
::Sequel.sqlite(database) | |
else | |
require 'padrino-gen/padrino-tasks/sql-helpers' | |
Padrino::Generators::SqlHelpers.create_db(config[:adapter], user, password, host, database, charset, collation) | |
end | |
puts "<= sq:create executed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment