Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Select Distinct in Rails Associations #69

Closed
marzdrel opened this Issue Jan 20, 2013 · 0 comments

Comments

Projects
None yet
2 participants

Looks like SELECT DISTINCT doesn't work if you try to include the hstore field in the query, ie:

=> SELECT DISTINCT "services".* FROM "services";
ERROR: could not identify an equality operator for type hstore

Rails executes SELECT DISTINCT on a joined modeles when I am trying to destroy an instance which is associated (by habtm in my case).

Is this known issue? Is there an easy workaround?

@diogob diogob closed this Feb 4, 2013

@diogob diogob closed this Feb 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment