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] "allen+1@x.com",
[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] "allen+2@x.com",
[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] "allen+3@x.com",
[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] "allen@x.com",
[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] "allen+4@x.com",
[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] "user@example.com",
[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] "auswalk+1@x.com",
[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"
]
]