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

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