db:schema:load db:schema:dump: establish_connection(Rails.env) -> establ... #6736

Closed
wants to merge 1 commit into from
Commits on Jun 14, 2012
  1. @clacke

    db:schema:load db:schema:dump: establish_connection(Rails.env) -> est…

    clacke committed Jun 14, 2012
    …ablish_connection'
    
    etablish_connection(Rails.env) messes up when DATABASE_URL points to a valid db,
    but Rails.env points to an invalid config in config/database.yml.
    
    The behavior of using DATABASE_URL first matches that of db:migrate.