move uniq constraint into a scope
Merge pull request #33 from StevensLighthouse/fix-uniq-deprecation

move uniq constraint into a scope