pliable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/.bundle/install.log +1575 -0
  2. data/.document +3 -0
  3. data/.travis.yml +16 -0
  4. data/.yardopts +1 -0
  5. data/ChangeLog.md +4 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +134 -0
  8. data/LICENSE.txt +20 -0
  9. data/README.md +287 -0
  10. data/Rakefile +39 -0
  11. data/lib/generators/pliable/model_generator.rb +40 -0
  12. data/lib/generators/pliable/templates/migration.rb +24 -0
  13. data/lib/pliable/configure.rb +12 -0
  14. data/lib/pliable/ply.rb +89 -0
  15. data/lib/pliable/ply_relation.rb +4 -0
  16. data/lib/pliable/text_helper.rb +3 -0
  17. data/lib/pliable/version.rb +4 -0
  18. data/lib/pliable.rb +17 -0
  19. data/pliable.gemspec +35 -0
  20. data/spec/.DS_Store +0 -0
  21. data/spec/dummy/README.rdoc +261 -0
  22. data/spec/dummy/Rakefile +7 -0
  23. data/spec/dummy/app/models/.gitkeep +0 -0
  24. data/spec/dummy/app/models/invoice.rb +6 -0
  25. data/spec/dummy/app/models/line_item.rb +5 -0
  26. data/spec/dummy/app/models/merchandise.rb +5 -0
  27. data/spec/dummy/app/models/ply.rb +7 -0
  28. data/spec/dummy/config/application.rb +65 -0
  29. data/spec/dummy/config/boot.rb +10 -0
  30. data/spec/dummy/config/database.yml +19 -0
  31. data/spec/dummy/config/environment.rb +5 -0
  32. data/spec/dummy/config/environments/development.rb +37 -0
  33. data/spec/dummy/config/environments/production.rb +67 -0
  34. data/spec/dummy/config/environments/test.rb +37 -0
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/spec/dummy/config/initializers/inflections.rb +15 -0
  37. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  38. data/spec/dummy/config/initializers/pliable.rb +5 -0
  39. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  40. data/spec/dummy/config/initializers/session_store.rb +8 -0
  41. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/spec/dummy/config/locales/en.yml +5 -0
  43. data/spec/dummy/config/routes.rb +58 -0
  44. data/spec/dummy/config.ru +4 -0
  45. data/spec/dummy/db/migrate/.DS_Store +0 -0
  46. data/spec/dummy/db/migrate/20140117210156_create_plies_and_ply_relations.rb +23 -0
  47. data/spec/dummy/db/migration_helper.rb +42 -0
  48. data/spec/dummy/db/schema.rb +39 -0
  49. data/spec/dummy/db/seeds.rb +17 -0
  50. data/spec/dummy/db/static/bottles.csv +201 -0
  51. data/spec/dummy/db/static/varietal_aliases.csv +433 -0
  52. data/spec/dummy/db/static/varietals.csv +295 -0
  53. data/spec/dummy/lib/assets/.gitkeep +0 -0
  54. data/spec/dummy/log/.gitkeep +0 -0
  55. data/spec/dummy/log/development.log +63 -0
  56. data/spec/dummy/log/test.log +2339 -0
  57. data/spec/dummy/public/404.html +26 -0
  58. data/spec/dummy/public/422.html +26 -0
  59. data/spec/dummy/public/500.html +25 -0
  60. data/spec/dummy/public/favicon.ico +0 -0
  61. data/spec/dummy/script/rails +6 -0
  62. data/spec/dummy/spec/fixtures/varietals.yml +2135 -0
  63. data/spec/dummy/spec/models/.DS_Store +0 -0
  64. data/spec/dummy/spec/models/fake_ply_test.rb +12 -0
  65. data/spec/dummy/spec/models/ply_relation_spec.rb +12 -0
  66. data/spec/dummy/spec/pliable_integartion_spec.rb +48 -0
  67. data/spec/dummy/spec/tmp/app/models/foo_alias.rb +4 -0
  68. data/spec/spec_helper.rb +36 -0
  69. data/sub +4 -0
  70. metadata +389 -0
@@ -0,0 +1,2339 @@
1
+  (0.1ms) BEGIN
2
+ 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]]
3
+  (0.6ms) COMMIT
4
+  (0.2ms) BEGIN
5
+ 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]]
6
+  (2.6ms) COMMIT
7
+  (0.1ms) BEGIN
8
+ 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]]
9
+  (2.8ms) COMMIT
10
+ PlyRelation Load (1.3ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 3]]
11
+  (0.3ms) BEGIN
12
+ 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]]
13
+  (0.5ms) COMMIT
14
+  (0.1ms) BEGIN
15
+ 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]]
16
+  (0.8ms) COMMIT
17
+  (0.3ms) BEGIN
18
+ 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]]
19
+  (0.4ms) COMMIT
20
+  (0.1ms) BEGIN
21
+ 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]]
22
+  (0.3ms) COMMIT
23
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 5]]
24
+  (0.5ms) BEGIN
25
+ 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]]
26
+  (2.2ms) COMMIT
27
+  (0.3ms) BEGIN
28
+ 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]]
29
+  (0.4ms) COMMIT
30
+  (0.3ms) BEGIN
31
+ 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]]
32
+  (0.4ms) COMMIT
33
+  (0.1ms) BEGIN
34
+ 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]]
35
+  (0.4ms) COMMIT
36
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 7]]
37
+  (0.5ms) BEGIN
38
+ 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]]
39
+  (2.7ms) COMMIT
40
+  (0.3ms) BEGIN
41
+ 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]]
42
+  (0.6ms) COMMIT
43
+  (0.3ms) BEGIN
44
+ 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]]
45
+  (0.4ms) COMMIT
46
+  (0.1ms) BEGIN
47
+ 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]]
48
+  (0.3ms) COMMIT
49
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 9]]
50
+  (0.3ms) BEGIN
51
+ 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]]
52
+  (2.3ms) COMMIT
53
+  (0.3ms) BEGIN
54
+ 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]]
55
+  (0.4ms) COMMIT
56
+  (0.4ms) BEGIN
57
+ 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]]
58
+  (0.5ms) COMMIT
59
+ 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]]
60
+  (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]]
61
+  (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]]
62
+  (0.2ms) BEGIN
63
+ 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]]
64
+  (0.4ms) COMMIT
65
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 11]]
66
+  (0.5ms) BEGIN
67
+ 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]]
68
+  (2.2ms) COMMIT
69
+  (0.2ms) BEGIN
70
+ 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]]
71
+  (0.5ms) COMMIT
72
+  (0.4ms) BEGIN
73
+ 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]]
74
+  (0.6ms) COMMIT
75
+ 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]]
76
+  (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]]
77
+  (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]]
78
+  (0.2ms) BEGIN
79
+ 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]]
80
+  (0.4ms) COMMIT
81
+ PlyRelation Load (0.5ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 13]]
82
+  (0.3ms) BEGIN
83
+ 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]]
84
+  (2.1ms) COMMIT
85
+  (0.3ms) BEGIN
86
+ 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]]
87
+  (0.6ms) COMMIT
88
+  (0.2ms) BEGIN
89
+ 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]]
90
+  (0.5ms) COMMIT
91
+ 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]]
92
+  (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]]
93
+  (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]]
94
+  (0.2ms) BEGIN
95
+ 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]]
96
+  (0.4ms) COMMIT
97
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 15]]
98
+  (0.5ms) BEGIN
99
+ 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]]
100
+  (2.4ms) COMMIT
101
+  (0.2ms) BEGIN
102
+ 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]]
103
+  (0.5ms) COMMIT
104
+  (0.5ms) BEGIN
105
+ 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]]
106
+  (0.4ms) COMMIT
107
+ 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]]
108
+  (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]]
109
+  (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]]
110
+  (0.2ms) BEGIN
111
+ 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]]
112
+  (0.4ms) COMMIT
113
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 17]]
114
+  (0.5ms) BEGIN
115
+ 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]]
116
+  (2.6ms) COMMIT
117
+  (0.4ms) BEGIN
118
+ 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]]
119
+  (0.4ms) COMMIT
120
+  (0.3ms) BEGIN
121
+ 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]]
122
+  (0.5ms) COMMIT
123
+  (0.1ms) BEGIN
124
+ 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]]
125
+  (0.3ms) COMMIT
126
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 19]]
127
+  (0.5ms) BEGIN
128
+ 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]]
129
+  (2.8ms) COMMIT
130
+  (0.3ms) BEGIN
131
+ 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]]
132
+  (0.5ms) COMMIT
133
+  (0.4ms) BEGIN
134
+ 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]]
135
+  (0.4ms) COMMIT
136
+  (0.1ms) BEGIN
137
+ 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]]
138
+  (0.3ms) COMMIT
139
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 21]]
140
+  (0.5ms) BEGIN
141
+ 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]]
142
+  (2.5ms) COMMIT
143
+  (0.2ms) BEGIN
144
+ 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]]
145
+  (0.6ms) COMMIT
146
+  (0.3ms) BEGIN
147
+ 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]]
148
+  (0.6ms) COMMIT
149
+  (0.1ms) BEGIN
150
+ 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]]
151
+  (0.3ms) COMMIT
152
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 23]]
153
+  (0.3ms) BEGIN
154
+ 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]]
155
+  (0.9ms) COMMIT
156
+  (0.1ms) BEGIN
157
+ 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]]
158
+  (0.4ms) COMMIT
159
+  (0.2ms) BEGIN
160
+ 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]]
161
+  (0.4ms) COMMIT
162
+  (0.1ms) BEGIN
163
+ 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]]
164
+  (0.3ms) COMMIT
165
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 25]]
166
+  (0.5ms) BEGIN
167
+ 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]]
168
+  (2.7ms) COMMIT
169
+  (0.2ms) BEGIN
170
+ 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]]
171
+  (0.6ms) COMMIT
172
+  (0.3ms) BEGIN
173
+ 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]]
174
+  (0.5ms) COMMIT
175
+  (0.1ms) BEGIN
176
+ 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]]
177
+  (0.4ms) COMMIT
178
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 27]]
179
+  (0.4ms) BEGIN
180
+ 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]]
181
+  (2.4ms) COMMIT
182
+  (0.4ms) BEGIN
183
+ 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]]
184
+  (0.4ms) COMMIT
185
+  (0.3ms) BEGIN
186
+ 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]]
187
+  (0.6ms) COMMIT
188
+  (0.1ms) BEGIN
189
+ 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]]
190
+  (0.3ms) COMMIT
191
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 29]]
192
+  (0.3ms) BEGIN
193
+ 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]]
194
+  (2.0ms) COMMIT
195
+  (0.2ms) BEGIN
196
+ 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]]
197
+  (0.5ms) COMMIT
198
+  (0.2ms) BEGIN
199
+ 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]]
200
+  (0.4ms) COMMIT
201
+  (0.1ms) BEGIN
202
+ 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]]
203
+  (0.3ms) COMMIT
204
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 31]]
205
+  (0.4ms) BEGIN
206
+ 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]]
207
+  (2.1ms) COMMIT
208
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 32]]
209
+  (0.4ms) BEGIN
210
+ 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]]
211
+  (0.7ms) COMMIT
212
+  (0.1ms) BEGIN
213
+ 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]]
214
+  (0.5ms) COMMIT
215
+  (0.4ms) BEGIN
216
+ 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]]
217
+  (0.7ms) COMMIT
218
+  (0.2ms) BEGIN
219
+ 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]]
220
+  (0.3ms) COMMIT
221
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 34]]
222
+  (0.3ms) BEGIN
223
+ 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]]
224
+  (0.7ms) COMMIT
225
+  (0.1ms) BEGIN
226
+ 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]]
227
+  (0.3ms) COMMIT
228
+  (0.3ms) BEGIN
229
+ 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]]
230
+  (0.4ms) COMMIT
231
+  (0.2ms) BEGIN
232
+ 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]]
233
+  (0.4ms) COMMIT
234
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 36]]
235
+  (0.4ms) BEGIN
236
+ 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]]
237
+  (2.4ms) COMMIT
238
+  (0.4ms) BEGIN
239
+ 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]]
240
+  (0.5ms) COMMIT
241
+  (0.3ms) BEGIN
242
+ 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]]
243
+  (0.4ms) COMMIT
244
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" ORDER BY "ply_relations"."id" DESC LIMIT 1
245
+  (0.2ms) BEGIN
246
+ 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]]
247
+  (0.4ms) COMMIT
248
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 38]]
249
+  (0.2ms) BEGIN
250
+ 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]]
251
+  (0.4ms) COMMIT
252
+  (0.1ms) BEGIN
253
+ 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]]
254
+  (0.4ms) COMMIT
255
+  (0.3ms) BEGIN
256
+ 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]]
257
+  (0.5ms) COMMIT
258
+ Invoice Load (2.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 35]]
259
+  (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]]
260
+  (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]]
261
+  (0.1ms) BEGIN
262
+ 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]]
263
+  (1.5ms) COMMIT
264
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 40]]
265
+  (0.6ms) BEGIN
266
+ 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]]
267
+  (1.6ms) COMMIT
268
+  (0.2ms) BEGIN
269
+ 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]]
270
+  (0.5ms) COMMIT
271
+  (0.3ms) BEGIN
272
+ 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]]
273
+  (0.5ms) COMMIT
274
+ 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]]
275
+  (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]]
276
+  (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]]
277
+ Invoice Load (4.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
278
+ Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
279
+  (0.2ms) BEGIN
280
+ 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]]
281
+  (0.4ms) COMMIT
282
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 42]]
283
+  (0.5ms) BEGIN
284
+ 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]]
285
+  (2.9ms) COMMIT
286
+  (0.3ms) BEGIN
287
+ 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]]
288
+  (0.6ms) COMMIT
289
+  (0.4ms) BEGIN
290
+ 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]]
291
+  (0.5ms) COMMIT
292
+ Invoice Load (2.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
293
+  (0.3ms) BEGIN
294
+ 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]]
295
+  (0.4ms) COMMIT
296
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 44]]
297
+  (0.5ms) BEGIN
298
+ 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]]
299
+  (2.8ms) COMMIT
300
+  (0.3ms) BEGIN
301
+ 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]]
302
+  (0.4ms) COMMIT
303
+  (0.3ms) BEGIN
304
+ 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]]
305
+  (0.6ms) COMMIT
306
+  (0.1ms) BEGIN
307
+ 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]]
308
+  (0.4ms) COMMIT
309
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 46]]
310
+  (0.3ms) BEGIN
311
+ 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]]
312
+  (2.5ms) COMMIT
313
+  (0.2ms) BEGIN
314
+ 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]]
315
+  (0.5ms) COMMIT
316
+  (0.3ms) BEGIN
317
+ 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]]
318
+  (0.6ms) COMMIT
319
+ PlyRelation Load (1.0ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 43]]
320
+ 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]]
321
+  (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]]
322
+  (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]]
323
+  (0.2ms) BEGIN
324
+ 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]]
325
+  (0.4ms) COMMIT
326
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 48]]
327
+  (0.3ms) BEGIN
328
+ 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]]
329
+  (0.6ms) COMMIT
330
+  (0.2ms) BEGIN
331
+ 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]]
332
+  (0.4ms) COMMIT
333
+  (0.3ms) BEGIN
334
+ 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]]
335
+  (0.4ms) COMMIT
336
+  (0.2ms) BEGIN
337
+ 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]]
338
+  (0.4ms) COMMIT
339
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 50]]
340
+  (0.5ms) BEGIN
341
+ 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]]
342
+  (2.2ms) COMMIT
343
+  (0.2ms) BEGIN
344
+ 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]]
345
+  (0.6ms) COMMIT
346
+  (0.4ms) BEGIN
347
+ 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]]
348
+  (0.8ms) COMMIT
349
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 47]]
350
+  (0.2ms) BEGIN
351
+ 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]]
352
+  (2.0ms) COMMIT
353
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 52]]
354
+  (0.5ms) BEGIN
355
+ 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]]
356
+  (2.3ms) COMMIT
357
+  (0.2ms) BEGIN
358
+ 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]]
359
+  (0.6ms) COMMIT
360
+  (0.3ms) BEGIN
361
+ 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]]
362
+  (0.4ms) COMMIT
363
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 49]]
364
+  (0.2ms) BEGIN
365
+ 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]]
366
+  (0.4ms) COMMIT
367
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 54]]
368
+  (0.6ms) BEGIN
369
+ 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]]
370
+  (2.6ms) COMMIT
371
+  (0.3ms) BEGIN
372
+ 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]]
373
+  (0.5ms) COMMIT
374
+  (0.4ms) BEGIN
375
+ 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]]
376
+  (0.5ms) COMMIT
377
+ 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]]
378
+  (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]]
379
+  (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]]
380
+  (0.3ms) BEGIN
381
+ 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]]
382
+  (0.4ms) COMMIT
383
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 56]]
384
+  (0.5ms) BEGIN
385
+ 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]]
386
+  (2.2ms) COMMIT
387
+  (0.3ms) BEGIN
388
+ 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]]
389
+  (0.6ms) COMMIT
390
+  (0.3ms) BEGIN
391
+ 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]]
392
+  (0.5ms) COMMIT
393
+  (0.1ms) BEGIN
394
+ 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]]
395
+  (0.3ms) COMMIT
396
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 58]]
397
+  (0.4ms) BEGIN
398
+ 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]]
399
+  (2.1ms) COMMIT
400
+  (0.3ms) BEGIN
401
+ 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]]
402
+  (0.4ms) COMMIT
403
+  (0.2ms) BEGIN
404
+ 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]]
405
+  (0.6ms) COMMIT
406
+ 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]]
407
+  (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]]
408
+  (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]]
409
+  (0.3ms) BEGIN
410
+ 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]]
411
+  (0.4ms) COMMIT
412
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 60]]
413
+  (0.4ms) BEGIN
414
+ 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]]
415
+  (2.9ms) COMMIT
416
+  (0.3ms) BEGIN
417
+ 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]]
418
+  (0.5ms) COMMIT
419
+  (0.2ms) BEGIN
420
+ 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]]
421
+  (0.4ms) COMMIT
422
+  (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]]
423
+  (0.2ms) BEGIN
424
+ 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]]
425
+  (0.4ms) COMMIT
426
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 62]]
427
+  (0.4ms) BEGIN
428
+ 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]]
429
+  (2.5ms) COMMIT
430
+  (0.2ms) BEGIN
431
+ 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]]
432
+  (0.6ms) COMMIT
433
+  (0.3ms) BEGIN
434
+ 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]]
435
+  (0.4ms) COMMIT
436
+  (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]]
437
+  (0.2ms) BEGIN
438
+ 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]]
439
+  (0.4ms) COMMIT
440
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 64]]
441
+  (15.8ms) BEGIN
442
+ 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]]
443
+  (8.0ms) COMMIT
444
+  (0.2ms) BEGIN
445
+ 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]]
446
+  (0.5ms) COMMIT
447
+  (0.2ms) BEGIN
448
+ 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]]
449
+  (0.4ms) COMMIT
450
+  (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]]
451
+  (0.3ms) BEGIN
452
+ 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]]
453
+  (0.4ms) COMMIT
454
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 66]]
455
+  (0.5ms) BEGIN
456
+ 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]]
457
+  (0.6ms) COMMIT
458
+  (0.2ms) BEGIN
459
+ 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]]
460
+  (0.4ms) COMMIT
461
+  (0.2ms) BEGIN
462
+ 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]]
463
+  (0.6ms) COMMIT
464
+ Invoice Load (1.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 63]]
465
+  (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]]
466
+  (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]]
467
+  (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]]
468
+  (0.2ms) BEGIN
469
+ 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]]
470
+  (0.4ms) COMMIT
471
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 68]]
472
+  (0.3ms) BEGIN
473
+ 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]]
474
+  (2.2ms) COMMIT
475
+  (0.3ms) BEGIN
476
+ 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]]
477
+  (0.6ms) COMMIT
478
+  (0.2ms) BEGIN
479
+ 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]]
480
+  (0.4ms) COMMIT
481
+ Invoice Load (1.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 65]]
482
+  (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]]
483
+  (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]]
484
+  (0.1ms) BEGIN
485
+ 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]]
486
+  (0.4ms) COMMIT
487
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 70]]
488
+  (0.5ms) BEGIN
489
+ 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]]
490
+  (3.1ms) COMMIT
491
+  (0.4ms) BEGIN
492
+ 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]]
493
+  (1.1ms) COMMIT
494
+  (0.3ms) BEGIN
495
+ 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]]
496
+  (0.5ms) COMMIT
497
+ Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
498
+  (0.1ms) BEGIN
499
+ 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]]
500
+  (0.4ms) COMMIT
501
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 72]]
502
+  (0.5ms) BEGIN
503
+ 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]]
504
+  (2.2ms) COMMIT
505
+  (0.3ms) BEGIN
506
+ 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]]
507
+  (0.4ms) COMMIT
508
+  (0.3ms) BEGIN
509
+ 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]]
510
+  (0.4ms) COMMIT
511
+ Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
512
+  (0.2ms) BEGIN
513
+ 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]]
514
+  (0.3ms) COMMIT
515
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 74]]
516
+  (0.5ms) BEGIN
517
+ 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]]
518
+  (2.8ms) COMMIT
519
+  (0.5ms) BEGIN
520
+ 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]]
521
+  (0.4ms) COMMIT
522
+  (0.2ms) BEGIN
523
+ 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]]
524
+  (0.6ms) COMMIT
525
+ LineItem Load (2.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
526
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
527
+ Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' AND "plies"."id" = 1
528
+ PG::UndefinedTable: ERROR: relation "plies" does not exist
529
+ LINE 5: WHERE a.attrelid = '"plies"'::regclass
530
+ ^
531
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
532
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
533
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
534
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
535
+ WHERE a.attrelid = '"plies"'::regclass
536
+ AND a.attnum > 0 AND NOT a.attisdropped
537
+ ORDER BY a.attnum
538
+
539
+ PG::UndefinedTable: ERROR: relation "ply_relations" does not exist
540
+ LINE 5: WHERE a.attrelid = '"ply_relations"'::regclas...
541
+ ^
542
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
543
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
544
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
545
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
546
+ WHERE a.attrelid = '"ply_relations"'::regclass
547
+ AND a.attnum > 0 AND NOT a.attisdropped
548
+ ORDER BY a.attnum
549
+
550
+ PG::UndefinedTable: ERROR: relation "plies" does not exist
551
+ LINE 5: WHERE a.attrelid = '"plies"'::regclass
552
+ ^
553
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
554
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
555
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
556
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
557
+ WHERE a.attrelid = '"plies"'::regclass
558
+ AND a.attnum > 0 AND NOT a.attisdropped
559
+ ORDER BY a.attnum
560
+
561
+ PG::UndefinedTable: ERROR: relation "ply_relations" does not exist
562
+ LINE 5: WHERE a.attrelid = '"ply_relations"'::regclas...
563
+ ^
564
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
565
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
566
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
567
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
568
+ WHERE a.attrelid = '"ply_relations"'::regclass
569
+ AND a.attnum > 0 AND NOT a.attisdropped
570
+ ORDER BY a.attnum
571
+
572
+ PG::UndefinedTable: ERROR: relation "plies" does not exist
573
+ LINE 5: WHERE a.attrelid = '"plies"'::regclass
574
+ ^
575
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
576
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
577
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
578
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
579
+ WHERE a.attrelid = '"plies"'::regclass
580
+ AND a.attnum > 0 AND NOT a.attisdropped
581
+ ORDER BY a.attnum
582
+
583
+ PG::UndefinedTable: ERROR: relation "ply_relations" does not exist
584
+ LINE 5: WHERE a.attrelid = '"ply_relations"'::regclas...
585
+ ^
586
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
587
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
588
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
589
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
590
+ WHERE a.attrelid = '"ply_relations"'::regclass
591
+ AND a.attnum > 0 AND NOT a.attisdropped
592
+ ORDER BY a.attnum
593
+
594
+  (0.1ms) BEGIN
595
+ 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]]
596
+  (1.6ms) COMMIT
597
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
598
+  (0.2ms) BEGIN
599
+ 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]]
600
+  (0.8ms) COMMIT
601
+  (0.1ms) BEGIN
602
+ 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]]
603
+  (0.4ms) COMMIT
604
+  (0.2ms) BEGIN
605
+ 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]]
606
+  (0.3ms) COMMIT
607
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
608
+  (0.1ms) BEGIN
609
+ 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]]
610
+  (0.4ms) COMMIT
611
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 3]]
612
+  (0.2ms) BEGIN
613
+ 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]]
614
+  (2.3ms) COMMIT
615
+  (0.1ms) BEGIN
616
+ 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]]
617
+  (0.5ms) COMMIT
618
+  (0.1ms) BEGIN
619
+ 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]]
620
+  (0.5ms) COMMIT
621
+  (0.1ms) BEGIN
622
+ 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]]
623
+  (0.3ms) COMMIT
624
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 5]]
625
+  (0.2ms) BEGIN
626
+ 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]]
627
+  (2.3ms) COMMIT
628
+  (0.1ms) BEGIN
629
+ 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]]
630
+  (0.5ms) COMMIT
631
+  (0.2ms) BEGIN
632
+ 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]]
633
+  (0.4ms) COMMIT
634
+ 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]]
635
+ 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]]
636
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 5]]
637
+ Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 5]]
638
+  (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]]
639
+  (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]]
640
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."id" = $1 LIMIT 1 [["id", 5]]
641
+  (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]]
642
+  (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]]
643
+ 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]]
644
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" ORDER BY "ply_relations"."id" DESC LIMIT 1
645
+  (0.2ms) BEGIN
646
+ 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]]
647
+  (0.4ms) COMMIT
648
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 7]]
649
+  (0.3ms) BEGIN
650
+ 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]]
651
+  (1.9ms) COMMIT
652
+  (0.3ms) BEGIN
653
+ 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]]
654
+  (0.5ms) COMMIT
655
+  (0.2ms) BEGIN
656
+ 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]]
657
+  (0.4ms) COMMIT
658
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 8]]
659
+  (0.5ms) BEGIN
660
+ 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]]
661
+  (2.8ms) COMMIT
662
+  (0.3ms) BEGIN
663
+ 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]]
664
+  (0.5ms) COMMIT
665
+  (0.3ms) BEGIN
666
+ 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]]
667
+  (0.5ms) COMMIT
668
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 9]]
669
+  (0.3ms) BEGIN
670
+ 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]]
671
+  (2.2ms) COMMIT
672
+  (0.1ms) BEGIN
673
+ 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]]
674
+  (0.5ms) COMMIT
675
+  (0.2ms) BEGIN
676
+ 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]]
677
+  (0.4ms) COMMIT
678
+ 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]]
679
+  (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]]
680
+  (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]]
681
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" ORDER BY "ply_relations"."id" DESC LIMIT 1
682
+ Invoice Load (1.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
683
+ LineItem Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
684
+ FakePly Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
685
+ Pliable::Ply Load (0.7ms) SELECT "plies".* FROM "plies"
686
+  (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]]
687
+  (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]]
688
+  (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]]
689
+  (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]]
690
+  (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]]
691
+  (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]]
692
+  (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]]
693
+  (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]]
694
+  (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]]
695
+  (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]]
696
+  (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]]
697
+  (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]]
698
+  (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]]
699
+  (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]]
700
+  (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]]
701
+  (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]]
702
+  (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]]
703
+  (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]]
704
+  (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]]
705
+  (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]]
706
+  (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]]
707
+  (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]]
708
+  (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]]
709
+  (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]]
710
+ Pliable::Ply Load (0.5ms) SELECT "plies".* FROM "plies"
711
+  (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]]
712
+  (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]]
713
+  (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]]
714
+  (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]]
715
+  (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]]
716
+  (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]]
717
+  (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]]
718
+  (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]]
719
+  (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]]
720
+  (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]]
721
+  (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]]
722
+  (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]]
723
+  (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]]
724
+  (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]]
725
+  (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]]
726
+  (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]]
727
+  (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]]
728
+  (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]]
729
+  (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]]
730
+  (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]]
731
+  (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]]
732
+  (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]]
733
+  (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]]
734
+  (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]]
735
+ FakePly Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
736
+  (0.2ms) BEGIN
737
+ 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]]
738
+  (0.4ms) COMMIT
739
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 11]]
740
+ FakePly Load (1.2ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
741
+  (0.5ms) BEGIN
742
+ 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]]
743
+  (2.0ms) COMMIT
744
+  (0.3ms) BEGIN
745
+ 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]]
746
+  (0.5ms) COMMIT
747
+  (0.5ms) BEGIN
748
+ 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]]
749
+  (0.6ms) COMMIT
750
+  (0.3ms) BEGIN
751
+ 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]]
752
+  (1.5ms) COMMIT
753
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 13]]
754
+  (0.4ms) BEGIN
755
+ 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]]
756
+  (2.8ms) COMMIT
757
+  (0.2ms) BEGIN
758
+ 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]]
759
+  (0.6ms) COMMIT
760
+  (0.3ms) BEGIN
761
+ 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]]
762
+  (0.5ms) COMMIT
763
+  (0.4ms) BEGIN
764
+ 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]]
765
+  (2.5ms) COMMIT
766
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 15]]
767
+  (0.5ms) BEGIN
768
+ 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]]
769
+  (2.3ms) COMMIT
770
+  (0.2ms) BEGIN
771
+ 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]]
772
+  (0.5ms) COMMIT
773
+  (0.3ms) BEGIN
774
+ 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]]
775
+  (0.4ms) COMMIT
776
+ 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]]
777
+  (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]]
778
+  (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]]
779
+  (0.4ms) BEGIN
780
+ 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]]
781
+  (0.4ms) COMMIT
782
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 17]]
783
+  (0.6ms) BEGIN
784
+ 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]]
785
+  (2.7ms) COMMIT
786
+  (0.5ms) BEGIN
787
+ 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]]
788
+  (0.6ms) COMMIT
789
+  (0.2ms) BEGIN
790
+ 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]]
791
+  (0.4ms) COMMIT
792
+ 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]]
793
+  (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]]
794
+  (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]]
795
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 20]]
796
+  (0.2ms) BEGIN
797
+ 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]]
798
+  (0.4ms) COMMIT
799
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 19]]
800
+  (0.4ms) BEGIN
801
+ 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]]
802
+  (0.6ms) COMMIT
803
+  (0.1ms) BEGIN
804
+ 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]]
805
+  (0.5ms) COMMIT
806
+  (0.3ms) BEGIN
807
+ 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]]
808
+  (0.6ms) COMMIT
809
+  (0.2ms) BEGIN
810
+ 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]]
811
+  (0.4ms) COMMIT
812
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 21]]
813
+  (0.2ms) BEGIN
814
+ 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]]
815
+  (2.1ms) COMMIT
816
+  (0.1ms) BEGIN
817
+ 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]]
818
+  (0.5ms) COMMIT
819
+  (0.2ms) BEGIN
820
+ 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]]
821
+  (0.4ms) COMMIT
822
+  (0.1ms) BEGIN
823
+ 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]]
824
+  (0.3ms) COMMIT
825
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 23]]
826
+  (0.3ms) BEGIN
827
+ 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]]
828
+  (0.6ms) COMMIT
829
+  (0.2ms) BEGIN
830
+ 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]]
831
+  (0.4ms) COMMIT
832
+  (0.2ms) BEGIN
833
+ 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]]
834
+  (0.4ms) COMMIT
835
+  (0.2ms) BEGIN
836
+ 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]]
837
+  (0.4ms) COMMIT
838
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 25]]
839
+  (0.5ms) BEGIN
840
+ 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]]
841
+  (2.2ms) COMMIT
842
+  (0.3ms) BEGIN
843
+ 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]]
844
+  (0.5ms) COMMIT
845
+  (0.3ms) BEGIN
846
+ 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]]
847
+  (0.4ms) COMMIT
848
+  (0.1ms) BEGIN
849
+ 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]]
850
+  (0.3ms) COMMIT
851
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 27]]
852
+  (0.3ms) BEGIN
853
+ 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]]
854
+  (0.4ms) COMMIT
855
+  (0.3ms) BEGIN
856
+ 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]]
857
+  (0.5ms) COMMIT
858
+  (0.3ms) BEGIN
859
+ 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]]
860
+  (0.5ms) COMMIT
861
+  (0.1ms) BEGIN
862
+ 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]]
863
+  (0.3ms) COMMIT
864
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 29]]
865
+  (0.2ms) BEGIN
866
+ 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]]
867
+  (1.6ms) COMMIT
868
+  (0.2ms) BEGIN
869
+ 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]]
870
+  (1.9ms) COMMIT
871
+  (0.4ms) BEGIN
872
+ 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]]
873
+  (0.6ms) COMMIT
874
+ Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
875
+  (0.1ms) BEGIN
876
+ 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]]
877
+  (0.4ms) COMMIT
878
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 31]]
879
+  (0.4ms) BEGIN
880
+ 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]]
881
+  (2.8ms) COMMIT
882
+  (0.5ms) BEGIN
883
+ 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]]
884
+  (2.1ms) COMMIT
885
+  (0.4ms) BEGIN
886
+ 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]]
887
+  (0.6ms) COMMIT
888
+ Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
889
+  (0.2ms) BEGIN
890
+ 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]]
891
+  (2.0ms) COMMIT
892
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 33]]
893
+ Pliable::Ply Load (1.1ms) SELECT "plies".* FROM "plies"
894
+  (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]]
895
+  (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]]
896
+  (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]]
897
+  (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]]
898
+  (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]]
899
+  (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]]
900
+  (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]]
901
+  (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]]
902
+  (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]]
903
+  (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]]
904
+  (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]]
905
+  (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]]
906
+  (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]]
907
+  (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]]
908
+  (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]]
909
+  (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]]
910
+  (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]]
911
+  (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]]
912
+  (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]]
913
+  (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]]
914
+  (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]]
915
+  (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]]
916
+  (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]]
917
+  (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]]
918
+  (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]]
919
+  (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]]
920
+  (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]]
921
+  (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]]
922
+  (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]]
923
+  (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]]
924
+  (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]]
925
+  (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]]
926
+  (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]]
927
+  (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]]
928
+  (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]]
929
+  (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]]
930
+  (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]]
931
+  (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]]
932
+  (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]]
933
+  (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]]
934
+  (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]]
935
+  (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]]
936
+  (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]]
937
+  (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]]
938
+  (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]]
939
+  (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]]
940
+  (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]]
941
+  (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]]
942
+  (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]]
943
+  (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]]
944
+  (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]]
945
+  (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]]
946
+  (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]]
947
+  (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]]
948
+  (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]]
949
+  (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]]
950
+  (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]]
951
+  (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]]
952
+  (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]]
953
+  (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]]
954
+  (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]]
955
+  (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]]
956
+  (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]]
957
+  (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]]
958
+  (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]]
959
+  (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]]
960
+  (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]]
961
+  (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]]
962
+  (0.4ms) BEGIN
963
+ 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]]
964
+  (0.5ms) COMMIT
965
+  (0.3ms) BEGIN
966
+ 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]]
967
+  (0.4ms) COMMIT
968
+  (0.2ms) BEGIN
969
+ 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]]
970
+  (0.5ms) COMMIT
971
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies"
972
+  (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]]
973
+  (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]]
974
+  (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]]
975
+  (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]]
976
+  (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]]
977
+  (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]]
978
+  (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]]
979
+  (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]]
980
+  (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]]
981
+  (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]]
982
+  (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]]
983
+  (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]]
984
+  (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]]
985
+  (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]]
986
+  (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]]
987
+  (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]]
988
+  (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]]
989
+  (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]]
990
+  (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]]
991
+  (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]]
992
+  (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]]
993
+  (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]]
994
+  (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]]
995
+  (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]]
996
+  (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]]
997
+  (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]]
998
+  (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]]
999
+  (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]]
1000
+  (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]]
1001
+  (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]]
1002
+  (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]]
1003
+  (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]]
1004
+  (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]]
1005
+  (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]]
1006
+  (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]]
1007
+  (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]]
1008
+  (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]]
1009
+  (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]]
1010
+  (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]]
1011
+  (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]]
1012
+  (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]]
1013
+  (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]]
1014
+  (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]]
1015
+  (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]]
1016
+  (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]]
1017
+  (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]]
1018
+  (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]]
1019
+  (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]]
1020
+  (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]]
1021
+  (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]]
1022
+  (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]]
1023
+  (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]]
1024
+  (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]]
1025
+  (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]]
1026
+  (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]]
1027
+  (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]]
1028
+  (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]]
1029
+  (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]]
1030
+  (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]]
1031
+  (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]]
1032
+  (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]]
1033
+  (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]]
1034
+  (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]]
1035
+  (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]]
1036
+  (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]]
1037
+  (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]]
1038
+  (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]]
1039
+  (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]]
1040
+  (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]]
1041
+  (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]]
1042
+  (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]]
1043
+  (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]]
1044
+ Invoice Load (1.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
1045
+  (0.3ms) BEGIN
1046
+ 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]]
1047
+  (0.5ms) COMMIT
1048
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 35]]
1049
+  (0.2ms) BEGIN
1050
+ 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]]
1051
+  (2.3ms) COMMIT
1052
+  (0.5ms) BEGIN
1053
+ 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]]
1054
+  (0.6ms) COMMIT
1055
+  (0.1ms) BEGIN
1056
+ 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]]
1057
+  (0.4ms) COMMIT
1058
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
1059
+  (0.1ms) BEGIN
1060
+ 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]]
1061
+  (0.4ms) COMMIT
1062
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 37]]
1063
+  (0.2ms) BEGIN
1064
+ 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]]
1065
+  (1.9ms) COMMIT
1066
+  (0.5ms) BEGIN
1067
+ 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]]
1068
+  (0.5ms) COMMIT
1069
+  (0.2ms) BEGIN
1070
+ 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]]
1071
+  (0.5ms) COMMIT
1072
+  (0.1ms) BEGIN
1073
+ 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]]
1074
+  (0.4ms) COMMIT
1075
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 39]]
1076
+  (0.6ms) BEGIN
1077
+ 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]]
1078
+  (2.4ms) COMMIT
1079
+  (0.4ms) BEGIN
1080
+ 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]]
1081
+  (0.6ms) COMMIT
1082
+  (0.5ms) BEGIN
1083
+ 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]]
1084
+  (0.4ms) COMMIT
1085
+  (0.7ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
1086
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
1087
+  (0.1ms) BEGIN
1088
+ 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]]
1089
+  (0.4ms) COMMIT
1090
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 41]]
1091
+  (0.4ms) BEGIN
1092
+ 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]]
1093
+  (2.4ms) COMMIT
1094
+  (0.3ms) BEGIN
1095
+ 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]]
1096
+  (0.5ms) COMMIT
1097
+  (0.3ms) BEGIN
1098
+ 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]]
1099
+  (0.4ms) COMMIT
1100
+  (0.7ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
1101
+  (0.1ms) BEGIN
1102
+ 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]]
1103
+  (0.4ms) COMMIT
1104
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 43]]
1105
+  (0.2ms) BEGIN
1106
+ 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]]
1107
+  (1.5ms) COMMIT
1108
+  (0.2ms) BEGIN
1109
+ 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]]
1110
+  (0.3ms) COMMIT
1111
+  (0.2ms) BEGIN
1112
+ 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]]
1113
+  (0.5ms) COMMIT
1114
+  (0.6ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Merchandise__c'
1115
+  (0.1ms) BEGIN
1116
+ 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]]
1117
+  (0.3ms) COMMIT
1118
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 45]]
1119
+  (0.2ms) BEGIN
1120
+ 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]]
1121
+  (1.9ms) COMMIT
1122
+  (0.2ms) BEGIN
1123
+ 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]]
1124
+  (0.5ms) COMMIT
1125
+  (0.2ms) BEGIN
1126
+ 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]]
1127
+  (0.4ms) COMMIT
1128
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" DESC LIMIT 1
1129
+  (0.2ms) BEGIN
1130
+ 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]]
1131
+  (0.3ms) COMMIT
1132
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 47]]
1133
+  (0.3ms) BEGIN
1134
+ 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]]
1135
+  (2.3ms) COMMIT
1136
+  (0.4ms) BEGIN
1137
+ 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]]
1138
+  (0.5ms) COMMIT
1139
+  (0.5ms) BEGIN
1140
+ 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]]
1141
+  (0.6ms) COMMIT
1142
+  (0.1ms) BEGIN
1143
+ 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]]
1144
+  (0.3ms) COMMIT
1145
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 49]]
1146
+  (0.5ms) BEGIN
1147
+ 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]]
1148
+  (1.9ms) COMMIT
1149
+  (0.2ms) BEGIN
1150
+ 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]]
1151
+  (0.5ms) COMMIT
1152
+  (0.5ms) BEGIN
1153
+ 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]]
1154
+  (0.6ms) COMMIT
1155
+  (0.1ms) BEGIN
1156
+ 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]]
1157
+  (0.3ms) COMMIT
1158
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 51]]
1159
+  (0.2ms) BEGIN
1160
+ 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]]
1161
+  (0.6ms) COMMIT
1162
+  (0.3ms) BEGIN
1163
+ 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]]
1164
+  (0.4ms) COMMIT
1165
+  (0.3ms) BEGIN
1166
+ 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]]
1167
+  (0.6ms) COMMIT
1168
+  (0.1ms) BEGIN
1169
+ 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]]
1170
+  (0.3ms) COMMIT
1171
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 53]]
1172
+  (0.5ms) BEGIN
1173
+ 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]]
1174
+  (1.6ms) COMMIT
1175
+  (0.2ms) BEGIN
1176
+ 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]]
1177
+  (0.5ms) COMMIT
1178
+  (0.2ms) BEGIN
1179
+ 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]]
1180
+  (0.4ms) COMMIT
1181
+  (0.1ms) BEGIN
1182
+ 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]]
1183
+  (0.3ms) COMMIT
1184
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 55]]
1185
+  (0.5ms) BEGIN
1186
+ 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]]
1187
+  (2.6ms) COMMIT
1188
+  (0.3ms) BEGIN
1189
+ 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]]
1190
+  (0.4ms) COMMIT
1191
+  (0.2ms) BEGIN
1192
+ 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]]
1193
+  (0.4ms) COMMIT
1194
+  (0.1ms) BEGIN
1195
+ 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]]
1196
+  (0.3ms) COMMIT
1197
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 57]]
1198
+  (0.6ms) BEGIN
1199
+ 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]]
1200
+  (2.2ms) COMMIT
1201
+  (0.3ms) BEGIN
1202
+ 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]]
1203
+  (0.4ms) COMMIT
1204
+  (0.3ms) BEGIN
1205
+ 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]]
1206
+  (0.4ms) COMMIT
1207
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 59]]
1208
+  (0.4ms) BEGIN
1209
+ 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]]
1210
+  (0.4ms) COMMIT
1211
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 59]]
1212
+  (0.6ms) BEGIN
1213
+ 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]]
1214
+  (1.8ms) COMMIT
1215
+  (0.5ms) BEGIN
1216
+ 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]]
1217
+  (0.6ms) COMMIT
1218
+  (0.2ms) BEGIN
1219
+ 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]]
1220
+  (0.6ms) COMMIT
1221
+  (0.3ms) BEGIN
1222
+ 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]]
1223
+  (2.1ms) COMMIT
1224
+ PlyRelation Load (1.0ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 61]]
1225
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1226
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1227
+  (5.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1228
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1229
+  (0.1ms) BEGIN
1230
+  (0.1ms) COMMIT
1231
+  (0.1ms) BEGIN
1232
+ 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]]
1233
+ 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]]
1234
+ 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]]
1235
+  (0.4ms) ROLLBACK
1236
+  (0.3ms) BEGIN
1237
+  (0.1ms) COMMIT
1238
+  (0.1ms) BEGIN
1239
+ 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]]
1240
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1241
+  (0.2ms) ROLLBACK
1242
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1243
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1244
+  (6.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1245
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1246
+  (0.1ms) BEGIN
1247
+  (0.1ms) COMMIT
1248
+  (0.1ms) BEGIN
1249
+ 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]]
1250
+ 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]]
1251
+ 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]]
1252
+  (0.2ms) ROLLBACK
1253
+  (0.1ms) BEGIN
1254
+  (0.2ms) COMMIT
1255
+  (0.1ms) BEGIN
1256
+ 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]]
1257
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1258
+  (0.2ms) ROLLBACK
1259
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1260
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1261
+  (4.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1262
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1263
+  (0.1ms) BEGIN
1264
+  (0.1ms) COMMIT
1265
+  (0.1ms) BEGIN
1266
+ 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]]
1267
+ 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]]
1268
+ 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]]
1269
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."parent_id" = $1 [["parent_id", 1]]
1270
+  (0.2ms) ROLLBACK
1271
+  (0.1ms) BEGIN
1272
+  (0.1ms) COMMIT
1273
+  (0.1ms) BEGIN
1274
+ 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]]
1275
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1276
+  (0.2ms) ROLLBACK
1277
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1278
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1279
+  (4.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1280
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1281
+  (0.1ms) BEGIN
1282
+  (0.1ms) COMMIT
1283
+  (0.1ms) BEGIN
1284
+ 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]]
1285
+ 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]]
1286
+ 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]]
1287
+ 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]]
1288
+  (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]]
1289
+  (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]]
1290
+  (0.2ms) ROLLBACK
1291
+  (0.2ms) BEGIN
1292
+  (0.1ms) COMMIT
1293
+  (0.1ms) BEGIN
1294
+ 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]]
1295
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1296
+  (0.2ms) ROLLBACK
1297
+  (0.4ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1298
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1299
+  (4.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1300
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1301
+  (0.1ms) BEGIN
1302
+  (0.1ms) COMMIT
1303
+  (0.1ms) BEGIN
1304
+ 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]]
1305
+ 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]]
1306
+ 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]]
1307
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1
1308
+  (0.3ms) ROLLBACK
1309
+  (0.1ms) BEGIN
1310
+  (0.1ms) COMMIT
1311
+  (0.1ms) BEGIN
1312
+ 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]]
1313
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1314
+  (0.2ms) ROLLBACK
1315
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1316
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1317
+  (5.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1318
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1319
+  (0.1ms) BEGIN
1320
+  (0.1ms) COMMIT
1321
+  (0.1ms) BEGIN
1322
+ 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]]
1323
+ 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]]
1324
+ 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]]
1325
+ Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1
1326
+  (0.2ms) ROLLBACK
1327
+  (0.1ms) BEGIN
1328
+  (0.1ms) COMMIT
1329
+  (0.1ms) BEGIN
1330
+ 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]]
1331
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1332
+  (0.2ms) ROLLBACK
1333
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1334
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1335
+  (6.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1336
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1337
+  (0.1ms) BEGIN
1338
+  (0.1ms) COMMIT
1339
+  (0.1ms) BEGIN
1340
+ Invoice Load (1.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1
1341
+  (0.3ms) ROLLBACK
1342
+  (0.1ms) BEGIN
1343
+  (0.1ms) COMMIT
1344
+  (0.1ms) BEGIN
1345
+ 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]]
1346
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1347
+  (0.2ms) ROLLBACK
1348
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1349
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1350
+  (6.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1351
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1352
+  (0.2ms) BEGIN
1353
+  (0.2ms) COMMIT
1354
+  (0.1ms) BEGIN
1355
+ Invoice Load (1.1ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1
1356
+  (0.4ms) ROLLBACK
1357
+  (0.1ms) BEGIN
1358
+  (0.1ms) COMMIT
1359
+  (0.1ms) BEGIN
1360
+ 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]]
1361
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1362
+  (0.2ms) ROLLBACK
1363
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1364
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1365
+  (6.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1366
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1367
+  (0.1ms) BEGIN
1368
+  (0.1ms) COMMIT
1369
+  (0.1ms) BEGIN
1370
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1371
+  (0.2ms) ROLLBACK
1372
+  (0.1ms) BEGIN
1373
+  (0.1ms) COMMIT
1374
+  (0.1ms) BEGIN
1375
+ 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]]
1376
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1377
+  (0.2ms) ROLLBACK
1378
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1379
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1380
+  (5.8ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1381
+  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1382
+  (0.2ms) BEGIN
1383
+  (0.1ms) COMMIT
1384
+  (0.1ms) BEGIN
1385
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1386
+  (0.2ms) ROLLBACK
1387
+  (0.1ms) BEGIN
1388
+  (0.1ms) COMMIT
1389
+  (0.1ms) BEGIN
1390
+ 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]]
1391
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1392
+  (0.2ms) ROLLBACK
1393
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1394
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1395
+  (4.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1396
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1397
+  (0.1ms) BEGIN
1398
+  (0.1ms) COMMIT
1399
+  (0.1ms) BEGIN
1400
+ 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]]
1401
+ 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]]
1402
+ 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]]
1403
+ Invoice Load (1.1ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1
1404
+  (0.2ms) ROLLBACK
1405
+  (0.2ms) BEGIN
1406
+  (0.2ms) COMMIT
1407
+  (0.2ms) BEGIN
1408
+ 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]]
1409
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1410
+  (0.3ms) ROLLBACK
1411
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1412
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1413
+  (4.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1414
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1415
+  (0.1ms) BEGIN
1416
+  (0.1ms) COMMIT
1417
+  (0.1ms) BEGIN
1418
+ 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]]
1419
+ 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]]
1420
+ 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]]
1421
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1422
+  (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]]
1423
+  (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]]
1424
+  (0.2ms) ROLLBACK
1425
+  (0.1ms) BEGIN
1426
+  (0.1ms) COMMIT
1427
+  (0.1ms) BEGIN
1428
+ 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]]
1429
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1430
+  (0.1ms) ROLLBACK
1431
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1432
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1433
+  (7.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1434
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1435
+  (0.1ms) BEGIN
1436
+  (0.1ms) COMMIT
1437
+  (0.1ms) BEGIN
1438
+ 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]]
1439
+ 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]]
1440
+ 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]]
1441
+  (0.2ms) ROLLBACK
1442
+  (0.1ms) BEGIN
1443
+  (0.1ms) COMMIT
1444
+  (0.1ms) BEGIN
1445
+ 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]]
1446
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1447
+  (0.2ms) ROLLBACK
1448
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1449
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1450
+  (6.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1451
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1452
+  (0.1ms) BEGIN
1453
+  (0.1ms) COMMIT
1454
+  (0.1ms) BEGIN
1455
+ 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]]
1456
+ 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]]
1457
+ 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]]
1458
+ Invoice Load (0.7ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1459
+  (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]]
1460
+  (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]]
1461
+  (0.3ms) ROLLBACK
1462
+  (0.1ms) BEGIN
1463
+  (0.1ms) COMMIT
1464
+  (0.1ms) BEGIN
1465
+ 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]]
1466
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1467
+  (0.2ms) ROLLBACK
1468
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1469
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1470
+  (4.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1471
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1472
+  (0.1ms) BEGIN
1473
+  (0.1ms) COMMIT
1474
+  (0.1ms) BEGIN
1475
+ 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]]
1476
+ 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]]
1477
+ 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]]
1478
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1479
+  (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]]
1480
+  (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]]
1481
+  (0.4ms) ROLLBACK
1482
+  (0.1ms) BEGIN
1483
+  (0.3ms) COMMIT
1484
+  (0.2ms) BEGIN
1485
+ 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]]
1486
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1487
+  (0.2ms) ROLLBACK
1488
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies"
1489
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1490
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1491
+  (6.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1492
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1493
+  (0.1ms) BEGIN
1494
+  (0.1ms) COMMIT
1495
+  (0.1ms) BEGIN
1496
+ 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]]
1497
+ 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]]
1498
+ 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]]
1499
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1500
+  (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]]
1501
+  (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]]
1502
+  (0.3ms) ROLLBACK
1503
+  (0.1ms) BEGIN
1504
+  (0.2ms) COMMIT
1505
+  (0.1ms) BEGIN
1506
+ 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]]
1507
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1508
+  (0.2ms) ROLLBACK
1509
+  (0.1ms) BEGIN
1510
+  (0.1ms) COMMIT
1511
+  (0.1ms) BEGIN
1512
+ 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]]
1513
+ 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]]
1514
+ 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]]
1515
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1516
+  (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]]
1517
+  (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]]
1518
+  (0.2ms) ROLLBACK
1519
+  (0.2ms) BEGIN
1520
+  (0.1ms) COMMIT
1521
+  (0.1ms) BEGIN
1522
+ 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]]
1523
+ 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]]
1524
+ 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]]
1525
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies"
1526
+  (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]]
1527
+  (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]]
1528
+  (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]]
1529
+  (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]]
1530
+  (0.3ms) ROLLBACK
1531
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1532
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1533
+  (6.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1534
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1535
+  (0.1ms) BEGIN
1536
+  (0.1ms) COMMIT
1537
+  (0.1ms) BEGIN
1538
+ 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]]
1539
+ 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]]
1540
+ 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]]
1541
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1542
+  (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]]
1543
+  (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]]
1544
+  (0.4ms) ROLLBACK
1545
+  (0.1ms) BEGIN
1546
+  (0.1ms) COMMIT
1547
+  (0.1ms) BEGIN
1548
+ 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]]
1549
+ PlyRelation Load (0.6ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 2]]
1550
+  (0.2ms) ROLLBACK
1551
+  (0.1ms) BEGIN
1552
+  (0.1ms) COMMIT
1553
+  (0.1ms) BEGIN
1554
+ 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]]
1555
+ 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]]
1556
+ 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]]
1557
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1558
+  (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]]
1559
+  (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]]
1560
+  (0.2ms) ROLLBACK
1561
+  (0.1ms) BEGIN
1562
+  (0.1ms) COMMIT
1563
+  (0.1ms) BEGIN
1564
+ 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]]
1565
+ 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]]
1566
+ 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]]
1567
+  (0.3ms) SELECT COUNT(*) FROM "plies"
1568
+  (0.2ms) ROLLBACK
1569
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1570
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1571
+  (6.2ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1572
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1573
+  (0.1ms) BEGIN
1574
+  (0.1ms) COMMIT
1575
+  (0.1ms) BEGIN
1576
+ 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]]
1577
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1578
+  (0.2ms) ROLLBACK
1579
+  (0.1ms) BEGIN
1580
+  (0.1ms) COMMIT
1581
+  (0.1ms) BEGIN
1582
+ 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]]
1583
+ 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]]
1584
+ 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]]
1585
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1586
+  (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]]
1587
+  (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]]
1588
+  (0.2ms) ROLLBACK
1589
+  (0.1ms) BEGIN
1590
+  (0.2ms) COMMIT
1591
+  (0.1ms) BEGIN
1592
+ 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]]
1593
+ 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]]
1594
+ 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]]
1595
+  (0.3ms) SELECT COUNT(*) FROM "plies"
1596
+  (0.1ms) ROLLBACK
1597
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1598
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1599
+  (5.8ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1600
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1601
+  (0.2ms) BEGIN
1602
+  (0.1ms) COMMIT
1603
+  (0.1ms) BEGIN
1604
+ 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]]
1605
+ PlyRelation Load (1.2ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1606
+  (0.3ms) ROLLBACK
1607
+  (0.1ms) BEGIN
1608
+  (0.1ms) COMMIT
1609
+  (0.1ms) BEGIN
1610
+ 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]]
1611
+ 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]]
1612
+ 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]]
1613
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1614
+  (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]]
1615
+  (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]]
1616
+  (0.2ms) ROLLBACK
1617
+  (0.1ms) BEGIN
1618
+  (0.2ms) COMMIT
1619
+  (0.1ms) BEGIN
1620
+ 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]]
1621
+ 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]]
1622
+ 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]]
1623
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies"
1624
+  (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]]
1625
+  (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]]
1626
+  (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]]
1627
+  (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]]
1628
+  (0.3ms) ROLLBACK
1629
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1630
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1631
+  (6.6ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1632
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1633
+  (0.1ms) BEGIN
1634
+  (0.1ms) COMMIT
1635
+  (0.1ms) BEGIN
1636
+ 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]]
1637
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1638
+  (0.6ms) ROLLBACK
1639
+  (0.4ms) BEGIN
1640
+ 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]]
1641
+  (0.4ms) COMMIT
1642
+  (0.2ms) BEGIN
1643
+ 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]]
1644
+  (0.4ms) COMMIT
1645
+  (0.2ms) BEGIN
1646
+ 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]]
1647
+  (0.4ms) COMMIT
1648
+  (0.1ms) BEGIN
1649
+  (0.1ms) COMMIT
1650
+  (0.1ms) BEGIN
1651
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1652
+  (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]]
1653
+  (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]]
1654
+  (0.3ms) ROLLBACK
1655
+  (0.1ms) BEGIN
1656
+  (0.2ms) COMMIT
1657
+  (0.2ms) BEGIN
1658
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies"
1659
+  (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]]
1660
+  (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]]
1661
+  (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]]
1662
+  (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]]
1663
+  (0.2ms) ROLLBACK
1664
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1665
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1666
+  (6.2ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1667
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1668
+  (0.1ms) BEGIN
1669
+  (0.1ms) COMMIT
1670
+  (0.1ms) BEGIN
1671
+ 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]]
1672
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1673
+  (0.3ms) ROLLBACK
1674
+  (0.1ms) BEGIN
1675
+  (0.1ms) COMMIT
1676
+  (0.1ms) BEGIN
1677
+ 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]]
1678
+ 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]]
1679
+ 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]]
1680
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1681
+  (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]]
1682
+  (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]]
1683
+  (0.2ms) ROLLBACK
1684
+  (0.2ms) BEGIN
1685
+  (0.1ms) COMMIT
1686
+  (0.1ms) BEGIN
1687
+ 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]]
1688
+ 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]]
1689
+ 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]]
1690
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies"
1691
+  (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]]
1692
+  (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]]
1693
+  (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]]
1694
+  (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]]
1695
+  (0.2ms) ROLLBACK
1696
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1697
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1698
+  (4.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1699
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1700
+  (0.1ms) BEGIN
1701
+  (0.1ms) COMMIT
1702
+  (0.1ms) BEGIN
1703
+ 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]]
1704
+ PlyRelation Load (0.7ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1705
+  (0.3ms) ROLLBACK
1706
+  (0.1ms) BEGIN
1707
+  (0.2ms) COMMIT
1708
+  (0.1ms) BEGIN
1709
+ 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]]
1710
+ 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]]
1711
+ 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]]
1712
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1713
+  (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]]
1714
+  (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]]
1715
+  (0.4ms) ROLLBACK
1716
+  (0.1ms) BEGIN
1717
+  (0.1ms) COMMIT
1718
+  (0.1ms) BEGIN
1719
+ 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]]
1720
+ 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]]
1721
+ 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]]
1722
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies"
1723
+  (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]]
1724
+  (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]]
1725
+  (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]]
1726
+  (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]]
1727
+  (0.3ms) ROLLBACK
1728
+  (1.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1729
+  (5.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1730
+  (17.2ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1731
+  (0.7ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1732
+  (0.6ms) BEGIN
1733
+  (0.7ms) COMMIT
1734
+  (0.7ms) BEGIN
1735
+ 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]]
1736
+ PlyRelation Load (2.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1737
+  (0.8ms) ROLLBACK
1738
+  (0.4ms) BEGIN
1739
+  (0.5ms) COMMIT
1740
+  (0.4ms) BEGIN
1741
+ 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]]
1742
+ 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]]
1743
+ 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]]
1744
+ Invoice Load (2.3ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1745
+  (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]]
1746
+  (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]]
1747
+ 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]]
1748
+  (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]]
1749
+  (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]]
1750
+  (1.0ms) ROLLBACK
1751
+  (0.7ms) BEGIN
1752
+  (0.6ms) COMMIT
1753
+  (0.5ms) BEGIN
1754
+ 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]]
1755
+ 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]]
1756
+ 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]]
1757
+ Invoice Load (1.1ms) SELECT "plies".* FROM "plies"
1758
+  (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]]
1759
+  (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]]
1760
+  (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]]
1761
+  (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]]
1762
+  (0.7ms) ROLLBACK
1763
+  (1.8ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1764
+  (5.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1765
+  (13.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1766
+  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1767
+  (0.7ms) BEGIN
1768
+  (0.8ms) COMMIT
1769
+  (0.6ms) BEGIN
1770
+ 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]]
1771
+ PlyRelation Load (2.3ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1772
+  (0.9ms) ROLLBACK
1773
+  (0.7ms) BEGIN
1774
+  (0.6ms) COMMIT
1775
+  (0.5ms) BEGIN
1776
+ 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]]
1777
+ 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]]
1778
+ 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]]
1779
+ Invoice Load (2.6ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1780
+  (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]]
1781
+  (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]]
1782
+ 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]]
1783
+  (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]]
1784
+  (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]]
1785
+  (0.7ms) ROLLBACK
1786
+  (2.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1787
+  (6.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1788
+  (15.5ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1789
+  (1.5ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1790
+  (0.6ms) BEGIN
1791
+  (0.5ms) COMMIT
1792
+  (0.4ms) BEGIN
1793
+ 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]]
1794
+ PlyRelation Load (2.5ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1795
+  (0.7ms) ROLLBACK
1796
+  (0.4ms) BEGIN
1797
+  (0.4ms) COMMIT
1798
+  (0.4ms) BEGIN
1799
+ 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]]
1800
+ 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]]
1801
+ 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]]
1802
+ Invoice Load (2.2ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1803
+  (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]]
1804
+  (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]]
1805
+ 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]]
1806
+  (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]]
1807
+  (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]]
1808
+  (0.8ms) ROLLBACK
1809
+  (2.0ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1810
+  (6.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1811
+  (13.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1812
+  (1.0ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1813
+  (0.8ms) BEGIN
1814
+  (0.8ms) COMMIT
1815
+  (0.5ms) BEGIN
1816
+ 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]]
1817
+ PlyRelation Load (2.4ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1818
+  (0.8ms) ROLLBACK
1819
+  (0.4ms) BEGIN
1820
+  (0.4ms) COMMIT
1821
+  (0.4ms) BEGIN
1822
+ 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]]
1823
+ 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]]
1824
+ 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]]
1825
+ Invoice Load (2.7ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1826
+  (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]]
1827
+  (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]]
1828
+ 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]]
1829
+  (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]]
1830
+  (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]]
1831
+  (0.9ms) ROLLBACK
1832
+  (1.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1833
+  (5.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1834
+  (18.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1835
+  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1836
+  (0.7ms) BEGIN
1837
+  (0.6ms) COMMIT
1838
+  (0.5ms) BEGIN
1839
+ 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]]
1840
+ PlyRelation Load (2.4ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1841
+  (0.7ms) ROLLBACK
1842
+  (0.5ms) BEGIN
1843
+  (0.5ms) COMMIT
1844
+  (0.5ms) BEGIN
1845
+ 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]]
1846
+ 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]]
1847
+ 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]]
1848
+ Invoice Load (2.3ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1849
+  (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]]
1850
+  (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]]
1851
+ 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]]
1852
+  (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]]
1853
+  (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]]
1854
+  (0.8ms) ROLLBACK
1855
+  (1.9ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1856
+  (5.3ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1857
+  (15.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1858
+  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1859
+  (0.7ms) BEGIN
1860
+  (0.5ms) COMMIT
1861
+  (0.6ms) BEGIN
1862
+ 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]]
1863
+ PlyRelation Load (2.4ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1864
+  (0.9ms) ROLLBACK
1865
+  (0.4ms) BEGIN
1866
+  (0.4ms) COMMIT
1867
+  (0.3ms) BEGIN
1868
+ 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]]
1869
+ 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]]
1870
+ 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]]
1871
+ Invoice Load (1.7ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1872
+  (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]]
1873
+  (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]]
1874
+ 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]]
1875
+  (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]]
1876
+  (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]]
1877
+  (0.6ms) ROLLBACK
1878
+  (1.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1879
+  (5.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1880
+  (16.6ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1881
+  (0.8ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1882
+  (1.5ms) BEGIN
1883
+  (0.5ms) COMMIT
1884
+  (0.5ms) BEGIN
1885
+ 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]]
1886
+ PlyRelation Load (2.5ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1887
+  (0.9ms) ROLLBACK
1888
+  (0.4ms) BEGIN
1889
+  (0.4ms) COMMIT
1890
+  (0.4ms) BEGIN
1891
+ 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]]
1892
+ 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]]
1893
+ 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]]
1894
+ Invoice Load (1.9ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1895
+  (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]]
1896
+  (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]]
1897
+ 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]]
1898
+  (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]]
1899
+  (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]]
1900
+  (0.7ms) ROLLBACK
1901
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1902
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1903
+  (5.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1904
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1905
+  (0.2ms) BEGIN
1906
+  (0.2ms) COMMIT
1907
+  (0.1ms) BEGIN
1908
+ 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]]
1909
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1910
+  (0.4ms) ROLLBACK
1911
+  (0.1ms) BEGIN
1912
+  (0.1ms) COMMIT
1913
+  (0.1ms) BEGIN
1914
+ 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]]
1915
+ 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]]
1916
+ 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]]
1917
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1918
+  (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]]
1919
+  (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]]
1920
+ 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]]
1921
+  (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]]
1922
+  (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]]
1923
+  (0.2ms) ROLLBACK
1924
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1925
+  (3.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1926
+  (4.8ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1927
+  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1928
+  (0.4ms) BEGIN
1929
+  (0.2ms) COMMIT
1930
+  (0.1ms) BEGIN
1931
+ 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]]
1932
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1933
+  (0.6ms) ROLLBACK
1934
+  (0.2ms) BEGIN
1935
+  (0.2ms) COMMIT
1936
+  (0.1ms) BEGIN
1937
+ 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]]
1938
+ 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]]
1939
+ 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]]
1940
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1941
+  (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]]
1942
+  (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]]
1943
+ 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]]
1944
+  (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]]
1945
+  (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]]
1946
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies"
1947
+  (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]]
1948
+  (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]]
1949
+  (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]]
1950
+  (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]]
1951
+  (0.2ms) ROLLBACK
1952
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1953
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1954
+  (4.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1955
+  (0.5ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1956
+  (0.2ms) BEGIN
1957
+  (0.3ms) COMMIT
1958
+  (0.2ms) BEGIN
1959
+ 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]]
1960
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1961
+  (0.3ms) ROLLBACK
1962
+  (0.2ms) BEGIN
1963
+  (0.1ms) COMMIT
1964
+  (0.1ms) BEGIN
1965
+ 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]]
1966
+ 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]]
1967
+ 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]]
1968
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" ORDER BY "plies"."id" ASC LIMIT 1
1969
+  (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]]
1970
+  (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]]
1971
+ 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]]
1972
+  (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]]
1973
+  (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]]
1974
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies"
1975
+  (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]]
1976
+  (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]]
1977
+  (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]]
1978
+  (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]]
1979
+  (0.3ms) ROLLBACK
1980
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1981
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
1982
+  (4.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
1983
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
1984
+  (0.2ms) BEGIN
1985
+  (0.2ms) COMMIT
1986
+  (0.1ms) BEGIN
1987
+ 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]]
1988
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
1989
+  (0.6ms) ROLLBACK
1990
+  (0.1ms) BEGIN
1991
+  (0.2ms) COMMIT
1992
+  (0.2ms) BEGIN
1993
+ 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]]
1994
+ 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]]
1995
+ 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]]
1996
+ Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Merchandise__c' ORDER BY "plies"."id" ASC LIMIT 1
1997
+  (0.2ms) ROLLBACK
1998
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
1999
+  (3.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2000
+  (6.6ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2001
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2002
+  (0.2ms) BEGIN
2003
+  (0.2ms) COMMIT
2004
+  (0.1ms) BEGIN
2005
+ 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]]
2006
+ PlyRelation Load (1.1ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2007
+  (0.6ms) ROLLBACK
2008
+  (0.3ms) BEGIN
2009
+  (0.3ms) COMMIT
2010
+  (0.3ms) BEGIN
2011
+ 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]]
2012
+ 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]]
2013
+ 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]]
2014
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2015
+  (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]]
2016
+  (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]]
2017
+ 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]]
2018
+  (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]]
2019
+  (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]]
2020
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2021
+  (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]]
2022
+  (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]]
2023
+  (0.2ms) ROLLBACK
2024
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2025
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2026
+  (6.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2027
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2028
+  (0.2ms) BEGIN
2029
+  (0.2ms) COMMIT
2030
+  (0.2ms) BEGIN
2031
+ 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]]
2032
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2033
+  (0.5ms) ROLLBACK
2034
+  (0.2ms) BEGIN
2035
+  (0.3ms) COMMIT
2036
+  (0.2ms) BEGIN
2037
+ 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]]
2038
+ 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]]
2039
+ 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]]
2040
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2041
+  (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]]
2042
+  (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]]
2043
+ 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]]
2044
+  (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]]
2045
+  (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]]
2046
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2047
+  (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]]
2048
+  (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]]
2049
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2050
+  (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]]
2051
+  (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]]
2052
+  (0.2ms) ROLLBACK
2053
+  (0.7ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2054
+  (1.8ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2055
+  (3.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2056
+  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2057
+  (0.2ms) BEGIN
2058
+  (0.2ms) COMMIT
2059
+  (0.1ms) BEGIN
2060
+ 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]]
2061
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2062
+  (0.3ms) ROLLBACK
2063
+  (0.2ms) BEGIN
2064
+  (0.3ms) COMMIT
2065
+  (0.2ms) BEGIN
2066
+ 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]]
2067
+ 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]]
2068
+ 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]]
2069
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2070
+  (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]]
2071
+  (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]]
2072
+ 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]]
2073
+  (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]]
2074
+  (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]]
2075
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2076
+  (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]]
2077
+  (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]]
2078
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2079
+  (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]]
2080
+  (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]]
2081
+  (0.3ms) ROLLBACK
2082
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2083
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2084
+  (4.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2085
+  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2086
+  (0.2ms) BEGIN
2087
+  (0.2ms) COMMIT
2088
+  (0.1ms) BEGIN
2089
+ 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]]
2090
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2091
+  (0.5ms) ROLLBACK
2092
+  (0.2ms) BEGIN
2093
+  (0.2ms) COMMIT
2094
+  (0.2ms) BEGIN
2095
+ 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]]
2096
+ 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]]
2097
+ 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]]
2098
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2099
+  (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]]
2100
+  (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]]
2101
+ 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]]
2102
+  (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]]
2103
+  (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]]
2104
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2105
+  (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]]
2106
+  (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]]
2107
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2108
+  (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]]
2109
+  (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]]
2110
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2111
+  (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]]
2112
+  (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]]
2113
+  (0.3ms) ROLLBACK
2114
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2115
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2116
+  (6.4ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2117
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2118
+  (0.2ms) BEGIN
2119
+  (0.2ms) COMMIT
2120
+  (0.2ms) BEGIN
2121
+ 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]]
2122
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2123
+  (0.6ms) ROLLBACK
2124
+  (0.1ms) BEGIN
2125
+  (0.3ms) COMMIT
2126
+  (0.2ms) BEGIN
2127
+ 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]]
2128
+ 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]]
2129
+ 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]]
2130
+ Invoice Load (0.6ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2131
+  (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]]
2132
+  (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]]
2133
+ 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]]
2134
+  (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]]
2135
+  (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]]
2136
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2137
+  (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]]
2138
+  (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]]
2139
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2140
+  (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]]
2141
+  (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]]
2142
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2143
+  (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]]
2144
+  (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]]
2145
+  (0.2ms) ROLLBACK
2146
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2147
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2148
+  (6.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2149
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2150
+  (0.2ms) BEGIN
2151
+  (0.2ms) COMMIT
2152
+  (0.1ms) BEGIN
2153
+ 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]]
2154
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2155
+  (0.5ms) ROLLBACK
2156
+  (0.1ms) BEGIN
2157
+  (0.2ms) COMMIT
2158
+  (0.2ms) BEGIN
2159
+ 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]]
2160
+ 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]]
2161
+ 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]]
2162
+ Invoice Load (1.0ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2163
+  (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]]
2164
+  (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]]
2165
+ 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]]
2166
+  (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]]
2167
+  (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]]
2168
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2169
+  (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]]
2170
+  (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]]
2171
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2172
+  (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]]
2173
+  (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]]
2174
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2175
+  (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]]
2176
+  (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]]
2177
+  (0.3ms) SELECT COUNT(*) FROM "plies"
2178
+  (0.2ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2179
+  (0.3ms) ROLLBACK
2180
+  (0.5ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2181
+  (1.4ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2182
+  (5.7ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2183
+  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2184
+  (0.2ms) BEGIN
2185
+  (0.1ms) COMMIT
2186
+  (0.1ms) BEGIN
2187
+ 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]]
2188
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2189
+  (0.2ms) ROLLBACK
2190
+  (0.1ms) BEGIN
2191
+  (0.1ms) COMMIT
2192
+  (0.1ms) BEGIN
2193
+ 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]]
2194
+ 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]]
2195
+ 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]]
2196
+ Invoice Load (0.9ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2197
+  (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]]
2198
+  (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]]
2199
+ 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]]
2200
+  (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]]
2201
+  (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]]
2202
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2203
+  (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]]
2204
+  (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]]
2205
+ Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2206
+  (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]]
2207
+  (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]]
2208
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2209
+  (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]]
2210
+  (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]]
2211
+  (0.5ms) SELECT COUNT(*) FROM "plies"
2212
+  (0.5ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2213
+ LineItem Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1
2214
+  (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]]
2215
+  (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]]
2216
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2217
+  (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]]
2218
+  (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]]
2219
+  (0.3ms) ROLLBACK
2220
+  (0.6ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2221
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2222
+  (3.9ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2223
+  (0.2ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2224
+  (0.1ms) BEGIN
2225
+  (0.1ms) COMMIT
2226
+  (0.1ms) BEGIN
2227
+ 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]]
2228
+ PlyRelation Load (0.9ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2229
+  (0.2ms) ROLLBACK
2230
+  (0.1ms) BEGIN
2231
+  (0.1ms) COMMIT
2232
+  (0.1ms) BEGIN
2233
+ 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]]
2234
+ 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]]
2235
+ 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]]
2236
+ Invoice Load (0.8ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2237
+  (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]]
2238
+  (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]]
2239
+ 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]]
2240
+  (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]]
2241
+  (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]]
2242
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2243
+  (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]]
2244
+  (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]]
2245
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2246
+  (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]]
2247
+  (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]]
2248
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2249
+  (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]]
2250
+  (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]]
2251
+  (0.4ms) SELECT COUNT(*) FROM "plies"
2252
+  (0.3ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2253
+ LineItem Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1
2254
+  (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]]
2255
+  (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]]
2256
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2257
+  (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]]
2258
+  (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]]
2259
+  (0.3ms) ROLLBACK
2260
+  (3.8ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2261
+  (11.6ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2262
+  (9.3ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2263
+  (0.3ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2264
+  (0.2ms) BEGIN
2265
+  (0.2ms) COMMIT
2266
+  (0.2ms) BEGIN
2267
+ 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]]
2268
+ PlyRelation Load (1.2ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2269
+  (0.2ms) ROLLBACK
2270
+  (0.1ms) BEGIN
2271
+  (0.1ms) COMMIT
2272
+  (0.1ms) BEGIN
2273
+ 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]]
2274
+ 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]]
2275
+ 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]]
2276
+ Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2277
+  (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]]
2278
+  (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]]
2279
+ 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]]
2280
+  (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]]
2281
+  (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]]
2282
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2283
+  (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]]
2284
+  (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]]
2285
+ Invoice Load (1.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2286
+  (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]]
2287
+  (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]]
2288
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2289
+  (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]]
2290
+  (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]]
2291
+  (0.3ms) SELECT COUNT(*) FROM "plies"
2292
+  (0.2ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2293
+ LineItem Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1
2294
+  (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]]
2295
+  (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]]
2296
+ Invoice Load (0.5ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2297
+  (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]]
2298
+  (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]]
2299
+  (0.3ms) ROLLBACK
2300
+  (0.4ms) ALTER TABLE "plies" DISABLE TRIGGER ALL;ALTER TABLE "ply_relations" DISABLE TRIGGER ALL
2301
+  (1.5ms) select table_name from information_schema.views where table_schema = 'dummy_test'
2302
+  (5.1ms) TRUNCATE TABLE "plies", "ply_relations" RESTART IDENTITY CASCADE;
2303
+  (0.4ms) ALTER TABLE "plies" ENABLE TRIGGER ALL;ALTER TABLE "ply_relations" ENABLE TRIGGER ALL
2304
+  (0.2ms) BEGIN
2305
+  (0.2ms) COMMIT
2306
+  (0.1ms) BEGIN
2307
+ 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]]
2308
+ PlyRelation Load (0.8ms) SELECT "ply_relations".* FROM "ply_relations" WHERE "ply_relations"."id" = $1 LIMIT 1 [["id", 1]]
2309
+  (0.2ms) ROLLBACK
2310
+  (0.1ms) BEGIN
2311
+  (0.1ms) COMMIT
2312
+  (0.1ms) BEGIN
2313
+ 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]]
2314
+ 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]]
2315
+ 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]]
2316
+ Invoice Load (0.7ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2317
+  (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]]
2318
+  (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]]
2319
+ 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]]
2320
+  (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]]
2321
+  (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]]
2322
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2323
+  (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]]
2324
+  (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]]
2325
+ Invoice Load (0.4ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' AND "plies"."last_modified" = '2014-01-19 07:48:35'
2326
+  (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]]
2327
+  (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]]
2328
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2329
+  (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]]
2330
+  (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]]
2331
+  (0.3ms) SELECT COUNT(*) FROM "plies"
2332
+  (0.3ms) SELECT COUNT(*) FROM "plies" WHERE "plies"."otype" = 'Invoice__c'
2333
+ LineItem Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Line_Item__c' ORDER BY "plies"."id" ASC LIMIT 1
2334
+  (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]]
2335
+  (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]]
2336
+ Invoice Load (0.3ms) SELECT "plies".* FROM "plies" WHERE "plies"."otype" = 'Invoice__c' ORDER BY "plies"."id" ASC LIMIT 1
2337
+  (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]]
2338
+  (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]]
2339
+  (0.2ms) ROLLBACK