Sha256: 51305a7cdc70f19ccf3cd2e9720837b8b9a5a7256160e09eeb53d3610cfbbcd6
Contents?: true
Size: 981 Bytes
Versions: 20
Compression:
Stored size: 981 Bytes
Contents
class CreateUnidomShipmentItems < ActiveRecord::Migration def change create_table :unidom_shipment_items, id: :uuid do |t| t.references :shipment, type: :uuid, null: false t.references :shipped, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.integer :ordinal, null: false, default: 0 t.decimal :quantity, null: false, default: 0.0, precision: 12, scale: 2 t.text :instruction t.text :description t.column :state, 'char(1)', null: false, default: 'C' t.datetime :opened_at, null: false, default: ::Time.utc(1970) t.datetime :closed_at, null: false, default: ::Time.utc(3000) t.boolean :defunct, null: false, default: false t.jsonb :notation, null: false, default: {} t.timestamps null: false end add_index :unidom_shipment_items, :shipment_id add_index :unidom_shipment_items, :shipped_id end end
Version data entries
20 entries across 20 versions & 1 rubygems