Flowdock
method

create

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: MySQLDatabaseTasks
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.