On Tue, Jul 17, 2012 at 2:27 PM, Aaron Patterson
<[email protected]> wrote:
> If you find entry points where the environment variable *isn't* used,
> then we should consider it a bug.  For example, I just discovered that
> `rake db:schema:dump` will not use the environment variable:
>   
> https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/databases.rake#L229
>
> So someone should send a patch for that. :-)

Is it simple as:

-        ActiveRecord::Base.establish_connection(Rails.env)
+        ActiveRecord::Base.establish_connection(ENV["DATABASE_URL"]
|| Rails.env)

wherever I see it not being used? Also inside namespace :test? Are
there tests for rake tasks?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to