diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2013-10-27 09:46:45 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2013-10-27 09:46:45 -0700 |
commit | 660523123103e904622a135940a1c12ad9256629 (patch) | |
tree | 6a64d48f8536317dbb347ce6bb58ab9f64f05116 /activerecord/lib/active_record | |
parent | 094e31ce6700993759c6f36db52afb0a43bfa71f (diff) | |
download | rails-660523123103e904622a135940a1c12ad9256629.tar.gz rails-660523123103e904622a135940a1c12ad9256629.tar.bz2 rails-660523123103e904622a135940a1c12ad9256629.zip |
Add a note about ensuring the version is right for the adapter (since you might well have specified the right gem, but locked it to too low of a version)
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/connection_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb index 8bad7d0cf5..64fc9e95d8 100644 --- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb @@ -55,7 +55,7 @@ module ActiveRecord begin require path_to_adapter rescue Gem::LoadError => e - raise Gem::LoadError, "Specified '#{spec[:adapter]}' for database adapter, but the gem is not loaded. Add `gem '#{e.name}'` to your Gemfile." + raise Gem::LoadError, "Specified '#{spec[:adapter]}' for database adapter, but the gem is not loaded. Add `gem '#{e.name}'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord)." rescue LoadError => e raise LoadError, "Could not load '#{path_to_adapter}'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.", e.backtrace end |