We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b2180c commit 66a22deCopy full SHA for 66a22de
activestorage/lib/tasks/activestorage.rake
@@ -3,6 +3,10 @@
3
namespace :active_storage do
4
desc "Copy over the migration needed to the application"
5
task install: :environment do
6
- Rake::Task["active_storage:install:migrations"].invoke
+ 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
11
end
12
0 commit comments