aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-04-05 21:14:05 +0930
committerGitHub <noreply@github.com>2017-04-05 21:14:05 +0930
commited617a324adb075db7b3a6785e56200d8a0c90a3 (patch)
treed7b619bcbea09573b0a7061d5853d587801fcdd6 /railties
parentc866cf9df8b7d767f8be8272b120b44f453212cb (diff)
parentc4a11171da2e56a46d7c2e1ee3ba82cca9a72a5f (diff)
downloadrails-ed617a324adb075db7b3a6785e56200d8a0c90a3.tar.gz
rails-ed617a324adb075db7b3a6785e56200d8a0c90a3.tar.bz2
rails-ed617a324adb075db7b3a6785e56200d8a0c90a3.zip
Merge pull request #28671 from y-yagi/use_appropriate_type_to_header_option
Use appropriate type to `header` option
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/commands/dbconsole/dbconsole_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole/dbconsole_command.rb b/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
index 588fb06b15..5bfbe58d97 100644
--- a/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
+++ b/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
@@ -140,7 +140,7 @@ module Rails
class_option :mode, enum: %w( html list line column ), type: :string,
desc: "Automatically put the sqlite3 database in the specified mode (html, list, line, column)."
- class_option :header, type: :string
+ class_option :header, type: :boolean
class_option :environment, aliases: "-e", type: :string,
desc: "Specifies the environment to run this console under (test/development/production)."