Sha256: fbb1ab8b8d892f6eb6d4ab6f7ee0e4d1281ab3b31e9f97e26d18a51d12246c7f

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

class CreateLogisticsCoreBreakBulkStorageRates < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_break_bulk_storage_rates do |t|
      t.references :break_bulk_unit, index: { name: 'bbsr_on_bbu_indx' }
      t.references :transaction_type, index: { name: 'bbsr_on_tt_indx' }
      t.references :warehouse_rate_period, index: { name: 'bbsr_on_wrp_indx' }
      t.references :content_type, index: { name: 'bbsr_on_ct_indx' }
      t.float :rate
      t.date :effective_date

      t.timestamps
    end

    add_foreign_key :logistics_core_break_bulk_storage_rates, :logistics_core_lookups, :column => :break_bulk_unit_id
    add_foreign_key :logistics_core_break_bulk_storage_rates, :logistics_core_lookups, :column => :transaction_type_id
    add_foreign_key :logistics_core_break_bulk_storage_rates, :logistics_core_warehouse_rate_periods,
                    :column => :warehouse_rate_period_id
    add_foreign_key :logistics_core_break_bulk_storage_rates, :logistics_core_lookups, :column => :content_type_id

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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