Sha256: c61c6ce5d0bd647bcbe21f799c16a415b39ceacee6db5486dca19e8d46b27c0f

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

class CreateComeeCoreShipmentInstructionItems < ActiveRecord::Migration[7.1]
  def change
    create_table :comee_core_shipment_instruction_items do |t|
      t.references :shipment_instruction,
                   null: false,
                   index: {name: "si_on_ccsii_indx"},
                   foreign_key: {to_table: :comee_core_shipment_instructions}
      t.references :shipment_item,
                   null: false,
                   index: {name: "shi_on_ccsii_indx"},
                   foreign_key: {to_table: :comee_core_shipment_items}
      t.string :delivery_note_no, null: false
      t.string :pallet_no, null: false
      t.date :goods_issue_date, null: false
      t.float :length, null: false
      t.float :width, null: false
      t.float :height, null: false
      t.float :weight, null: false
      t.float :quantity, null: false
      t.references :unit,
                   null: false,
                   index: {name: "unit_on_ccsii_indx"},
                   foreign_key: {to_table: :comee_core_units}
      t.float :price, null: false

      t.timestamps
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
comee_core-0.1.86 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.85 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.84 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.83 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.82 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.81 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.80 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.79 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.78 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.77 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.76 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb
comee_core-0.1.75 db/migrate/20240104143246_create_comee_core_shipment_instruction_items.rb