Sha256: 37e921a46a8336c341d03c1ee4bf43b986dc74677c563cc1182c99749febc305

Contents?: true

Size: 1.16 KB

Versions: 145

Compression:

Stored size: 1.16 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.string :customer_item_description
      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

145 entries across 145 versions & 1 rubygems

Version Path
comee_core-0.3.62 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.61 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.60 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.59 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.58 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.57 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.56 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.55 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.54 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.53 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.51 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.50 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.49 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.48 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.47 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.46 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.45 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.44 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.43 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
comee_core-0.3.42 db/migrate/20231121132709_create_comee_core_quotation_request_items.rb