Sha256: 461ad63fb6b213776c83bcc96dcb69eed590c8ac288bac63110338eab6b20c01

Contents?: true

Size: 604 Bytes

Versions: 9

Compression:

Stored size: 604 Bytes

Contents

class CreateLogisticsCoreDemurrageRates < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_demurrage_rates do |t|
      t.references :demurrage_rate_period, index: { name: 'dr_on_drp_indx' }
      t.references :unit_of_charge, index: { name: 'dr_on_uoc_indx' }
      t.float :rate

      t.timestamps
    end

    add_foreign_key :logistics_core_demurrage_rates, :logistics_core_demurrage_rate_periods,
                    :column => :demurrage_rate_period_id
    add_foreign_key :logistics_core_demurrage_rates, :logistics_core_lookups, :column => :unit_of_charge_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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