Sha256: 0f0fd58ca7ada3493e3827fb69a443ddf502f0549e2a85c1667cfc11a6a2e4d0

Contents?: true

Size: 440 Bytes

Versions: 9

Compression:

Stored size: 440 Bytes

Contents

class AddForeignKeyToOfferRequest < ActiveRecord::Migration[5.0]
  def change
    add_foreign_key :logistics_core_offer_requests, :logistics_core_clients, :column => :client_id
    remove_column :logistics_core_offer_requests, :client_contract_id, :integer
    add_column :logistics_core_offer_requests, :contract_id, :integer
    add_foreign_key :logistics_core_offer_requests, :logistics_core_contracts, :column => :contract_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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