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.



722
723
724
725
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 722

def recreate_database(name, options = {}) #:nodoc:
  drop_database(name)
  create_database(name, options)
end