Skip to content

Instantly share code, notes, and snippets.

@wikimatze
Created July 20, 2017 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wikimatze/2f7aa2ae2f282af50a175420542ec489 to your computer and use it in GitHub Desktop.
Save wikimatze/2f7aa2ae2f282af50a175420542ec489 to your computer and use it in GitHub Desktop.
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