Sha256: 184401a4fa672e28a19d081cf43cd33e8ab9d6edc5d2cff5498d6869140eba47

Contents?: true

Size: 701 Bytes

Versions: 9

Compression:

Stored size: 701 Bytes

Contents

class CreateLogisticsCoreClients < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_clients do |t|
      t.string :name, null: false
      t.string :postal_code
      t.string :city
      t.references :country, index: true
      t.references :client_category, index: { name: 'clent_on_client_category_indx' }
      t.string :telephone
      t.string :fax
      t.string :email
      t.string :license
      t.string :tin

      t.timestamps
    end

    add_foreign_key :logistics_core_clients, :logistics_core_lookups, :column => :country_id
    add_foreign_key :logistics_core_clients, :logistics_core_lookups, :column => :client_category_id, name: 'fk_cl_on_cc'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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