diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-01-02 13:35:56 -0500 |
---|---|---|
committer | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2019-01-09 14:23:29 -0500 |
commit | d49899c15431104f8dad374363bac57479b4bd39 (patch) | |
tree | 4b6098ac607509a893a89a3d5cce0ae591b16c24 /railties/lib/rails/generators | |
parent | 4b1ae57f0f905bd8cb63e435197db5014239d39e (diff) | |
download | rails-d49899c15431104f8dad374363bac57479b4bd39.tar.gz rails-d49899c15431104f8dad374363bac57479b4bd39.tar.bz2 rails-d49899c15431104f8dad374363bac57479b4bd39.zip |
Revise wording on invalid database error messages
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/db/system/change/change_generator.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index f756748e17..261a2ccb7b 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -267,7 +267,7 @@ module Rails super if !options[:skip_active_record] && !DATABASES.include?(options[:database]) - raise Error, "Invalid value for --database option. Supported for preconfiguration are: #{DATABASES.join(", ")}." + raise Error, "Invalid value for --database option. Supported preconfigurations are: #{DATABASES.join(", ")}." end # Force sprockets and yarn to be skipped when generating API only apps. diff --git a/railties/lib/rails/generators/rails/db/system/change/change_generator.rb b/railties/lib/rails/generators/rails/db/system/change/change_generator.rb index e7696dec0c..63849eb18d 100644 --- a/railties/lib/rails/generators/rails/db/system/change/change_generator.rb +++ b/railties/lib/rails/generators/rails/db/system/change/change_generator.rb @@ -22,7 +22,7 @@ module Rails super unless DATABASES.include?(options[:to]) - raise Error, "Invalid value for --to option. Supported for preconfiguration are: #{DATABASES.join(", ")}." + raise Error, "Invalid value for --to option. Supported preconfigurations are: #{DATABASES.join(", ")}." end opt = options.dup |