Created
July 27, 2015 14:54
-
-
Save Jamedjo/df58acf9561dedb314d5 to your computer and use it in GitHub Desktop.
cap staging db:migrate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
%w[create migrate rollback seed setup version migrate:status].each do |command| | |
desc "Rake db:#{command}" | |
task command do | |
on roles(:app) do | |
within "#{current_path}" do | |
with rails_env: :production do | |
execute :rake, "db:#{command}" | |
end | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment