Permalink
Browse files

Add rake tasks for creating / dropping test database in postgres

  • Loading branch information...
1 parent 5519063 commit c3173b03e1c49fd609d11d0cfb601cf5280ca33e @nathansobo committed Mar 4, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 Rakefile
View
@@ -17,3 +17,14 @@ desc "Run prequel specs"
task :spec do
system "rspec spec/prequel"
end
+
+namespace :db do
+ desc "Create the test database in postgres"
+ task :create do
+ system "createdb -E utf8 prequel_test"
+ end
+
+ task :drop do
+ system "dropdb prequel_test"
+ end
+end

0 comments on commit c3173b0

Please sign in to comment.