mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Invoke app-prefixed active storage task when in engine
This commit is contained in:
parent
9b2180c7de
commit
66a22dee1c
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue