instance method
recreate_database
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
recreate_database(name, options = {})
Drops the database specified on the name attribute and creates it again using the provided options.
Parameters
-
namereq -
optionsopt = {}
Source
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 381
def recreate_database(name, options = {})
drop_database(name)
create_database(name, options)
end
Defined in activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb line 381
· View on GitHub
· Improve this page
· Find usages on GitHub