Sha256: 15e627df95925220881a015239dffba93a215f5c2ed4c063454502cff3972361
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
class CreateUnidomProductAssociatings < ActiveRecord::Migration def change create_table :unidom_product_associatings, id: :uuid do |t| t.references :source, type: :uuid, null: false, default: nil t.references :target, type: :uuid, null: false, default: nil t.column :product_association_code, 'char(4)', null: false, default: 'ZZZZ' t.integer :ordinal, null: false, default: 0 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: Unidom::Common::STATE 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_product_associatings, :source_id add_index :unidom_product_associatings, :target_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-product-2.0 | db/migrate/20020211000000_create_unidom_product_associatings.rb |