-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from maddernd/fix/fail_comments_change
fix: change_task_comment_fail
- Loading branch information
Showing
3 changed files
with
47 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class FailStatusChange < ActiveRecord::Migration[7.0] | ||
def up | ||
TaskStatus.where(name: "Fail").update_all(name: "Needs Improvement") | ||
TaskStatusComment.where(comment: "Fail").update_all(comment: "Needs Improvement") | ||
end | ||
|
||
def down | ||
TaskStatus.where(name: "Needs Improvement").update_all(name: "Fail") | ||
TaskStatusComment.where(comment: "Needs Improvement").update_all(comment: "Fail") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters