Why migrate on CI? Schema load.

This commit is contained in:
Raphael Sofaer 2011-07-04 18:15:18 -07:00
parent 9debec4410
commit 1cd9c4bd0f

View file

@ -16,7 +16,7 @@ namespace :cruise do
end end
task :migrate do task :migrate do
system('bundle exec rake db:migrate') system('bundle exec rake db:schema:load')
exit_status = $?.exitstatus exit_status = $?.exitstatus
raise "db:migrate failed!" unless exit_status == 0 raise "db:migrate failed!" unless exit_status == 0
end end