Sha256: f684504cba303b936e9221a491be6c98a2ba281e85d4970be5fb0f76b662bf30
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
class CreateComeeCorePurchaseRequisitionItems < ActiveRecord::Migration[7.1] def change create_table :comee_core_purchase_requisition_items do |t| t.references :product, null: false, index: {name: "product_on_ccpri_indx"}, foreign_key: {to_table: :comee_core_products} t.references :unit, null: false, index: {name: "unit_on_ccpri_indx"}, foreign_key: {to_table: :comee_core_units} t.references :supplier, null: false, index: {name: "supplier_on_ccpri_indx"}, foreign_key: {to_table: :comee_core_suppliers} t.references :purchase_requisition, null: false, index: {name: "pr_on_ccpri_indx"}, foreign_key: {to_table: :comee_core_purchase_requisitions} t.float :quantity, null: false t.float :price, null: false t.float :total_price, null: false t.integer :processing_status, null: false, default: 0 t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comee_core-0.2.35 | db/migrate/20240314111307_create_comee_core_purchase_requisition_items.rb |