Remove OfficerAssignment composed index

This commit is contained in:
Bertocq
2017-10-03 12:02:05 +02:00
parent ad986e600e
commit 4e85e136d1
3 changed files with 7 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ class Poll
validates :officer_id, presence: true
validates :booth_assignment_id, presence: true
validates :date, presence: true, uniqueness: { scope: [:officer_id, :booth_assignment_id] }
validates :date, presence: true
delegate :poll_id, :booth_id, to: :booth_assignment