lib/j-cap-recipes/tasks/database.rake in j-cap-recipes-0.0.17 vs lib/j-cap-recipes/tasks/database.rake in j-cap-recipes-0.0.18
- old
+ new
@@ -22,9 +22,10 @@
task :backup do
on primary fetch(:migration_role) do
within release_path do
with rails_env: fetch(:rails_env) do
execute :rake, 'db:backup'
+ execute :rake, 'db:cleanup', "ROTATE=#{fetch(:keep_releases)}"
end
end
end
end