Sha256: feabf4249a750035eb36e635efac8755705f283121fb79e474f56b29210953fc

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 KB

Contents

class MoveFieldsFromOperationToOfferRequest < ActiveRecord::Migration[5.0]
  def change
    add_column :logistics_core_offer_requests, :client_id, :integer
    add_column :logistics_core_offer_requests, :freight_forwarding, :boolean
    add_column :logistics_core_offer_requests, :customs_clearing, :boolean
    add_column :logistics_core_offer_requests, :transport, :boolean
    add_column :logistics_core_offer_requests, :operation_type_id, :integer
    add_column :logistics_core_offer_requests, :transaction_type_id, :integer
    add_column :logistics_core_operations, :offer_request_id, :integer
    remove_column :logistics_core_operations, :client_id, :integer
    remove_column :logistics_core_operations, :freight_forwarding, :boolean
    remove_column :logistics_core_operations, :customs_clearing, :boolean
    remove_column :logistics_core_operations, :transport, :boolean
    remove_column :logistics_core_operations, :operation_type_id, :integer
    remove_column :logistics_core_operations, :transaction_type_id, :integer
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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