Sha256: 151f4c1b59954168174ac0536ed32fae6995daf366b2eadac6237ef98ab5a7db
Contents?: true
Size: 1.16 KB
Versions: 73
Compression:
Stored size: 1.16 KB
Contents
class CreateComeeCorePurchaseOrderItems < ActiveRecord::Migration[7.1] def change create_table :comee_core_purchase_order_items do |t| t.integer :serial_no, null: false, default: 1 t.references :purchase_order, null: false, index: {name: "pos_on_ccpoitm_indx"}, foreign_key: {to_table: :comee_core_purchase_orders} t.float :quantity, null: false t.float :confirmed_quantity, null: false t.references :product, null: false, index: {name: "product_on_ccpoitm_indx"}, foreign_key: {to_table: :comee_core_products} t.references :unit, null: false, index: {name: "unit_on_ccpoitm_indx"}, foreign_key: {to_table: :comee_core_units} t.float :price, null: false t.float :confirmed_price, null: false t.float :total_price, null: false t.float :confirmed_total_price, null: false t.date :delivery_date, null: false t.date :confirmed_delivery_date, null: false t.integer :status, null: false, default: 0 t.timestamps end end end
Version data entries
73 entries across 73 versions & 1 rubygems