Sha256: fe20291a9afc367e636ba0e762f5f33e1b9be8acacd372fe78110c043564ff7a

Contents?: true

Size: 539 Bytes

Versions: 17

Compression:

Stored size: 539 Bytes

Contents

class CreateSisCoreStudents < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_students do |t|
      t.string :student_id, null: false, unique: true
      t.string :full_name, null: false
      t.date :date_of_birth, null: false
      t.string :nationality, null: false
      t.references :academic_programme,
                   index: { name: 'program_on_student_indx' },
                   null: false,
                   foreign_key: { to_table: :sis_core_academic_programmes }

      t.timestamps
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.19 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.18 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.17 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.16 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.15 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.14 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.13 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.12 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.11 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.10 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.9 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.8 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.7 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.6 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.5 db/migrate/20200307072006_create_sis_core_students.rb
sis_core-1.0.4 db/migrate/20200307072006_create_sis_core_students.rb