diff --git a/db/migrate/20150702073245_add_late_penalty_to_studnet_work.rb b/db/migrate/20150702073245_add_late_penalty_to_studnet_work.rb new file mode 100644 index 000000000..e8dcf12b7 --- /dev/null +++ b/db/migrate/20150702073245_add_late_penalty_to_studnet_work.rb @@ -0,0 +1,9 @@ +class AddLatePenaltyToStudnetWork < ActiveRecord::Migration + def up + add_column :student_works, :late_penalty, :integer, default: 0 + end + + def down + remove_column :student_works, :late_penalty + end +end diff --git a/db/migrate/20150702073308_add_absence_penalty_to_studnet_work.rb b/db/migrate/20150702073308_add_absence_penalty_to_studnet_work.rb new file mode 100644 index 000000000..401de3d34 --- /dev/null +++ b/db/migrate/20150702073308_add_absence_penalty_to_studnet_work.rb @@ -0,0 +1,9 @@ +class AddAbsencePenaltyToStudnetWork < ActiveRecord::Migration + def up + add_column :student_works, :absence_penalty, :integer, default: 0 + end + + def down + remove_column :student_works, :absence_penalty + end +end