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