Sha256: 9ceeb56805c423df35ee2d736ba58a0cbe9afc3c2eddbf3964e6c5ca23eec97f

Contents?: true

Size: 714 Bytes

Versions: 9

Compression:

Stored size: 714 Bytes

Contents

class CreateLogisticsCoreRequiredDocuments < ActiveRecord::Migration[5.1]
  def change
    create_table :logistics_core_required_documents do |t|
      t.references :document_type, index: { name: 'rd_on_dt_indx' }
      t.integer :original
      t.integer :copy
      t.integer :certified
      t.boolean :is_endorsed
      t.boolean :is_mandatory
      t.references :agency_permit_document, index: { name: 'apd_on_rd_indx' }

      t.timestamps
    end

    add_foreign_key :logistics_core_required_documents, :logistics_core_document_types, :column => :document_type_id
    add_foreign_key :logistics_core_required_documents, :logistics_core_agency_permit_documents, column: :agency_permit_document_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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