diff options
author | Sean Kirby <seank@nulogy.com> | 2012-01-31 18:45:54 -0500 |
---|---|---|
committer | Sean Kirby <seank@nulogy.com> | 2012-02-01 15:43:15 -0500 |
commit | 745fbd1b4cef120ba468e475d5c7686ff136a553 (patch) | |
tree | cc5d745028d6fe096625e0b06261e9eaa41f7b47 /activerecord/lib | |
parent | 56ba2103c89c8ee12ecc8995f759c459796fa328 (diff) | |
download | rails-745fbd1b4cef120ba468e475d5c7686ff136a553.tar.gz rails-745fbd1b4cef120ba468e475d5c7686ff136a553.tar.bz2 rails-745fbd1b4cef120ba468e475d5c7686ff136a553.zip |
fixes rake db:test:prepare when using postgresql with sql db structure file and specifying a template in database.yml
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 822b51e838..821410f42c 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -420,7 +420,7 @@ db_namespace = namespace :db do end when /postgresql/ set_psql_env(abcs[env]) - `psql -f "#{filename}" #{abcs[env]['database']} #{abcs[env]['template']}` + `psql -f "#{filename}" #{abcs[env]['database']}` when /sqlite/ dbfile = abcs[env]['database'] `sqlite3 #{dbfile} < "#{filename}"` |