Skip to content

Commit

Permalink
Attempt another fix for view count
Browse files Browse the repository at this point in the history
  • Loading branch information
kytrinyx committed Oct 30, 2013
1 parent 5179184 commit 6b575d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exercism/submission_viewer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ class SubmissionViewer < ActiveRecord::Base
belongs_to :submission
belongs_to :viewer, class_name: "User"

validates :viewer_id, uniqueness: {within: :submission_id}
validates :viewer_id, uniqueness: {scope: :submission_id}

end

0 comments on commit 6b575d9

Please sign in to comment.