Sha256: 13d062cdf4d4d056f2e693bed3f48c41116509174ac1573b283909fcc445c8b7

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

class CreateMksRateServiceBundlesChargeableServices < ActiveRecord::Migration[5.1]
  def change
    create_table :mks_rate_service_bundles_chargeable_services, id: false do |t|
      t.references :service_bundle, index: false
      t.references :chargeable_service, index: false
    end

    add_index :mks_rate_service_bundles_chargeable_services, %i[service_bundle_id chargeable_service_id], name: 'sb_on_cs_indx'
    add_foreign_key :mks_rate_service_bundles_chargeable_services, :mks_rate_service_bundles, column: :service_bundle_id
    add_foreign_key :mks_rate_service_bundles_chargeable_services, :mks_rate_chargeable_services, column: :chargeable_service_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 db/migrate/20171221110018_create_mks_rate_service_bundles_chargeable_services.rb
mks_rate-1.0.4 db/migrate/20171221110018_create_mks_rate_service_bundles_chargeable_services.rb
mks_rate-1.0.3 db/migrate/20171221110018_create_mks_rate_service_bundles_chargeable_services.rb
mks_rate-1.0.2 db/migrate/20171221110018_create_mks_rate_service_bundles_chargeable_services.rb
mks_rate-1.0.1 db/migrate/20171221110018_create_mks_rate_service_bundles_chargeable_services.rb