Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save goooooouwa/2aeeede7a7a665c806d3 to your computer and use it in GitHub Desktop.
Save goooooouwa/2aeeede7a7a665c806d3 to your computer and use it in GitHub Desktop.
where condition syntax for join table example
# 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