Flowdock
method

create

Importance_0
create() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/tasks/mysql_database_tasks.rb, line 14
      def create
        establish_connection configuration_without_database
        connection.create_database configuration["database"], creation_options
        establish_connection configuration
      rescue ActiveRecord::StatementInvalid => error
        if connection.error_number(error.cause) == ER_DB_CREATE_EXISTS
          raise DatabaseAlreadyExists
        else
          raise
        end
      end
Register or log in to add new notes.