Sha256: 5b4b3c26123d4574025ad6e0b4fe70efd3fc8cba189c1953379e226f2e1ca432
Contents?: true
Size: 714 Bytes
Versions: 9
Compression:
Stored size: 714 Bytes
Contents
class CreateLogisticsCoreAgencyPermitDocuments < ActiveRecord::Migration[5.0] def change create_table :logistics_core_agency_permit_documents do |t| t.references :agency, index: { name: 'apd_on_agency_indx' } t.references :document_type, index: { name: 'apd_on_dt_indx' } t.integer :original_docs t.integer :copy_docs t.integer :certified_copy_docs t.boolean :is_endorsed t.boolean :is_mandatory t.timestamps end add_foreign_key :logistics_core_agency_permit_documents, :logistics_core_document_types, :column => :document_type_id add_foreign_key :logistics_core_agency_permit_documents, :logistics_core_agencies, :column => :agency_id end end
Version data entries
9 entries across 9 versions & 1 rubygems