Skip to content

Commit 66a22de

Browse files
committed
Invoke app-prefixed active storage task when in engine
1 parent 9b2180c commit 66a22de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

activestorage/lib/tasks/activestorage.rake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
namespace :active_storage do
44
desc "Copy over the migration needed to the application"
55
task install: :environment do
6-
Rake::Task["active_storage:install:migrations"].invoke
6+
if Rake::Task.task_defined?("active_storage:install:migrations")
7+
Rake::Task["active_storage:install:migrations"].invoke
8+
else
9+
Rake::Task["app:active_storage:install:migrations"].invoke
10+
end
711
end
812
end

0 commit comments

Comments
 (0)