Created
August 19, 2014 07:16
-
-
Save goooooouwa/2aeeede7a7a665c806d3 to your computer and use it in GitHub Desktop.
where condition syntax for join table example
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
# syntax: ModelName.joins(:association_name).where({joining_table_name: {column_name:"column value"}}) | |
ContactField.joins(:contact_field_type).where({constr_base_contact_field_types: {name:"Email"}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment