Skip to content

Instantly share code, notes, and snippets.

@dayweek

dayweek/ar3.sql Secret

Last active April 28, 2016 17:22
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/ca2998bdec0ce4ea3099934c33a6b20f to your computer and use it in GitHub Desktop.
Save dayweek/ca2998bdec0ce4ea3099934c33a6b20f to your computer and use it in GitHub Desktop.
iset = ItemSet.preload(:items, :item_set_bonuses).where(items: {name: "Savage Gladiator Chain"})
ItemSet Load (0.6ms) SELECT "item_sets".* FROM "item_sets"
WHERE "items"."name" = ? [["name", "Savage Gladiator Chain"]]
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column:
items.name: SELECT "item_sets".* FROM "item_sets" WHERE "items"."name" = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment