Sha256: 31897bea4b2c6ee9f28a194226687c344a64f1e968a5b20d8d18164ea5242b3b
Contents?: true
Size: 676 Bytes
Versions: 9
Compression:
Stored size: 676 Bytes
Contents
class CreateLogisticsCoreDocumentTypes < ActiveRecord::Migration[5.0] def change create_table :logistics_core_document_types do |t| t.string :code t.string :name t.string :description t.references :document_type_category, index: { name: 'dtc_on_dt' } t.references :document_type_origin, index: { name: 'dto_on_dt' } t.timestamps end add_foreign_key :logistics_core_document_types, :logistics_core_extended_lookups, :column => :document_type_category_id add_foreign_key :logistics_core_document_types, :logistics_core_extended_lookups, :column => :document_type_origin_id end end
Version data entries
9 entries across 9 versions & 1 rubygems