Skip to content

Commit

Permalink
Add constant value to migration process for new action field
Browse files Browse the repository at this point in the history
  • Loading branch information
tclaus committed Aug 29, 2021
1 parent 24289d3 commit f2f5232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20210424054604_add_user_fields_to_reports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def change
report.save(validate: false, touch: false)
end
if report.item.nil?
report.action = "Deleted"
report.action = Report::STATUS_DELETED
report.save(validate: false, touch: false)
end
end
Expand Down

0 comments on commit f2f5232

Please sign in to comment.