diff options
author | Grace Liu <graceliu@yahoo.com> | 2012-10-12 15:57:41 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-29 15:08:29 -0200 |
commit | e7a6b92959012ffde730b2daa38ecd006570779c (patch) | |
tree | a989967669a11f2cae063f77e9387acdc9c102f8 /activerecord/test/cases/custom_locking_test.rb | |
parent | 6ed23ea5d4969e25707bdf22dfcbc355e5daf194 (diff) | |
download | rails-e7a6b92959012ffde730b2daa38ecd006570779c.tar.gz rails-e7a6b92959012ffde730b2daa38ecd006570779c.tar.bz2 rails-e7a6b92959012ffde730b2daa38ecd006570779c.zip |
fixed support for DATABASE_URL for rake db tasks
Backport for #7521
- added tests to confirm establish_connection uses DATABASE_URL and
Rails.env correctly even when no arguments are passed in.
- updated rake db tasks to support DATABASE_URL, and added tests to
confirm correct behavior for these rake tasks. (Removed
establish_connection call from some tasks since in those cases
the :environment task already made sure the function would be called)
- updated Resolver so that when it resolves the database url, it
removes hash values with empty strings from the config spec (e.g.
to support connection to postgresql when no username is specified).
- updated ResolverTest to use current_adapter? to check the type of
the current adapter.
Diffstat (limited to 'activerecord/test/cases/custom_locking_test.rb')
0 files changed, 0 insertions, 0 deletions