consul/consul

View on GitHub
app/models/poll/voter.rb

Summary

Maintainability
A
0 mins
Test Coverage

Uniqueness validation should have a unique index on the database column.
Open

    validates :user_id, uniqueness: { scope: [:poll_id], message: :has_voted }
Severity: Minor
Found in app/models/poll/voter.rb by rubocop

There are no issues that match your filters.

Category
Status