Sha256: 6facd51a8398f0aa68169f21f3057302a108f457b64bdf07cb50a777b60c5cd5

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 Bytes

Contents

class CreateLogisticsCoreAgencies < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_agencies do |t|
      t.string :code
      t.string :name
      t.string :telephone
      t.string :contact_person
      t.string :city
      t.string :subcity
      t.integer :woreda
      t.string :house_no
      t.string :email
      t.string :postal_code
      t.string :contact_telephone
      t.string :contact_email
      t.references :agency_category, index: { name: 'ac_on_agencies_indx' }

      t.timestamps
    end

    add_foreign_key :logistics_core_agencies, :logistics_core_extended_lookups, :column => :agency_category_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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