Skip to content

Bug: Missing validation on Feedback.path (DB requires NOT NULL but model doesn't validate) #49

@philipithomas

Description

@philipithomas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions