Sha256: 4886af4b0a560e762aad7eca43de31b264cb8fea8301a4e97a2d27f499302050

Contents?: true

Size: 565 Bytes

Versions: 9

Compression:

Stored size: 565 Bytes

Contents

class CreateLogisticsCoreEslTransportTariffs < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_esl_transport_tariffs do |t|
      t.references :route, index: {name: 'route_on_transport_tariffs_indx'}, null: false
      t.string :storage_point, null: false

      t.timestamps
    end
    add_index :logistics_core_esl_transport_tariffs, [:route_id, :storage_point], :unique => true, :name => 'route_storage_point_uniq_indx'
    add_foreign_key :logistics_core_esl_transport_tariffs, :logistics_core_routes, :column => :route_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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