Sha256: 040fe34d5b4b0b09bfb14b9b1942faa8e9ee7d3ed43a8d85778efc7e290faf83

Contents?: true

Size: 640 Bytes

Versions: 9

Compression:

Stored size: 640 Bytes

Contents

class CreateLogisticsCoreTruckTypeCntWeightRanges < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_truck_type_cnt_weight_ranges do |t|
      t.references :truck_type_assignment, index: { name: 'ttcwr_on_tta_indx' }
      t.references :weight_range, index: { name: 'ttcwr_on_wr_indx' }

      t.timestamps
    end

    add_foreign_key :logistics_core_truck_type_cnt_weight_ranges, :logistics_core_truck_type_assignments,
                    :column => :truck_type_assignment_id
    add_foreign_key :logistics_core_truck_type_cnt_weight_ranges, :logistics_core_weight_ranges, :column => :weight_range_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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