instance method recreate_database

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.1.12

Signature

recreate_database(name, options = {})

Drops the database specified on the name attribute and creates it again using the provided options.

Parameters

name req
options opt = {}
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

Defined in ActiveRecord::ConnectionAdapters::Mysql2Adapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close