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