Allow for white spaces in Rails.root path for the integration rake task
This commit is contained in:
parent
5a7c8d8ea4
commit
4d1cb56e47
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue