Permalink
Browse files

Fix the schema_path in 'schema loaded': root should be for the path t…

…o the schema, not the working dir of the command.
  • Loading branch information...
1 parent 431e12c commit 40f1ee373d4193a3442f2a860a1d7775fd451e60 @benhoskings committed Oct 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 db.rb
View
2 db.rb
@@ -56,7 +56,7 @@ def db_type
} > 0
}
meet {
- log_shell "Applying #{schema_path} to #{db_name}", "psql #{db_name} -f -", :cd => root, :input => schema_path.p.read!
+ log_shell "Applying #{schema_path} to #{db_name}", "psql #{db_name} -f -", :input => (root / schema_path).p.read!
}
end

0 comments on commit 40f1ee3

Please sign in to comment.