Sha256: 7654fa490bab1de0843a60449b129f7ddb6ad7ce4b520217a0e45489ce4cef80

Contents?: true

Size: 383 Bytes

Versions: 28

Compression:

Stored size: 383 Bytes

Contents

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

28 entries across 28 versions & 1 rubygems

Version Path
spree_promo-1.2.5 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.6 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.5 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.2.4 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.0.7 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.2.3 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.2.2 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.4 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.2.0 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.2.0.rc2 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.2.0.rc1 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.3 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.0.6 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.2 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.2.rc1 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.1 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.0 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.0.4 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.0.rc2 db/migrate/20100501095202_create_promotion_rules_users.rb
spree_promo-1.1.0.rc1 db/migrate/20100501095202_create_promotion_rules_users.rb