Sha256: 0a050df07748f4f4910c550aecb5dd41f221dbc788e4e7ce9d57bef19149173d

Contents?: true

Size: 808 Bytes

Versions: 9

Compression:

Stored size: 808 Bytes

Contents

class CreateLogisticsCoreAdditionalDocuments < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_additional_documents do |t|
      t.references :document_type, index: { name: 'ad_on_dt_indx' }
      t.references :documentable, polymorphic: true, index: {name: 'document_type_on_additional_document_indx'}
      t.integer :original
      t.integer :copy
      t.integer :certified
      t.boolean :is_endorsed
      t.boolean :is_mandatory
      t.references :transaction_type, index: { name: 'tt_on_ad_indx' }

      t.timestamps
    end

    add_foreign_key :logistics_core_additional_documents, :logistics_core_document_types, :column => :document_type_id
    add_foreign_key :logistics_core_additional_documents, :logistics_core_lookups, :column => :transaction_type_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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