Invoke app-prefixed active storage task when in engine

This commit is contained in:
Hirofumi Wakasugi 2017-12-11 12:24:11 +09:00
parent 9b2180c7de
commit 66a22dee1c

@ -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