(0.1ms) BEGIN SQL (10.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 05:51:34 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 05:51:34 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (5.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 05:51:52 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 05:51:52 UTC +00:00]]  (2.6ms) COMMIT  (0.1ms) BEGIN SQL (4.9ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 05:52:19 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 05:52:19 UTC +00:00]]  (2.8ms) COMMIT PlyRelation Load (1.3ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 3]]  (0.3ms) BEGIN SQL (5.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00]]  (0.8ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:09:31 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 5]]  (0.5ms) BEGIN SQL (2.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00]]  (2.2ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:09:59 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 7]]  (0.5ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00]]  (2.7ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 6], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00], ["parent_id", 5], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:11:13 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 9]]  (0.3ms) BEGIN SQL (2.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00]]  (2.3ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00]]  (0.4ms) COMMIT  (0.4ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 8], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00], ["parent_id", 7], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00]]  (0.5ms) COMMIT Pliable::Ply Load (1.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 7]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 8]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 8]]  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:11:47 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 11]]  (0.5ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00]]  (2.2ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00]]  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 10], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00], ["parent_id", 9], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00]]  (0.6ms) COMMIT Pliable::Ply Load (1.4ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 9]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 10]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 10]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:12:16 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.5ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 13]]  (0.3ms) BEGIN SQL (2.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:12:34 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:12:34 UTC +00:00]]  (2.1ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:12:34 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:12:34 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 12], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:12:34 UTC +00:00], ["parent_id", 11], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:12:34 UTC +00:00]]  (0.5ms) COMMIT Pliable::Ply Load (1.5ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 11]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 12]]  (0.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 12]]  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:12:35 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:12:35 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 15]]  (0.5ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00]]  (2.4ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00]]  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 14], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00], ["parent_id", 13], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00]]  (0.4ms) COMMIT Pliable::Ply Load (1.6ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 13]]  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 14]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 14]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:15:07 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 17]]  (0.5ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00]]  (2.6ms) COMMIT  (0.4ms) BEGIN SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 16], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00], ["parent_id", 15], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:15:29 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 19]]  (0.5ms) BEGIN SQL (2.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00]]  (2.8ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00]]  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 18], ["child_type", "LineItem"], ["created_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00], ["parent_id", 17], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:15:43 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 21]]  (0.5ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00]]  (2.5ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (1.3ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 20], ["child_type", "Line_Item"], ["created_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00], ["parent_id", 19], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:16:12 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 23]]  (0.3ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00]]  (0.9ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 22], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00], ["parent_id", 21], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:16:25 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 25]]  (0.5ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00]]  (2.7ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 24], ["child_type", "Line_Item"], ["created_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00], ["parent_id", 23], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:18:53 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 27]]  (0.4ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00]]  (2.4ms) COMMIT  (0.4ms) BEGIN SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 26], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00], ["parent_id", 25], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:19:18 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 29]]  (0.3ms) BEGIN SQL (4.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00]]  (2.0ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 28], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00], ["parent_id", 27], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:19:33 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 31]]  (0.4ms) BEGIN SQL (3.3ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:20:07 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:20:07 UTC +00:00]]  (2.1ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 32]]  (0.4ms) BEGIN SQL (3.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00]]  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00]]  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 30], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00], ["parent_id", 29], ["parent_type", "Invoice"], ["updated_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00]]  (0.7ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:21:52 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 34]]  (0.3ms) BEGIN SQL (2.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00]]  (0.7ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00]]  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 32], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00], ["parent_id", 31], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:24:57 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 36]]  (0.4ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:25:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:25:33 UTC +00:00]]  (2.4ms) COMMIT  (0.4ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:25:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:25:33 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 34], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:25:33 UTC +00:00], ["parent_id", 33], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:25:33 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" ORDER BY "ply_relations"."id" DESC LIMIT 1  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:25:56 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:25:56 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 38]]  (0.2ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:26:09 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:26:09 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:26:09 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:26:09 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 36], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:26:09 UTC +00:00], ["parent_id", 35], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:26:09 UTC +00:00]]  (0.5ms) COMMIT Invoice Load (2.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 35]]  (1.1ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 35]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 35]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:26:11 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:26:11 UTC +00:00]]  (1.5ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 40]]  (0.6ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:26:35 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:26:35 UTC +00:00]]  (1.6ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:26:35 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:26:35 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 38], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:26:35 UTC +00:00], ["parent_id", 37], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:26:35 UTC +00:00]]  (0.5ms) COMMIT Pliable::Ply Load (1.5ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 37]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 38]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 38]] Invoice Load (4.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1 Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:28:11 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:28:11 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 42]]  (0.5ms) BEGIN SQL (4.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:28:43 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:28:43 UTC +00:00]]  (2.9ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:28:43 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:28:43 UTC +00:00]]  (0.6ms) COMMIT  (0.4ms) BEGIN SQL (1.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 40], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:28:43 UTC +00:00], ["parent_id", 39], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:28:43 UTC +00:00]]  (0.5ms) COMMIT Invoice Load (2.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:29:48 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:29:48 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 44]]  (0.5ms) BEGIN SQL (4.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00]]  (2.8ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 42], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00], ["parent_id", 41], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:29:57 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 46]]  (0.3ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:31:03 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:31:03 UTC +00:00]]  (2.5ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:31:03 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:31:03 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 44], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:31:03 UTC +00:00], ["parent_id", 43], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:31:03 UTC +00:00]]  (0.6ms) COMMIT PlyRelation Load (1.0ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 43]] Pliable::Ply Load (1.4ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 43]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 44]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 44]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:32:02 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:32:02 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 48]]  (0.3ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:32:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:32:33 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:32:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:32:33 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 46], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:32:33 UTC +00:00], ["parent_id", 45], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:32:33 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:38 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:33:38 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 50]]  (0.5ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:42 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:33:42 UTC +00:00]]  (2.2ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:42 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:33:42 UTC +00:00]]  (0.6ms) COMMIT  (0.4ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 48], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:33:42 UTC +00:00], ["parent_id", 47], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:33:42 UTC +00:00]]  (0.8ms) COMMIT PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 47]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:44 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:33:44 UTC +00:00]]  (2.0ms) COMMIT PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 52]]  (0.5ms) BEGIN SQL (3.4ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00]]  (2.3ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 50], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00], ["parent_id", 49], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 49]]  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:33:56 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 54]]  (0.6ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00]]  (2.6ms) COMMIT  (0.3ms) BEGIN SQL (1.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00]]  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (1.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 52], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00], ["parent_id", 51], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00]]  (0.5ms) COMMIT Pliable::Ply Load (1.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 51]]  (1.0ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 52]]  (0.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 52]]  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:34:27 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 56]]  (0.5ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00]]  (2.2ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 54], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00], ["parent_id", 53], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:35:12 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 58]]  (0.4ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00]]  (2.1ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 56], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00], ["parent_id", 55], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00]]  (0.6ms) COMMIT Pliable::Ply Load (1.5ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 55]]  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 56]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 56]]  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:35:23 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 60]]  (0.4ms) BEGIN SQL (3.4ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00]]  (2.9ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 58], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00], ["parent_id", 57], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00]]  (0.4ms) COMMIT  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 57]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:36:03 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 62]]  (0.4ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00]]  (2.5ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 60], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00], ["parent_id", 59], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00]]  (0.4ms) COMMIT  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 59]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:36:39 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 64]]  (15.8ms) BEGIN SQL (19.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00]]  (8.0ms) COMMIT  (0.2ms) BEGIN SQL (2.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 62], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00], ["parent_id", 61], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00]]  (0.4ms) COMMIT  (1.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 61]]  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:38:02 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 66]]  (0.5ms) BEGIN SQL (3.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 64], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00], ["parent_id", 63], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00]]  (0.6ms) COMMIT Invoice Load (1.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 63]]  (1.0ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 63]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 63]]  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 63]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:38:07 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 68]]  (0.3ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00]]  (2.2ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 66], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00], ["parent_id", 65], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00]]  (0.4ms) COMMIT Invoice Load (1.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 65]]  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 65]]  (0.7ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 65]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:38:24 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 70]]  (0.5ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00]]  (3.1ms) COMMIT  (0.4ms) BEGIN SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00]]  (1.1ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 68], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00], ["parent_id", 67], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00]]  (0.5ms) COMMIT Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:38:55 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 72]]  (0.5ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00]]  (2.2ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 70], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00], ["parent_id", 69], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00]]  (0.4ms) COMMIT Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:39:12 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 74]]  (0.5ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:39:30 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:39:30 UTC +00:00]]  (2.8ms) COMMIT  (0.5ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:39:30 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:39:30 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 72], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:39:30 UTC +00:00], ["parent_id", 71], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:39:30 UTC +00:00]]  (0.6ms) COMMIT LineItem Load (2.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1 Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1 Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' AND "plies"."id" = 1 PG::UndefinedTable: ERROR: relation "plies" does not exist LINE 5: WHERE a.attrelid = '"plies"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"plies"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "ply_relations" does not exist LINE 5: WHERE a.attrelid = '"ply_relations"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"ply_relations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "plies" does not exist LINE 5: WHERE a.attrelid = '"plies"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"plies"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "ply_relations" does not exist LINE 5: WHERE a.attrelid = '"ply_relations"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"ply_relations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "plies" does not exist LINE 5: WHERE a.attrelid = '"plies"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"plies"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "ply_relations" does not exist LINE 5: WHERE a.attrelid = '"ply_relations"'::regclas... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"ply_relations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) BEGIN SQL (3.3ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:53:12 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:53:12 UTC +00:00]]  (1.6ms) COMMIT PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) BEGIN SQL (3.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00]]  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00]]  (0.3ms) COMMIT Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:53:42 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 3]]  (0.2ms) BEGIN SQL (3.7ms) INSERT INTO "ply_relations" ("child_type", "created_at", "parent_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00]]  (2.3ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:54:48 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 5]]  (0.2ms) BEGIN SQL (4.1ms) INSERT INTO "ply_relations" ("child_type", "created_at", "parent_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:55:02 UTC +00:00], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:55:02 UTC +00:00]]  (2.3ms) COMMIT  (0.1ms) BEGIN SQL (1.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:55:02 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:55:02 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:55:02 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:55:02 UTC +00:00]]  (0.4ms) COMMIT Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 6]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]] Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 5]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 5]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]] Pliable::Ply Load (0.5ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" ORDER BY "ply_relations"."id" DESC LIMIT 1  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:56:30 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:56:30 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 7]]  (0.3ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:56:34 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:56:34 UTC +00:00]]  (1.9ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:56:34 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:56:34 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:56:34 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:56:34 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 8]]  (0.5ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:57:30 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:57:30 UTC +00:00]]  (2.8ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:57:30 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:57:30 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:57:30 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 06:57:30 UTC +00:00]]  (0.5ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 9]]  (0.3ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:57:44 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 06:57:44 UTC +00:00]]  (2.2ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 06:57:44 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:57:44 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 11], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 06:57:44 UTC +00:00], ["parent_id", 12], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 06:57:44 UTC +00:00]]  (0.4ms) COMMIT Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 12]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 11]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 11]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" ORDER BY "ply_relations"."id" DESC LIMIT 1 Invoice Load (1.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' LineItem Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' FakePly Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' Pliable::Ply Load (0.7ms) SELECT "plies".* FROM "plies"  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 6]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 6]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 7]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 7]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 8]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 8]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 9]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 9]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 10]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 10]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 11]]  (0.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 11]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 12]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 12]] Pliable::Ply Load (0.5ms) SELECT "plies".* FROM "plies"  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 6]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 6]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 7]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 7]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 8]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 8]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 9]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 9]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 10]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 10]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 11]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 11]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 12]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 12]] FakePly Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:02:21 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:02:21 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 11]] FakePly Load (1.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'  (0.5ms) BEGIN SQL (4.4ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:04:24 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:04:24 UTC +00:00]]  (2.0ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:04:24 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:04:24 UTC +00:00]]  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (1.5ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 13], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:04:24 UTC +00:00], ["parent_id", 14], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:04:24 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:04:26 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:04:26 UTC +00:00]]  (1.5ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 13]]  (0.4ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:06:49 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:06:49 UTC +00:00]]  (2.8ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:06:49 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:06:49 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 15], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:06:49 UTC +00:00], ["parent_id", 16], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:06:49 UTC +00:00]]  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:06:51 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:06:51 UTC +00:00]]  (2.5ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 15]]  (0.5ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:07:12 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:07:12 UTC +00:00]]  (2.3ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:07:12 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:07:12 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 17], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:07:12 UTC +00:00], ["parent_id", 18], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:07:12 UTC +00:00]]  (0.4ms) COMMIT Pliable::Ply Load (1.3ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 18]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 17]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 17]]  (0.4ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:08:34 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:08:34 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 17]]  (0.6ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:09:07 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:09:07 UTC +00:00]]  (2.7ms) COMMIT  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:09:07 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:09:07 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 19], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:09:07 UTC +00:00], ["parent_id", 20], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:09:07 UTC +00:00]]  (0.4ms) COMMIT Pliable::Ply Load (1.0ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 20]]  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 19]]  (0.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 19]] PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 20]]  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:11:06 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:11:06 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 19]]  (0.4ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:11:47 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:11:47 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:11:47 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:11:47 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 21], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:11:47 UTC +00:00], ["parent_id", 22], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:11:47 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:13:31 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:13:31 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 21]]  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00]]  (2.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 23], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00], ["parent_id", 24], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:13:41 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 23]]  (0.3ms) BEGIN SQL (17.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 25], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00], ["parent_id", 26], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:16:03 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 25]]  (0.5ms) BEGIN SQL (3.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00]]  (2.2ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 27], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00], ["parent_id", 28], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:18:30 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 27]]  (0.3ms) BEGIN SQL (2.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:18:39 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:18:39 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:18:43 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:18:43 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 30], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:18:43 UTC +00:00], ["parent_id", 29], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:18:43 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:18:43 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:18:43 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 29]]  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:19:04 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:19:04 UTC +00:00]]  (1.6ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:19:05 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:19:05 UTC +00:00]]  (1.9ms) COMMIT  (0.4ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 32], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:19:05 UTC +00:00], ["parent_id", 31], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:19:05 UTC +00:00]]  (0.6ms) COMMIT Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:19:05 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:19:05 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 31]]  (0.4ms) BEGIN SQL (3.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:20:17 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:20:17 UTC +00:00]]  (2.8ms) COMMIT  (0.5ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:20:20 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:20:20 UTC +00:00]]  (2.1ms) COMMIT  (0.4ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 34], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:20:20 UTC +00:00], ["parent_id", 33], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:20:20 UTC +00:00]]  (0.6ms) COMMIT Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:20:20 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:20:20 UTC +00:00]]  (2.0ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 33]] Pliable::Ply Load (1.1ms) SELECT "plies".* FROM "plies"  (4.0ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.7ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 6]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 6]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 7]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 7]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 8]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 8]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 9]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 9]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 10]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 10]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 11]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 11]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 12]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 12]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 13]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 13]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 14]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 14]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 15]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 15]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 16]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 16]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 17]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 17]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 18]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 18]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 19]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 19]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 20]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 20]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 21]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 21]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 22]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 22]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 23]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 23]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 24]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 24]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 25]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 25]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 26]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 26]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 27]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 27]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 28]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 28]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 29]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 29]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 30]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 30]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 31]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 31]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 32]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 32]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 33]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 33]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 34]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 34]]  (0.4ms) BEGIN SQL (1.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:21:54 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:21:54 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:22:13 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:22:13 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (5.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 36], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:22:13 UTC +00:00], ["parent_id", 35], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:22:13 UTC +00:00]]  (0.5ms) COMMIT Invoice Load (0.9ms) SELECT "plies".* FROM "plies"  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 6]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 6]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 7]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 7]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 8]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 8]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 9]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 9]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 10]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 10]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 11]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 11]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 12]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 12]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 13]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 13]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 14]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 14]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 15]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 15]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 16]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 16]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 17]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 17]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 18]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 18]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 19]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 19]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 20]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 20]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 21]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 21]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 22]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 22]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 23]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 23]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 24]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 24]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 25]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 25]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 26]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 26]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 27]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 27]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 28]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 28]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 29]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 29]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 30]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 30]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 31]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 31]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 32]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 32]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 33]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 33]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 34]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 34]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 35]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 35]]  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 36]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 36]] Invoice Load (1.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.3ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:22:40 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:22:40 UTC +00:00]]  (0.5ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 35]]  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00]]  (2.3ms) COMMIT  (0.5ms) BEGIN SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 38], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00], ["parent_id", 37], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00]]  (0.4ms) COMMIT Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:23:55 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 37]]  (0.2ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00]]  (1.9ms) COMMIT  (0.5ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 40], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00], ["parent_id", 39], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00]]  (0.5ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:24:09 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 39]]  (0.6ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00]]  (2.4ms) COMMIT  (0.4ms) BEGIN SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00]]  (0.6ms) COMMIT  (0.5ms) BEGIN SQL (1.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 42], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00], ["parent_id", 41], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00]]  (0.4ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:24:20 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 41]]  (0.4ms) BEGIN SQL (3.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00]]  (2.4ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00]]  (0.5ms) COMMIT  (0.3ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 44], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00], ["parent_id", 43], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00]]  (0.4ms) COMMIT  (0.7ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:24:34 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 43]]  (0.2ms) BEGIN SQL (4.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00]]  (1.5ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00]]  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 46], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00], ["parent_id", 45], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00]]  (0.5ms) COMMIT  (0.6ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:26:04 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 45]]  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00]]  (1.9ms) COMMIT  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 48], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00], ["parent_id", 47], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00]]  (0.4ms) COMMIT Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:26:20 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 47]]  (0.3ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00]]  (2.3ms) COMMIT  (0.4ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00]]  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 50], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00], ["parent_id", 49], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:27:32 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 49]]  (0.5ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00]]  (1.9ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00]]  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 52], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00], ["parent_id", 51], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:28:33 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 51]]  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 54], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00], ["parent_id", 53], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00]]  (0.6ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:28:54 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 53]]  (0.5ms) BEGIN SQL (3.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00]]  (1.6ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00]]  (0.5ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 56], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00], ["parent_id", 55], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:29:15 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 55]]  (0.5ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00]]  (2.6ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 58], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00], ["parent_id", 57], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:29:39 UTC +00:00]]  (0.3ms) COMMIT PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 57]]  (0.6ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:34:32 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:34:32 UTC +00:00]]  (2.2ms) COMMIT  (0.3ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:34:32 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:34:32 UTC +00:00]]  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 60], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:34:32 UTC +00:00], ["parent_id", 59], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:34:32 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 59]]  (0.4ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:36:10 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:36:10 UTC +00:00]]  (0.4ms) COMMIT PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 59]]  (0.6ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:36:28 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:36:28 UTC +00:00]]  (1.8ms) COMMIT  (0.5ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:36:28 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:36:28 UTC +00:00]]  (0.6ms) COMMIT  (0.2ms) BEGIN SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 62], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:36:28 UTC +00:00], ["parent_id", 61], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:36:28 UTC +00:00]]  (0.6ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:37:26 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:37:26 UTC +00:00]]  (2.1ms) COMMIT PlyRelation Load (1.0ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 61]]  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:37:58 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:37:58 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:37:58 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:37:58 UTC +00:00]] SQL (1.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:37:58 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:37:58 UTC +00:00]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:01 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:38:01 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:38:34 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00]] PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:38:45 UTC +00:00]] PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00]] Pliable::Ply Load (1.0ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.9ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:39:05 UTC +00:00]] PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.4ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00]] SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00]] SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00]] Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:39:22 UTC +00:00]] PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00]] SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00]] Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:39:34 UTC +00:00]] PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Invoice Load (1.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (10.9ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:42:28 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:42:28 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Invoice Load (1.1ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.2ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:50:25 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:50:25 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Invoice Load (0.9ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.1ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:51:36 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:51:36 UTC +00:00]] PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.8ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Invoice Load (0.9ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.3ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:56:51 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:56:51 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00]] SQL (1.3ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00]] Invoice Load (1.1ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (1.0ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:56:55 UTC +00:00]] PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.3ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00]] SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00]] SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:57:15 UTC +00:00]] PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (7.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.4ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00]] SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00]] SQL (1.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:59:21 UTC +00:00]] PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00]] SQL (1.7ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00]] Invoice Load (0.7ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (1.1ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 07:59:50 UTC +00:00]] PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (1.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:00:01 UTC +00:00]] PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK Invoice Load (0.4ms) SELECT "plies".* FROM "plies"  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (1.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.7ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] SQL (0.3ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] SQL (0.3ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 6], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00], ["parent_id", 5], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:04:33 UTC +00:00]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies"  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 5]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 6]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 6]]  (0.3ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00]] SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (1.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00]] PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:05:39 UTC +00:00]] SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00]] SQL (0.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00]] SQL (0.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 6], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00], ["parent_id", 5], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:05:40 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "plies"  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.2ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.2ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]] PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]] SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]] SQL (0.5ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]] SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]] SQL (0.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:06:44 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "plies"  (0.1ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.8ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.9ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] PlyRelation Load (1.2ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] SQL (0.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:07:38 UTC +00:00]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies"  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.3ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.6ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.3ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) ROLLBACK  (0.4ms) BEGIN SQL (1.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00]]  (0.4ms) COMMIT  (0.2ms) BEGIN SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:08:14 UTC +00:00]]  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Invoice Load (0.4ms) SELECT "plies".* FROM "plies"  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.2ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.2ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] SQL (1.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (1.1ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] SQL (0.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] SQL (0.3ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:08:48 UTC +00:00]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies"  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (1.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.9ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] SQL (0.5ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:12 UTC +00:00]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies"  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.3ms) ROLLBACK  (1.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (5.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (17.2ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.6ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN SQL (10.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] PlyRelation Load (2.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (3.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] SQL (2.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] SQL (1.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] Invoice Load (2.3ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (2.1ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (2.7ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (1.0ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.5ms) BEGIN SQL (1.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] SQL (1.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] SQL (1.4ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 4], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00], ["parent_id", 3], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:09:52 UTC +00:00]] Invoice Load (1.1ms) SELECT "plies".* FROM "plies"  (1.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 3]]  (1.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 3]]  (1.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 4]]  (1.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 4]]  (0.7ms) ROLLBACK  (1.8ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (5.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (13.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.7ms) BEGIN  (0.8ms) COMMIT  (0.6ms) BEGIN SQL (11.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00]] PlyRelation Load (2.3ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.9ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.5ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00]] SQL (2.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00]] SQL (2.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:10:08 UTC +00:00]] Invoice Load (2.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (2.0ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (2.8ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.7ms) ROLLBACK  (2.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (6.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (15.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (1.5ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.4ms) BEGIN SQL (13.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00]] PlyRelation Load (2.5ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00]] SQL (2.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00]] SQL (2.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:12:04 UTC +00:00]] Invoice Load (2.2ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (1.9ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (2.8ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.8ms) ROLLBACK  (2.0ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (6.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (13.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.8ms) BEGIN  (0.8ms) COMMIT  (0.5ms) BEGIN SQL (16.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00]] PlyRelation Load (2.4ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.8ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN SQL (3.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00]] SQL (2.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00]] SQL (2.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:12:28 UTC +00:00]] Invoice Load (2.7ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (2.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (3.2ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.1ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.9ms) ROLLBACK  (1.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (5.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (18.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.5ms) BEGIN SQL (11.9ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00]] PlyRelation Load (2.4ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00]] SQL (2.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00]] SQL (1.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:12:46 UTC +00:00]] Invoice Load (2.3ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (2.0ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (2.6ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.8ms) ROLLBACK  (1.9ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (5.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (15.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.7ms) BEGIN  (0.5ms) COMMIT  (0.6ms) BEGIN SQL (12.2ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00]] PlyRelation Load (2.4ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.3ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00]] SQL (2.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00]] SQL (2.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:13:23 UTC +00:00]] Invoice Load (1.7ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (1.9ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (2.7ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.6ms) ROLLBACK  (1.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (5.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (16.6ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (1.5ms) BEGIN  (0.5ms) COMMIT  (0.5ms) BEGIN SQL (12.2ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:15:43 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:15:43 UTC +00:00]] PlyRelation Load (2.5ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.9ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN SQL (3.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:15:44 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:15:44 UTC +00:00]] SQL (2.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:15:44 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:15:44 UTC +00:00]] SQL (2.0ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:15:44 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:15:44 UTC +00:00]] Invoice Load (1.9ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (2.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (1.8ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (2.7ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (1.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (1.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.7ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (3.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00]] PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00]] SQL (1.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00]] SQL (0.7ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:21:59 UTC +00:00]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (3.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.8ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (3.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (2.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00]] SQL (1.0ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:22:17 UTC +00:00]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies"  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.2ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (3.8ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00]] PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:22:30 UTC +00:00]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies"  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]]  (0.3ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (3.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00]] PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (1.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:25:03 UTC +00:00]] Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (3.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.6ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (5.9ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00]] PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.3ms) BEGIN SQL (1.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00]] SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00]] SQL (1.2ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:37:04 UTC +00:00]] Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.8ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (3.5ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00]] PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (1.4ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:38:20 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.7ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.8ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (3.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (3.3ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (1.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:38:40 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (4.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (3.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (1.5ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:39:33 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (1.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (3.2ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN SQL (1.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00]] SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:40:31 UTC +00:00]] Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.8ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (6.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (3.4ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (1.3ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00]] SQL (0.8ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00]] SQL (0.8ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:41:06 UTC +00:00]] Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.8ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "plies"  (0.2ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.3ms) ROLLBACK  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.6ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00]] SQL (0.7ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00]] SQL (1.1ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 08:41:40 UTC +00:00]] Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (1.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.9ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.5ms) SELECT COUNT(*) FROM "plies"  (0.5ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c' LineItem Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (3.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (7.3ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00], ["updated_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00]] PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00]] SQL (0.9ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00]] SQL (0.9ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Tue, 21 Jan 2014 21:23:33 UTC +00:00]] Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (1.1ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.7ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (1.0ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.3ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "plies"  (0.3ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c' LineItem Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.2ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (3.8ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (11.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (9.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN SQL (4.7ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00], ["updated_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00]] PlyRelation Load (1.2ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Wed, 22 Jan 2014 04:57:37 UTC +00:00]] Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.8ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.7ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (1.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "plies"  (0.2ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c' LineItem Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.6ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.3ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) ROLLBACK  (0.4ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'  (5.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (4.0ms) INSERT INTO "ply_relations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00], ["updated_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00]] PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00], ["data", {"Id"=>"r@nd0m1d111", "IsDeleted"=>false, "Name"=>"INV-0000"}], ["last_checked", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:35 UTC +00:00], ["oid", "r@nd0m1d000"], ["otype", "Invoice__c"], ["updated_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00]] SQL (0.6ms) INSERT INTO "plies" ("created_at", "data", "last_checked", "last_modified", "oid", "otype", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00], ["data", {"Id"=>"a01i0000007kDbrAAE", "IsDeleted"=>false, "Name"=>"i"}], ["last_checked", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["last_modified", Sun, 19 Jan 2014 07:48:36 UTC +00:00], ["oid", "a01i0000007kDbrAAE"], ["otype", "Line_Item__c"], ["updated_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00]] SQL (0.6ms) INSERT INTO "ply_relations" ("child_id", "child_type", "created_at", "parent_id", "parent_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["child_id", 2], ["child_type", "Line_Item__c"], ["created_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00], ["parent_id", 1], ["parent_type", "Invoice__c"], ["updated_at", Wed, 22 Jan 2014 04:57:47 UTC +00:00]] Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.9ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.6ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Pliable::Ply Load (0.8ms) SELECT "plies".* FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 AND "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1 [["parent_id", 1]]  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'  (0.4ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.5ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "plies"  (0.3ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c' LineItem Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.7ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 2]]  (0.5ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 2]] Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1  (0.2ms) SELECT child_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."child_id" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]  (0.4ms) SELECT parent_type FROM "plies" INNER JOIN "ply_relations" ON "plies"."id" = "ply_relations"."parent_id" WHERE "ply_relations"."child_id" = $1 [["child_id", 1]]  (0.2ms) ROLLBACK