canvas-lms/db/migrate/20130502200753_add_lock_at_...

12 lines
229 B
Ruby
Raw Normal View History

added auto lock discussions on specified date fixes CNVS-4106 test steps: - go to create a discussion topic and ensure that you can toggle between the 'Graded' and non-graded availability dates. If the Graded is not checked, you should see the Available From/Until. - create a discussion topic with a past from and past until. ensure that the discussion is locked for a student - create a discussion topic with a future from and future until. ensure the discussion cannot be seen by the student - update the above created discussion topic and switch it to be graded and set a future due, from, until date. ensure that the student cannot see the discussion. - edit the discussion and ensure that the graded checkbox is checked and the group assignment fields are showing - update the assignment with a past due, from, until and make sure the discussion is locked for the student. - do all above with current dates (from in past, until in future) and make sure the student can see and reply to them. - create an announcement and ensure that the functionality and forms are the same as before - verify that you are able to lock and unlock discussion topics on the show view by using the gear drop-down Change-Id: I99c9d54763fe3a74aa8a4bb37c22f09d4765d41e Reviewed-on: https://gerrit.instructure.com/20339 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Jon Willesen <jonw@instructure.com> Reviewed-by: Zach Pendleton <zachp@instructure.com> QA-Review: Marc LeGendre <marc@instructure.com> Product-Review: Marc LeGendre <marc@instructure.com>
2013-05-03 07:39:26 +08:00
class AddLockAtToDiscussionTopics < ActiveRecord::Migration
tag :predeploy
def self.up
add_column :discussion_topics, :lock_at, :datetime
end
def self.down
remove_column :discussion_topics, :lock_at
end
end