Invoke app-prefixed active storage task when in engine
This commit is contained in:
parent
9b2180c7de
commit
66a22dee1c
|
@ -3,6 +3,10 @@
|
||||||
namespace :active_storage do
|
namespace :active_storage do
|
||||||
desc "Copy over the migration needed to the application"
|
desc "Copy over the migration needed to the application"
|
||||||
task install: :environment do
|
task install: :environment do
|
||||||
|
if Rake::Task.task_defined?("active_storage:install:migrations")
|
||||||
Rake::Task["active_storage:install:migrations"].invoke
|
Rake::Task["active_storage:install:migrations"].invoke
|
||||||
|
else
|
||||||
|
Rake::Task["app:active_storage:install:migrations"].invoke
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue