Sha256: a16c8260d16dbed7b67b804c5fe85bdebda57eb30e41b8994d5dc1e6c763920c

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

class CreateSisCoreAcademicCalendars < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_academic_calendars do |t|
      t.references :academic_year,
                   null: false,
                   index: { name: 'ay_on_aca_caldr_indx' },
                   foreign_key: { to_table: :sis_core_academic_years }
      t.references :semester,
                   null: false,
                   index: { name: 'sem_on_aca_caldr_indx' },
                   foreign_key: { to_table: :sis_core_semesters }
      t.date :start_date, null: false
      t.date :end_date, null: false
      t.string :event, null: false

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20201130073930_create_sis_core_academic_calendars.rb
sis_core-1.0.19 db/migrate/20201130073930_create_sis_core_academic_calendars.rb
sis_core-1.0.18 db/migrate/20201130073930_create_sis_core_academic_calendars.rb
sis_core-1.0.17 db/migrate/20201130073930_create_sis_core_academic_calendars.rb