Sha256: b208634b94ba6d96d3ff79b6021188abeca2a53c5b4f208031f84a413b34f8b8

Contents?: true

Size: 715 Bytes

Versions: 9

Compression:

Stored size: 715 Bytes

Contents

class CreateLogisticsCoreServiceDeliveryUnitServices < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_service_delivery_unit_services do |t|
      t.references :service_delivery_unit, index: { name: 'sdus_on_sdu_indx' }
      t.references :chargeable_service, index: { name: 'sdus_on_cs_indx' }
      t.boolean :is_mandatory

      t.timestamps
    end

    add_foreign_key :logistics_core_service_delivery_unit_services, :logistics_core_service_delivery_units,
                    :column => :service_delivery_unit_id
    add_foreign_key :logistics_core_service_delivery_unit_services, :logistics_core_chargeable_services,
                    :column => :chargeable_service_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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