Sha256: a30ffa31d6472d0a19225e495a1fcd41bbdc7455111d2a9bc00fc52b2ba4195c
Contents?: true
Size: 909 Bytes
Versions: 9
Compression:
Stored size: 909 Bytes
Contents
class CreateLogisticsCoreContractServices < ActiveRecord::Migration[5.1] def change create_table :logistics_core_contract_services do |t| t.integer :contract_id t.integer :chargeable_service_unit_of_charge_id t.integer :chargeable_service_id t.integer :unit_of_charge_id t.integer :service_delivery_unit_id t.timestamps end add_foreign_key :logistics_core_contract_services, :logistics_core_contracts, column: :contract_id add_foreign_key :logistics_core_contract_services, :logistics_core_chargeable_service_unit_of_charges, column: :chargeable_service_unit_of_charge_id add_foreign_key :logistics_core_contract_services, :logistics_core_chargeable_services, column: :chargeable_service_id add_foreign_key :logistics_core_contract_services, :logistics_core_service_delivery_units, column: :service_delivery_unit_id end end
Version data entries
9 entries across 9 versions & 1 rubygems