Sha256: 1f9df34a6bba60a4657ac06f55740d7dade875fa6c8805b3ccce55fd8bb76e6d

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

# This migration comes from spree_promo (originally 20100419190933)
class RenameCouponsToPromotions < ActiveRecord::Migration
  def up
    drop_table :promotions if table_exists?(:promotions)
    rename_table :coupons, :promotions
  end

  def down
    rename_table :promotions, :coupons
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154468_rename_coupons_to_promotions.spree_promo.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151261_rename_coupons_to_promotions.spree_promo.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192829_rename_coupons_to_promotions.spree_promo.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081560_rename_coupons_to_promotions.spree_promo.rb