spec/fixtures/rails.single.config.xml in hudson-0.3.0.beta.17 vs spec/fixtures/rails.single.config.xml in hudson-0.3.0.beta.18

- old
+ new

@@ -58,10 +58,18 @@ FileUtils.cp example, &quot;config/database.yml&quot; end </command> </hudson.plugins.ruby.Ruby> <hudson.tasks.Shell> - <command>bundle exec rake db:schema:load</command> + <command>bundle exec rake db:create:all</command> + </hudson.tasks.Shell> + <hudson.tasks.Shell> + <command>if [ -f db/schema.rb ]; then + bundle exec rake db:migrate +else + bundle exec rake db:schema:load +fi +</command> </hudson.tasks.Shell> <hudson.tasks.Shell> <command>bundle exec rake</command> </hudson.tasks.Shell> </builders>