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.



736
737
738
739
# File 'lib/active_record/connection_adapters/postgresql_adapter.rb', line 736

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