Merge pull request #2980 from s-f-s/white_spaces_fix_in_integration_rake_task

Fix to allow white spaces in Rails.root path for the integration rake task [ci skip]
This commit is contained in:
Maxwell Salzberg 2012-03-06 12:16:36 -08:00
commit 2a498d4d85

View file

@ -23,11 +23,11 @@ namespace :db do
puts envs.inspect
envs.each do |env|
puts "dropping #{env}..."
`cd #{Rails.root} && RAILS_ENV=#{env} bundle exec rake db:drop`
`cd "#{Rails.root}" && RAILS_ENV=#{env} bundle exec rake db:drop`
puts "creating #{env}..."
`cd #{Rails.root} && RAILS_ENV=#{env} bundle exec rake db:create`
`cd "#{Rails.root}" && RAILS_ENV=#{env} bundle exec rake db:create`
puts "migrating #{env}..."
`cd #{Rails.root} && RAILS_ENV=#{env} bundle exec rake db:migrate`
`cd "#{Rails.root}" && RAILS_ENV=#{env} bundle exec rake db:migrate`
end
end
end