lib/hudson/job_config_builder.rb in hudson-0.3.0 vs lib/hudson/job_config_builder.rb in hudson-0.3.1
- old
+ new
@@ -165,12 +165,12 @@
end
RUBY
[:build_shell_step, "bundle exec rake db:create:all"],
[:build_shell_step, <<-RUBY.gsub(/^ /, '')],
if [ -f db/schema.rb ]; then
- bundle exec rake db:migrate
- else
bundle exec rake db:schema:load
+ else
+ bundle exec rake db:migrate
fi
RUBY
[:build_shell_step, "bundle exec rake"]
]
else
\ No newline at end of file