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 12
      def create
        establish_connection configuration_without_database
        connection.create_database configuration["database"], creation_options
        establish_connection configuration
      rescue ActiveRecord::StatementInvalid => error
        if error.message.include?("database exists")
          raise DatabaseAlreadyExists
        else
          raise
        end
      end
Register or log in to add new notes.