Sha256: ccb4b927bc5971e4fe5b22925331081e87512a1b5457e3d026fdd8360bed96f0

Contents?: true

Size: 851 Bytes

Versions: 9

Compression:

Stored size: 851 Bytes

Contents

class CreateLogisticsCoreOutOfGaugeCntRates < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_out_of_gauge_cnt_rates do |t|
      t.references :container_size, index: { name: 'oogcr_on_cs_indx' }
      t.date :effective_date
      t.float :height_from
      t.float :height_to
      t.float :length_from
      t.float :length_to
      t.float :margin
      t.float :rate
      t.references :route, index: { name: 'oogcr_on_route_indx' }
      t.date :valid_until
      t.float :weight_from
      t.float :weight_to
      t.float :width_from
      t.float :width_to

      t.timestamps
    end

    add_foreign_key :logistics_core_out_of_gauge_cnt_rates, :logistics_core_lookups, :column => :container_size_id
    add_foreign_key :logistics_core_out_of_gauge_cnt_rates, :logistics_core_routes, :column => :route_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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