has_many relation conditions deprecation