aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/tasks/activestorage.rake
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib/tasks/activestorage.rake')
-rw-r--r--activestorage/lib/tasks/activestorage.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/activestorage/lib/tasks/activestorage.rake b/activestorage/lib/tasks/activestorage.rake
index ac254d717f..6b0469636c 100644
--- a/activestorage/lib/tasks/activestorage.rake
+++ b/activestorage/lib/tasks/activestorage.rake
@@ -12,4 +12,11 @@ namespace :active_storage do
Rake::Task["app:active_storage:install:migrations"].invoke
end
end
+
+ # desc "Copy over the migrations needed to the application upgrading"
+ task update: :environment do
+ ENV["MIGRATIONS_PATH"] = "db/update_migrate"
+
+ Rake::Task["active_storage:install"].invoke
+ end
end