Sha256: a4fe6ca0aa043b26527f07618f9871154c7a0fb6919a563b08fa1977e7b70828
Contents?: true
Size: 1.16 KB
Versions: 9
Compression:
Stored size: 1.16 KB
Contents
class CreateLogisticsCoreContractContainerRates < ActiveRecord::Migration[5.0] def change create_table :logistics_core_contract_container_rates do |t| t.references :chargeable_service_unit_of_charge, index: { name: 'cabr_on_csuoc1_indx' } t.references :transaction_type, index: { name: 'cabr_on_tt1_indx' } t.references :container_size, index: { name: 'cabr_on_cs1_indx' } t.references :client_contract, index: { name: 'cabr_on_cc1_indx' } t.boolean :in_contract t.float :margin t.float :rate t.timestamps end add_foreign_key :logistics_core_contract_container_rates, :logistics_core_chargeable_service_unit_of_charges, :column => :chargeable_service_unit_of_charge_id add_foreign_key :logistics_core_contract_container_rates, :logistics_core_lookups, :column => :transaction_type_id add_foreign_key :logistics_core_contract_container_rates, :logistics_core_client_contracts, :column => :client_contract_id add_foreign_key :logistics_core_contract_container_rates, :logistics_core_lookups, :column => :container_size_id, :name => 'fk_cabr_on_cs' end end
Version data entries
9 entries across 9 versions & 1 rubygems