From e7a6b92959012ffde730b2daa38ecd006570779c Mon Sep 17 00:00:00 2001 From: Grace Liu Date: Fri, 12 Oct 2012 15:57:41 -0700 Subject: 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. --- activerecord/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index aa68934099..c762210941 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,7 @@ ## Rails 3.2.9 (unreleased) +* Fixed support for DATABASE_URL environment variable for rake db tasks. *Grace Liu* + * Fix bug where `update_columns` and `update_column` would not let you update the primary key column. *Henrik Nyh* -- cgit v1.2.3