Class: Mongoid::Command::DbconsoleCommand

Inherits:
Rails::Command::Base
  • Object
show all
Includes:
Rails::Command::EnvironmentArgument
Defined in:
lib/railsmdb/commands/dbconsole/dbconsole_command.rb

Overview

The implementation of the ‘dbconsole` command for Railsmdb.

Instance Method Summary collapse

Instance Method Details

#performObject



14
15
16
17
# File 'lib/railsmdb/commands/dbconsole/dbconsole_command.rb', line 14

def perform
  require_application_and_environment!
  exec_mongosh_with(Rails.env || 'default')
end