Sha256: 8231e7abaf07c067cac98046ff5dd9e4d88e9fc505e2583209ed084089135bb2

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

class AddContractToRateTable < ActiveRecord::Migration[5.0]
  def change
    remove_column :logistics_core_contract_rates, :client_contract_id, :integer
    remove_column :logistics_core_contract_break_bulk_unit_rates, :client_contract_id, :integer
    remove_column :logistics_core_contract_container_rates, :client_contract_id, :integer
    remove_column :logistics_core_contract_item_rates, :client_contract_id, :integer
    remove_column :logistics_core_contract_kilogram_rates, :client_contract_id, :integer
    add_column :logistics_core_contract_rates, :contract_id, :integer
    add_column :logistics_core_contract_break_bulk_unit_rates, :contract_id, :integer
    add_column :logistics_core_contract_container_rates, :contract_id, :integer
    add_column :logistics_core_contract_item_rates, :contract_id, :integer
    add_column :logistics_core_contract_kilogram_rates, :contract_id, :integer
    add_column :logistics_core_contract_rates, :margin, :float
    add_column :logistics_core_contract_break_bulk_unit_rates, :margin, :float
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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