Permalink
Browse files

Merge pull request #31391 from 5t111111/fix-active_storage-installati…

…on-failure-in-engine

Fix active_storage installation failure when in engine
  • Loading branch information...
eileencodes committed Dec 13, 2017
2 parents d4007d5 + 66a22de commit 2fb78dc30528b3a2dcf539ba1d3c77f01f04885e
Showing with 5 additions and 1 deletion.
  1. +5 −1 activestorage/lib/tasks/activestorage.rake
@@ -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

0 comments on commit 2fb78dc

Please sign in to comment.