Sha256: 2373c9db4848334e7884f3f097d2f79e45086d052250c1a33ee845d637ee7473

Contents?: true

Size: 300 Bytes

Versions: 3

Compression:

Stored size: 300 Bytes

Contents

class CreateInventories < ActiveRecord::Migration[4.2]
  def self.up
    create_table :inventories do |t|
      t.references :item, index: true
      t.references :inventory_file, index: true
      t.text :note

      t.timestamps
    end
  end

  def self.down
    drop_table :inventories
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_inventory-0.3.1 db/migrate/20081117143455_create_inventories.rb
enju_inventory-0.3.0 db/migrate/20081117143455_create_inventories.rb
enju_inventory-0.3.0.beta.1 db/migrate/20081117143455_create_inventories.rb