20181004134604_add_semester_column_to_semester_process.rb 611 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class AddSemesterColumnToSemesterProcess < ActiveRecord::Migration[5.1]
  def change
    change_table :semester_processes do |t|
      t.remove :period_start
      t.remove :period_end
      t.daterange :semester
      t.string :mail_subject_template
      t.text :mail_body_template
      t.datetime :mail_posted_at
      t.references :mail_posted_by, references: :users, index: true
      t.string :reminder_mail_subject_template
      t.text :reminder_mail_body_template
      t.datetime :reminder_mail_posted_at
      t.references :reminder_mail_posted_by, references: :users, index: true
    end
  end
end