Sha256: 49079e951db49db5b69261ddf19657b804df4db90835fba1d76745f50e205fd3

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

class CreateLogisticsCoreBroadGaugeCnts < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_broad_gauge_cnts do |t|
      t.references :container_size, index: { name: 'bgc_on_cs_indx' }
      t.references :container_type, index: { name: 'bgc_on_ct_indx' }
      t.float :length
      t.float :width
      t.float :height
      t.float :actual_weight

      t.timestamps
    end

    add_foreign_key :logistics_core_broad_gauge_cnts, :logistics_core_lookups, :column => :container_size_id
    add_foreign_key :logistics_core_broad_gauge_cnts, :logistics_core_lookups, :column => :container_type_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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