Method: ActiveRecord::Tasks::MySQLDatabaseTasks#create

Defined in:
lib/active_record/tasks/mysql_database_tasks.rb

#createObject



19
20
21
22
23
# File 'lib/active_record/tasks/mysql_database_tasks.rb', line 19

def create
  establish_connection(configuration_hash_without_database)
  connection.create_database(db_config.database, creation_options)
  establish_connection(db_config)
end