Sha256: 660cbd9a299cdec2833bf69945a4e6b8191d6011fdff690f375280d0c36af872

Contents?: true

Size: 702 Bytes

Versions: 9

Compression:

Stored size: 702 Bytes

Contents

class CreateLogisticsCoreChargeableServices < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_chargeable_services do |t|
      t.string :code, null: false, unique: true
      t.string :name, null: false, unique: true
      t.integer :order
      t.references :chargeable_service_type, index: { name: 'cs_on_cst_indx' }
      t.references :transport_service_type, index: {name: 'cs_on_tst_indx'}

      t.timestamps
    end

    add_foreign_key :logistics_core_chargeable_services, :logistics_core_lookups, :column => :chargeable_service_type_id
    add_foreign_key :logistics_core_chargeable_services, :logistics_core_lookups, :column => :transport_service_type_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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