Sha256: f8913da0e69be1b9cd198cba6267cf95c3a8df84d317f0ba99348b0b625a5da5

Contents?: true

Size: 551 Bytes

Versions: 9

Compression:

Stored size: 551 Bytes

Contents

class CreateLogisticsCoreTransporters < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_transporters do |t|
      t.string :name
      t.string :postal_code
      t.string :city
      t.references :country, index: { name: 'transporter_on_country_indx' }
      t.string :telephone
      t.string :fax
      t.string :email
      t.string :contact_person
      t.string :contact_telephone

      t.timestamps
    end

    add_foreign_key :logistics_core_transporters, :logistics_core_lookups, :column => :country_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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