Sha256: 65f21fc53d2c87104cc290b86c34219216421542d0867f0279766485b23f5561

Contents?: true

Size: 850 Bytes

Versions: 9

Compression:

Stored size: 850 Bytes

Contents

class CreateLogisticsCoreOutOfGaugeBbRates < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_out_of_gauge_bb_rates do |t|
      t.references :break_bulk_unit, index: { name: 'oogbr_on_bbu_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: 'oogbr_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_bb_rates, :logistics_core_lookups, :column => :break_bulk_unit_id
    add_foreign_key :logistics_core_out_of_gauge_bb_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/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-21.11.1 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-21.08.1 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-21.03.1 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-20.10.3 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-20.10.2 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-20.10.1 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-20.9.1 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb
logistics_core-20.8.1 db/migrate/20170112061446_create_logistics_core_out_of_gauge_bb_rates.rb