Created
January 6, 2011 03:18
-
-
Save thedelchop/767453 to your computer and use it in GitHub Desktop.
This file contains 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
Using the default profile... | |
...Member | |
SELECT "events".* FROM "events" WHERE "events"."event_type" = 'second' AND ("events"."member_id" = 1298) | |
Motion | |
SELECT "events".* FROM "events" WHERE "events"."event_type" = 'second' AND ("events"."member_id" = 1298) AND ("events"."motion_id" = 788) | |
...Member | |
SELECT "events".* FROM "events" WHERE "events"."event_type" = 'second' AND ("events"."member_id" = 1296) | |
.Member | |
SELECT "events".* FROM "events" WHERE "events"."event_type" = 'second' AND ("events"."member_id" = 1296) | |
Motion | |
SELECT "events".* FROM "events" WHERE "events"."event_type" = 'second' AND ("events"."member_id" = 1296) AND ("events"."motion_id" = 788) | |
Member | |
SELECT "events".* FROM "events" WHERE "events"."event_type" = 'second' AND ("events"."member_id" = 1296) |
This file contains 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
# @return [ActiveRecord::Relation] All of the seconds cast in support of this motion | |
def seconds | |
puts self.class | |
puts events.seconds.to_sql | |
events.seconds | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment