Sha256: 3ed9343c29113699029a7d071a61be50b309b54f48a64abd077653bb994e913b
Contents?: true
Size: 1.12 KB
Versions: 46
Compression:
Stored size: 1.12 KB
Contents
class CreateComeeCoreQuotationRequestItems < ActiveRecord::Migration[7.1] def change create_table :comee_core_quotation_request_items do |t| t.references :product, null: false, index: {name: "product_on_ccrfqi_indx"}, foreign_key: {to_table: :comee_core_products} t.references :quotation_request, null: false, index: {name: "rfq_on_ccrfqi_indx"}, foreign_key: {to_table: :comee_core_quotation_requests} t.string :customer_item_no t.float :quantity, null: false t.float :price, null: false, default: 0 t.float :margin, null: false, default: 0 t.integer :margin_type, null: false, default: 0 t.date :expected_delivery_date, null: false t.boolean :canceled, null: false, default: false t.references :unit, null: false, index: {name: "unit_on_ccrfqi_indx"}, foreign_key: {to_table: :comee_core_units} t.date :valid_from, null: true t.date :valid_to, null: true t.timestamps end end end
Version data entries
46 entries across 46 versions & 1 rubygems