Sha256: 9269a8361af54c1b78c98fc5bba8951059dcb59c98629eb33b2613156effa842
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
class CreateItemHasUseRestrictions < ActiveRecord::Migration[5.0] 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.4 | spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb |