Sha256: cdc1acf5293517dc2926b69944392aa64a5d3dddb8152d1639a148f095419b8a
Contents?: true
Size: 1.03 KB
Versions: 15
Compression:
Stored size: 1.03 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.float :quantity, null: false t.float :price, null: false, default: 0 t.float :discount, 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
15 entries across 15 versions & 1 rubygems