Method: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#recreate_database
- Defined in:
- lib/active_record/connection_adapters/postgresql_adapter.rb
#recreate_database(name, options = {}) ⇒ Object
Drops the database specified on the name attribute and creates it again using the provided options.
734 735 736 737 |
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 734 def recreate_database(name, = {}) #:nodoc: drop_database(name) create_database(name, ) end |