method
load_schema_current
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
load_schema_current(format = ActiveRecord.schema_format, file = nil, environment = env)public
No documentation available.
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 471
def load_schema_current(format = ActiveRecord.schema_format, file = nil, environment = env)
each_current_configuration(environment) do |db_config|
load_schema(db_config, format, file)
end
ActiveRecord::Base.establish_connection(environment.to_sym)
end