diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-03-06 17:35:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 17:35:43 +0000 |
commit | 53692535896437f7c67093820f09440c672fa215 (patch) | |
tree | 52b2da521fcd5d135b52a45c117ab214e4e68ae1 /railties/lib/rails/generators/app_base.rb | |
parent | fde46f43bd8913c06e42f936dfde363a55edf774 (diff) | |
parent | bcbb8c718d88ebbe152aecff61bcc30ba394adaf (diff) | |
download | rails-53692535896437f7c67093820f09440c672fa215.tar.gz rails-53692535896437f7c67093820f09440c672fa215.tar.bz2 rails-53692535896437f7c67093820f09440c672fa215.zip |
Merge pull request #28257 from yahonda/app_generators_use_oracle_enhanced
Update `database.yml` when `rails new <new_app> -d oracle` specified
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 56e286f259..ebe8cfea60 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -280,7 +280,7 @@ module Rails case options[:database] when "mysql" then ["mysql2", [">= 0.3.18", "< 0.5"]] when "postgresql" then ["pg", ["~> 0.18"]] - when "oracle" then ["ruby-oci8", nil] + when "oracle" then ["activerecord-oracle_enhanced-adapter", nil] when "frontbase" then ["ruby-frontbase", nil] when "sqlserver" then ["activerecord-sqlserver-adapter", nil] when "jdbcmysql" then ["activerecord-jdbcmysql-adapter", nil] @@ -296,7 +296,6 @@ module Rails case options[:database] when "postgresql" then options[:database].replace "jdbcpostgresql" when "mysql" then options[:database].replace "jdbcmysql" - when "oracle" then options[:database].replace "jdbc" when "sqlite3" then options[:database].replace "jdbcsqlite3" end end |