Sha256: 4585e7f234fb4f13c85eb46ab0a02870f41bcdd49f0bc4f3893271ea4f7dc26a
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 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.timestamps end end end
Version data entries
4 entries across 4 versions & 1 rubygems