Skip to content

Instantly share code, notes, and snippets.

@dayweek

dayweek/ar10.sql Secret

Last active April 29, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dayweek/24073f0220139fad6b640ffd982e180a to your computer and use it in GitHub Desktop.
Save dayweek/24073f0220139fad6b640ffd982e180a to your computer and use it in GitHub Desktop.
iset = ItemSet.includes(:items).where(name: "The Gladiator").where('items.armor > 22')
ItemSet Load (0.5ms) SELECT "item_sets".* FROM "item_sets" WHERE "item_sets"."name" = ?
AND (items.armor > 22) [["name", "The Gladiator"]]
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column:
items.armor: SELECT "item_sets".* FROM "item_sets" WHERE "item_sets"."name" = ? AND (items.armor > 22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment