Sha256: 0e9e38273b8db91fa35cc7bbad3f7194907e64f200bc85aa9af6bf8fea017d06

Contents?: true

Size: 747 Bytes

Versions: 5

Compression:

Stored size: 747 Bytes

Contents

class CreateSisCoreCurriculums < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_curriculums do |t|
      t.references :programme,
                   null: false,
                   index: { name: 'pr_on_curriculum_indx' },
                   foreign_key: { to_table: :sis_core_programmes }
      t.references :programme_level,
                   null: false,
                   index: { name: 'pr_level_on_curriculum_indx' },
                   foreign_key: { to_table: :sis_core_lookups }
      t.float :compulsory_course_credit_hours, null: false
      t.float :elective_course_credit_hours, null: false
      t.float :thesis_hour, null: false
      t.float :project_hour, null: false

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20201102134749_create_sis_core_curriculums.rb
sis_core-1.0.19 db/migrate/20201102134749_create_sis_core_curriculums.rb
sis_core-1.0.18 db/migrate/20201102134749_create_sis_core_curriculums.rb
sis_core-1.0.17 db/migrate/20201102134749_create_sis_core_curriculums.rb
sis_core-1.0.16 db/migrate/20201102134749_create_sis_core_curriculums.rb