aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/tasks/activestorage.rake
blob: 296e91afa10e04eb80075b4a8cd5206b2c5a2534 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

namespace :active_storage do
  desc "Copy over the migration needed to the application"
  task install: :environment do
    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