instance method
create_all
Ruby on Rails 5.0.7.2
Since v4.0.13Signature
create_all()
No documentation comment.
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 119
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)
end
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 119
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks