Sha256: 74f91e93a15d518c191075a0d3580b69ebac68e1874c1d6d6a5278818f00a2e3

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

# This migration comes from spree_promo (originally 20100501095202)
class CreatePromotionRulesUsers < ActiveRecord::Migration
  def up
    create_table :promotion_rules_users do |t|
      t.integer :user_id, :promotion_rule_id
    end
    remove_column :promotion_rules_users, :id
    add_index :promotion_rules_users, :user_id
    add_index :promotion_rules_users, :promotion_rule_id
  end

  def down
    drop_table :promotion_rules_users
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154471_create_promotion_rules_users.spree_promo.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151264_create_promotion_rules_users.spree_promo.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192832_create_promotion_rules_users.spree_promo.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081563_create_promotion_rules_users.spree_promo.rb