Sha256: ad49bea774f32470325a6796cfbdc754172bfe24a0817a0399cad39030277a80
Contents?: true
Size: 434 Bytes
Versions: 53
Compression:
Stored size: 434 Bytes
Contents
class CreateItemHasUseRestrictions < ActiveRecord::Migration[4.2] def self.up create_table :item_has_use_restrictions do |t| t.integer :item_id, null: false t.integer :use_restriction_id, null: false t.timestamps end add_index :item_has_use_restrictions, :item_id add_index :item_has_use_restrictions, :use_restriction_id end def self.down drop_table :item_has_use_restrictions end end
Version data entries
53 entries across 53 versions & 9 rubygems