Description
In app/models/feedback.rb, only message has a presence validation, but the database schema requires path to be NOT NULL (t.string "path", null: false).
If code creates a Feedback without setting path, it will pass model validation but fail at the database level with an unhelpful error.
Recommendation
Add validates :path, presence: true to the Feedback model.
Severity
Low
Description
In
app/models/feedback.rb, onlymessagehas a presence validation, but the database schema requirespathto be NOT NULL (t.string "path", null: false).If code creates a Feedback without setting
path, it will pass model validation but fail at the database level with an unhelpful error.Recommendation
Add
validates :path, presence: trueto the Feedback model.Severity
Low