Sha256: 41c5f29578b68dddbee2e19a2fb2a81c049e86356eca7a02779000ac6c75304a
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
class AddRestrictions < ActiveRecord::Migration def change create_table :spree_restrictions do |t| t.integer :product_id, :references => :spree_products t.integer :role_id, :references => :spree_roles end add_index :spree_restrictions, ["product_id", "role_id"] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_restriction-1.2.4 | db/migrate/20120926201604_add_restrictions.rb |
spree_restriction-1.2.3 | db/migrate/20120926201604_add_restrictions.rb |