Permalink
Browse files

fixes rake db:test:prepare when using postgresql with sql db structur…

…e file and specifying a template in database.yml
  • Loading branch information...
1 parent 56ba210 commit 745fbd1b4cef120ba468e475d5c7686ff136a553 @sskirby sskirby committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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}"`

0 comments on commit 745fbd1

Please sign in to comment.