instance method
create_all
Ruby on Rails 5.2.8.1
Since v4.0.13Signature
create_all()
No documentation comment.
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 129
def create_all
old_pool = ActiveRecord::Base.connection_handler.retrieve_connection_pool(ActiveRecord::Base.connection_specification_name)
each_local_configuration { |configuration| create configuration }
if old_pool
ActiveRecord::Base.connection_handler.establish_connection(old_pool.spec.to_hash)
end
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 129
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks