Sha256: 9f1dcf4414b747734a27cd07cdf0f3f23ef2e53526a40ab4dc7559f68478a3d3

Contents?: true

Size: 669 Bytes

Versions: 8

Compression:

Stored size: 669 Bytes

Contents

class CreateSisCoreAcademicProgrammeDocuments < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_academic_programme_documents do |t|
      t.references :academic_programme,
                   null: false,
                   index: { name: 'ap_on_ap_doc' },
                   foreign_key: { to_table: :sis_core_academic_programmes }
      t.references :document_type,
                   null: false,
                   index: { name: 'dt_on_ap_doc' },
                   foreign_key: { to_table: :sis_core_lookups }
      t.string :remark
      t.integer :original, default: 1
      t.integer :copy, default: 1

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.19 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.18 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.17 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.16 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.15 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.14 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb
sis_core-1.0.13 db/migrate/20201019055620_create_sis_core_academic_programme_documents.rb