Sha256: 7864e3080eabf16f408863012945f58aed414a17925337a8fd2d5d6249de600e

Contents?: true

Size: 723 Bytes

Versions: 9

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

namespace :solidus_friendly_promotions do
  namespace :migrate_order_promotions do
    desc "Migrate order promotions from Spree::OrderPromotion sources to SolidusFriendlyPromotions::FriendlyOrderPromotion sources"
    task up: :environment do
      require "solidus_friendly_promotions/migrate_order_promotions"
      SolidusFriendlyPromotions::MigrateOrderPromotions.up
    end

    desc "Migrate order promotions from SolidusFriendlyPromotions::FriendlyOrderPromotion sources to Spree::OrderPromotion sources"
    task down: :environment do
      require "solidus_friendly_promotions/migrate_order_promotions"
      SolidusFriendlyPromotions::MigrateOrderPromotions.down
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.9.2 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.9.1 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.9.0 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.0.0 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.0.0.rc.3 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.0.0.rc.2 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.0.0.rc.1 lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake
solidus_friendly_promotions-1.0.0.pre lib/tasks/solidus_friendly_promotions/migrate_order_promotions.rake