Sha256: 82cadc17042e9c4f6e4b31b25484a6d5a05483341dcb58f11587862b8bacd5dc

Contents?: true

Size: 676 Bytes

Versions: 9

Compression:

Stored size: 676 Bytes

Contents

class CreateLogisticsCoreTruckTypeBbWeightRanges < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_truck_type_bb_weight_ranges do |t|
      t.references :weight_range, index: { name: 'ttbbwr_on_wr_indx' }
      t.references :break_bulk_truck_assignment, index: { name: 'ttbbwr_on_bbta_indx' }

      t.timestamps
    end
    add_foreign_key :logistics_core_truck_type_bb_weight_ranges, :logistics_core_weight_ranges,
                    :column => :weight_range_id
    add_foreign_key :logistics_core_truck_type_bb_weight_ranges, :logistics_core_break_bulk_truck_assignments,
                    :column => :break_bulk_truck_assignment_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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