Sha256: 1d8d5c0cd24a82b9ed15009b24d1fe7af09f0bb8ebad146173b957b8839bfd69

Contents?: true

Size: 695 Bytes

Versions: 48

Compression:

Stored size: 695 Bytes

Contents

# frozen_string_literal: true

namespace :active_storage do
  # Prevent migration installation task from showing up twice.
  Rake::Task["install:migrations"].clear_comments

  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

  # desc "Copy over the migrations needed to the application upgrading"
  task update: :environment do
    ENV["MIGRATIONS_PATH"] = "db/update_migrate"

    Rake::Task["active_storage:install"].invoke
  end
end

Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
activestorage-6.0.6.1 lib/tasks/activestorage.rake
activestorage-6.0.6 lib/tasks/activestorage.rake
activestorage-6.0.5.1 lib/tasks/activestorage.rake
activestorage-6.0.5 lib/tasks/activestorage.rake
activestorage-6.0.4.8 lib/tasks/activestorage.rake
activestorage-6.0.4.7 lib/tasks/activestorage.rake
activestorage-6.0.4.6 lib/tasks/activestorage.rake
activestorage-6.0.4.5 lib/tasks/activestorage.rake
activestorage-6.0.4.4 lib/tasks/activestorage.rake
activestorage-6.0.4.3 lib/tasks/activestorage.rake
activestorage-6.0.4.2 lib/tasks/activestorage.rake
activestorage-6.0.4.1 lib/tasks/activestorage.rake
activestorage-6.0.4 lib/tasks/activestorage.rake
activestorage-6.0.3.7 lib/tasks/activestorage.rake
activestorage-6.1.3.2 lib/tasks/activestorage.rake
activestorage-6.1.3.1 lib/tasks/activestorage.rake
activestorage-6.0.3.6 lib/tasks/activestorage.rake
activestorage-6.1.3 lib/tasks/activestorage.rake
activestorage-6.1.2.1 lib/tasks/activestorage.rake
activestorage-6.0.3.5 lib/tasks/activestorage.rake