Sha256: e16e1013ac8b8d3a53ad7b2a3898012ae39a166fb9e95e9df3e194fe647def5c

Contents?: true

Size: 826 Bytes

Versions: 106

Compression:

Stored size: 826 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"

    if Rake::Task.task_defined?("active_storage:install")
      Rake::Task["active_storage:install"].invoke
    else
      Rake::Task["app:active_storage:install"].invoke
    end
  end
end

Version data entries

106 entries across 101 versions & 10 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activestorage-7.0.8.7/lib/tasks/activestorage.rake
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activestorage-7.1.3.4/lib/tasks/activestorage.rake
activestorage-8.0.1 lib/tasks/activestorage.rake
activestorage-8.0.0.1 lib/tasks/activestorage.rake
activestorage-7.2.2.1 lib/tasks/activestorage.rake
activestorage-7.1.5.1 lib/tasks/activestorage.rake
activestorage-7.0.8.7 lib/tasks/activestorage.rake
activestorage-8.0.0 lib/tasks/activestorage.rake
activestorage-7.2.2 lib/tasks/activestorage.rake
activestorage-7.1.5 lib/tasks/activestorage.rake
activestorage-8.0.0.rc2 lib/tasks/activestorage.rake
activestorage-7.2.1.2 lib/tasks/activestorage.rake
activestorage-7.1.4.2 lib/tasks/activestorage.rake
activestorage-7.0.8.6 lib/tasks/activestorage.rake
activestorage-6.1.7.10 lib/tasks/activestorage.rake
activestorage-8.0.0.rc1 lib/tasks/activestorage.rake
activestorage-6.1.7.9 lib/tasks/activestorage.rake
activestorage-7.2.1.1 lib/tasks/activestorage.rake
activestorage-7.1.4.1 lib/tasks/activestorage.rake
activestorage-7.0.8.5 lib/tasks/activestorage.rake