Sha256: 3d843cfab4903dbcde6139696a443f83d12c17f26d950532b195dfdf20de4db4

Contents?: true

Size: 493 Bytes

Versions: 9

Compression:

Stored size: 493 Bytes

Contents

class CreateLogisticsCoreCommonDocuments < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_common_documents do |t|
      t.references :document_type, index: { name: 'dt_on_cd' }
      t.integer :original
      t.integer :copy
      t.integer :certified
      t.boolean :is_endorsed
      t.boolean :is_mandatory

      t.timestamps
    end

    add_foreign_key :logistics_core_common_documents, :logistics_core_document_types, :column => :document_type_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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