Sha256: 287017f36189b6a3211d3d8318868cd1a6c5f58da9b286786dc88857b5d8eeee

Contents?: true

Size: 651 Bytes

Versions: 9

Compression:

Stored size: 651 Bytes

Contents

class CreateLogisticsCoreAddendums < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_addendums do |t|
      t.references :service_increment, index: { name: 'add_on_si_indx' }
      t.references :addition, index: { name: 'add_on_addition_indx' }

      t.timestamps
    end

    add_foreign_key :logistics_core_addendums, :logistics_core_service_increments, :column => :service_increment_id,
                    :name => 'fk_addendum_service_increments'
    add_foreign_key :logistics_core_addendums, :logistics_core_service_increments, :column => :addition_id,
                    :name => 'fk_addendum_additions'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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