aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-07-09 17:00:22 +0200
committerGitHub <noreply@github.com>2017-07-09 17:00:22 +0200
commitbed328c888ea35b08ad1c25ffe5f3c421ae2312e (patch)
treea90dff23bceb31084b0d9d5223d90b3b0c61d3b5 /railties/lib
parent551f88366dcbaed3b0abc89bddd63975c4c9a5ca (diff)
parente12715bfd55831a84e9398280fb294d9136ede2e (diff)
downloadrails-bed328c888ea35b08ad1c25ffe5f3c421ae2312e.tar.gz
rails-bed328c888ea35b08ad1c25ffe5f3c421ae2312e.tar.bz2
rails-bed328c888ea35b08ad1c25ffe5f3c421ae2312e.zip
Merge pull request #29725 from y-yagi/fix_29717
Load environment file in `dbconsole` command
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/commands/dbconsole/dbconsole_command.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/dbconsole/dbconsole_command.rb b/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
index 5db588b66a..b3df5191c6 100644
--- a/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
+++ b/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
@@ -148,6 +148,7 @@ module Rails
def perform
extract_environment_option_from_argument
+ require_application_and_environment!
Rails::DBConsole.start(options)
end
end