Sha256: d2e8333f0439e294e9a255a036a3111730447a69d6e653ef85340266b44e997c

Contents?: true

Size: 765 Bytes

Versions: 9

Compression:

Stored size: 765 Bytes

Contents

class CreateLogisticsCoreContractKilogramMinimumRates < ActiveRecord::Migration[5.1]
  def change
    create_table :logistics_core_contract_kilogram_minimum_rates do |t|
      t.integer :chargeable_service_unit_of_charge_id
      t.integer :contract_id
      t.integer :transaction_type_id
      t.float :minimum_price

      t.timestamps
    end
    add_foreign_key :logistics_core_contract_kilogram_minimum_rates, :logistics_core_chargeable_service_unit_of_charges, column: :chargeable_service_unit_of_charge_id
    add_foreign_key :logistics_core_contract_kilogram_minimum_rates, :logistics_core_contracts, column: :contract_id
    add_foreign_key :logistics_core_contract_kilogram_minimum_rates, :logistics_core_lookups, column: :transaction_type_id

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-21.11.1 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-21.08.1 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-21.03.1 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-20.10.3 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-20.10.2 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-20.10.1 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-20.9.1 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb
logistics_core-20.8.1 db/migrate/20171014021800_create_logistics_core_contract_kilogram_minimum_rates.rb