Sha256: 2e2e1dba24c5aa26d223b6372ef78a97b9ef917cbe68d2c504db0e5250dbef6f
Contents?: true
Size: 1011 Bytes
Versions: 1
Compression:
Stored size: 1011 Bytes
Contents
class CreateUnidomInventoryItemVariances < ActiveRecord::Migration def change create_table :unidom_inventory_item_variances, id: :uuid do |t| t.references :inventory_item, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :reason, type: :uuid, null: true, polymorphic: { null: true, default: nil, limit: 200 } t.decimal :quantity, null: false, default: 0.0, precision: 12, scale: 2 t.text :description t.text :instruction 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_inventory_item_variances, :inventory_item_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-inventory-2.0 | db/migrate/20020903000000_create_unidom_inventory_item_variances.rb |