Created
March 18, 2009 22:13
-
-
Save besquared/81441 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # find( | |
| # :select => 'DISTINCT identity_providers.*', | |
| # :joins => [:datasources], | |
| # :conditions => 'datasources.pull' | |
| # ) | |
| SELECT DISTINCT identity_providers.* | |
| FROM identity_providers | |
| INNER JOIN datasources | |
| ON identity_providers.id = datasources.identity_provider_id | |
| WHERE datasources.pull | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment