Skip to content

Commit 2fb78dc

Browse files
authored
Merge pull request rails#31391 from 5t111111/fix-active_storage-installation-failure-in-engine
Fix active_storage installation failure when in engine
2 parents d4007d5 + 66a22de commit 2fb78dc

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)