Sha256: 4ddc3fc46c7270129d3a927eae1556098d6cdd30724176156710fff48d1ac522

Contents?: true

Size: 903 Bytes

Versions: 9

Compression:

Stored size: 903 Bytes

Contents

class CreateLogisticsCoreContractRates < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_contract_rates do |t|
      t.references :chargeable_service_unit_of_charge, index: { name: 'cabr_on_csuoc_indx' }
      t.references :transaction_type, index: { name: 'cabr_on_tt_indx' }
      t.references :client_contract, index: { name: 'cabr_on_cc_indx' }
      t.boolean :in_contract
      t.float :rate
      t.string :type

      t.timestamps
    end
    add_foreign_key :logistics_core_contract_rates, :logistics_core_chargeable_service_unit_of_charges,
                    :column => :chargeable_service_unit_of_charge_id
    add_foreign_key :logistics_core_contract_rates, :logistics_core_lookups, :column => :transaction_type_id
    add_foreign_key :logistics_core_contract_rates, :logistics_core_client_contracts,
                    :column => :client_contract_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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