aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-12-13 08:10:44 -0500
committerGitHub <noreply@github.com>2017-12-13 08:10:44 -0500
commit2fb78dc30528b3a2dcf539ba1d3c77f01f04885e (patch)
treeda63539f452593c0da87c62d2dafd5537987e780 /activestorage/lib
parentd4007d5a54b60bd6924eeffb52c126ed32e9f31f (diff)
parent66a22dee1cec365d459559b96a658dfc4daef0c4 (diff)
downloadrails-2fb78dc30528b3a2dcf539ba1d3c77f01f04885e.tar.gz
rails-2fb78dc30528b3a2dcf539ba1d3c77f01f04885e.tar.bz2
rails-2fb78dc30528b3a2dcf539ba1d3c77f01f04885e.zip
Merge pull request #31391 from 5t111111/fix-active_storage-installation-failure-in-engine
Fix active_storage installation failure when in engine
Diffstat (limited to 'activestorage/lib')
-rw-r--r--activestorage/lib/tasks/activestorage.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/activestorage/lib/tasks/activestorage.rake b/activestorage/lib/tasks/activestorage.rake
index ef923e5926..296e91afa1 100644
--- a/activestorage/lib/tasks/activestorage.rake
+++ b/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