Sha256: 65f502277c57458bb906e1850a4b3d90fc8392c32f9f4a50083dec7f7301a72d
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
class CreateUnidomGroupedInventoryItems < ActiveRecord::Migration def change create_table :unidom_grouped_inventory_items, id: :uuid do |t| t.references :stored, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :store, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :lot, type: :uuid, null: true t.decimal :quantity, null: false, default: 0.0, precision: 12, scale: 2 t.column :state, 'char(1)', null: false, default: 'C' t.datetime :opened_at, null: false, default: Unidom::Common::OPENED_AT t.datetime :closed_at, null: false, default: Unidom::Common::CLOSED_AT t.boolean :defunct, null: false, default: false t.jsonb :notation, null: false, default: {} t.timestamps null: false end add_index :unidom_grouped_inventory_items, :stored_id add_index :unidom_grouped_inventory_items, :store_id add_index :unidom_grouped_inventory_items, :lot_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-inventory-2.0 | db/migrate/20020902000000_create_unidom_grouped_inventory_items.rb |