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