Allow range expressions in associations
Properly implement index constraints