method
create_current
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
create_current(environment = env, spec_name = nil)public
No documentation available.
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 183
def create_current(environment = env, spec_name = nil)
each_current_configuration(environment, spec_name) { |configuration|
create configuration
}
ActiveRecord::Base.establish_connection(environment.to_sym)
end