Last active
April 26, 2016 19:56
-
-
Save glinesbdev/0ff5dfe717680de180410c4f78d52b26 to your computer and use it in GitHub Desktop.
Join query skill and skill_tree
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
| Skill.select(:name).where(:skill_tree_id => 23) | |
| Skill Load (0.2ms) SELECT "skills"."name" FROM "skills" INNER JOIN "skill_trees" ON "skill_trees"."_id" = "skills"."skill_tree_id" WHERE "skills"."skill_tree_id" = ? [["skill_tree_id", 23]] | |
| => [#<Skill:0x00000004f91c18 _id: nil, name: "Recoil Down +3">, | |
| #<Skill:0x00000004f91ab0 _id: nil, name: "Recoil Down +2">, | |
| #<Skill:0x00000004f91830 _id: nil, name: "Recoil Down +1">, | |
| #<Skill:0x00000004f915d8 _id: nil, name: "Recoil Down -1">, | |
| #<Skill:0x00000004f90f98 _id: nil, name: "Recoil Down -2">, | |
| #<Skill:0x00000004f90d90 _id: nil, name: "Recoil Down -3">] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment