Created
January 2, 2014 23:05
-
-
Save allenwalker3/8228893 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
ap User.all.map{|u|[u.id, u.email, u.created_at, u.updated_at]} | |
User Load (0.7ms) SELECT "users".* FROM "users" WHERE (users.tenant_id IS NULL) | |
[ | |
[0] [ | |
[0] 2, | |
[1] "[email protected]", | |
[2] Mon, 23 Dec 2013 17:05:34 CST -06:00, | |
[3] Mon, 23 Dec 2013 17:05:34 CST -06:00 | |
], | |
[1] [ | |
[0] 3, | |
[1] "[email protected]", | |
[2] Mon, 23 Dec 2013 17:23:02 CST -06:00, | |
[3] Mon, 23 Dec 2013 17:23:02 CST -06:00 | |
], | |
[2] [ | |
[0] 4, | |
[1] "[email protected]", | |
[2] Mon, 23 Dec 2013 17:25:05 CST -06:00, | |
[3] Mon, 23 Dec 2013 17:25:05 CST -06:00 | |
], | |
[3] [ | |
[0] 1, | |
[1] "[email protected]", | |
[2] Mon, 23 Dec 2013 16:55:29 CST -06:00, | |
[3] Mon, 23 Dec 2013 17:28:51 CST -06:00 | |
], | |
[4] [ | |
[0] 5, | |
[1] "[email protected]", | |
[2] Mon, 23 Dec 2013 17:29:13 CST -06:00, | |
[3] Mon, 23 Dec 2013 17:29:13 CST -06:00 | |
], | |
[5] [ | |
[0] 6, | |
[1] "[email protected]", | |
[2] Mon, 23 Dec 2013 21:44:27 CST -06:00, | |
[3] Mon, 23 Dec 2013 21:44:27 CST -06:00 | |
], | |
[6] [ | |
[0] 7, | |
[1] "[email protected]", | |
[2] Thu, 02 Jan 2014 16:55:51 CST -06:00, | |
[3] Thu, 02 Jan 2014 16:55:51 CST -06:00 | |
] | |
] | |
ap Member.all.map{|m| [m.id, m.user_id, m.tenant_id, m.created_at, m.updated_at]} | |
Member Load (0.6ms) SELECT "members".* FROM "members" WHERE (members.tenant_id = 1) | |
[ | |
[0] [ | |
[0] 7, | |
[1] 7, | |
[2] 1, | |
[3] Thu, 02 Jan 2014 16:55:51 CST -06:00, | |
[4] Thu, 02 Jan 2014 16:55:51 CST -06:00 | |
], | |
[1] [ | |
[0] 6, | |
[1] 6, | |
[2] 1, | |
[3] Mon, 23 Dec 2013 21:44:27 CST -06:00, | |
[4] Mon, 23 Dec 2013 21:44:27 CST -06:00 | |
], | |
[2] [ | |
[0] 5, | |
[1] 5, | |
[2] 1, | |
[3] Mon, 23 Dec 2013 17:29:13 CST -06:00, | |
[4] Mon, 23 Dec 2013 17:29:13 CST -06:00 | |
], | |
[3] [ | |
[0] 4, | |
[1] 4, | |
[2] 1, | |
[3] Mon, 23 Dec 2013 17:25:05 CST -06:00, | |
[4] Mon, 23 Dec 2013 17:25:05 CST -06:00 | |
], | |
[4] [ | |
[0] 3, | |
[1] 3, | |
[2] 1, | |
[3] Mon, 23 Dec 2013 17:23:02 CST -06:00, | |
[4] Mon, 23 Dec 2013 17:23:02 CST -06:00 | |
], | |
[5] [ | |
[0] 2, | |
[1] 2, | |
[2] 1, | |
[3] Mon, 23 Dec 2013 17:05:34 CST -06:00, | |
[4] Mon, 23 Dec 2013 17:05:34 CST -06:00 | |
], | |
[6] [ | |
[0] 1, | |
[1] 1, | |
[2] 1, | |
[3] Mon, 23 Dec 2013 16:55:30 CST -06:00, | |
[4] Mon, 23 Dec 2013 16:55:30 CST -06:00 | |
] | |
] | |
ap Tenant.all.map{|t| [t.id, t.name]} | |
Tenant Load (0.8ms) SELECT "tenants".* FROM "tenants" WHERE (tenants.tenant_id IS NULL) | |
[ | |
[0] [ | |
[0] 1, | |
[1] "cabforward" | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment