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.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/activestorage/lib/tasks/activestorage.rake b/activestorage/lib/tasks/activestorage.rake
index ef923e5926..296e91afa1 100644
--- a/activestorage/lib/tasks/activestorage.rake
+++ b/activestorage/lib/tasks/activestorage.rake
@@ -3,6 +3,10 @@
namespace :active_storage do
desc "Copy over the migration needed to the application"
task install: :environment do
- Rake::Task["active_storage:install:migrations"].invoke
+ if Rake::Task.task_defined?("active_storage:install:migrations")
+ Rake::Task["active_storage:install:migrations"].invoke
+ else
+ Rake::Task["app:active_storage:install:migrations"].invoke
+ end
end
end