method

perform

perform()
public

No documentation available.

# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 164
      def perform
        extract_environment_option_from_argument

        # RAILS_ENV needs to be set before config/application is required.
        ENV["RAILS_ENV"] = options[:environment]

        if options["connection"]
          ActiveSupport::Deprecation.warn(            `connection` option is deprecated and will be removed in Rails 6.1. Please use `database` option instead..squish)
          options["database"] = options["connection"]
        end

        require_application_and_environment!
        Rails::DBConsole.start(options)
      end