Specifying `:uniq => true` has been deprecated by Rails. Use a scope with uniq instead.

Specifying `:uniq => true` has for has_many been deprecated by Rails. Use a scope with uniq instead.