rails_soft_deletable 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODMyMTMzMDAxMzgyMTg2MGUxNzFhODRjNmQ5ZWFhYTY2ZDUxNDc2Nw==
4
+ MjQyMzFlNDJkNjk3MDYyN2M4ODBkYTllOWUxOWI1MDg2YWU1OGZlYw==
5
5
  data.tar.gz: !binary |-
6
- M2ZiZmQyNTZmMjZkZDE5Mjk3YWMxZjA4YzM3ODllNTZjZDg3NDA0YQ==
6
+ Y2RlYzY3YTNmYjA4ZjQ0ZTc4MTFkZWY1NzNjYWE2MmEyMWEzYThmNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjI2NjU4NWRmYTJhNGNhNzhiMWZhNzlhODkzNDE4Nzc4ZTVkYTI0MzdiZDFj
10
- ZjRiN2VhYzg4NDFhMzY3MjA5NTAxYjkyZGRjZDYyYWQ1M2YyMDI3YTZjNDEz
11
- ODkwMzNiNDc5MGU2ZDIxOGYyYWFlNTQwMmNhMmVkZjBjZTZiZjU=
9
+ YjVlYTJkN2EyNzk4MTY4ZTNkMjFlYmJkYWQ5Y2I5NzNhNmFkZTQ1NjdhZjNj
10
+ NGQ2ODM5MzNlMzc2OTRkNzg1ZGVhNDlhYjJkMzFmODg1NTM0YWQzYWJiOTgz
11
+ ZmJmMTgwOWJlY2E3YzJjMDQ2MTY2Y2EwYzYzMmEyYjYzZDIyOWM=
12
12
  data.tar.gz: !binary |-
13
- N2Y3ZDZkYWViMDI5MWY2MGM2M2E5MWU0ODcwMDE4MDBjZmMwMjk2N2Q2NmQz
14
- MWVkM2ZiYjg3MmM5NWM1NTBiMjhjMzg2YzZjYzdiYmQwNzM5M2NlNThmYTdk
15
- ZWRlODFkNTcwNzkzMWYwYzdmMmZjNzUxZTc5NmUyZThiMTA1ZWU=
13
+ OGRmYjE0MWQxYjBkODcxMGYxYjU0ZWM1YmY5MjA5YmRhMmQ4MmE1YWE1MTdj
14
+ NDU1NGMxODk0NTAxZDYyNTlhZWUwYjRjNTRhYTYwZDk1NmI0MDI3MzQzNzZj
15
+ YzA3ZTg5ZTUxYjM1ZDRlZTc5Y2RiNGExZGIyMTRhYmQ5YWNlYzM=
@@ -34,11 +34,7 @@ module RailsSoftDeletable
34
34
  if destroy_mode == :hard
35
35
  super()
36
36
  else
37
- if destroyed?
38
- delete_or_soft_delete(true)
39
- else
40
- run_callbacks(:destroy) { delete_or_soft_delete(true) }
41
- end
37
+ touch_soft_deletable_column(true)
42
38
  end
43
39
  end
44
40
 
@@ -46,8 +42,7 @@ module RailsSoftDeletable
46
42
  if delete_mode == :hard
47
43
  super()
48
44
  else
49
- return if new_record?
50
- delete_or_soft_delete
45
+ touch_soft_deletable_column
51
46
  end
52
47
  end
53
48
 
@@ -72,31 +67,16 @@ module RailsSoftDeletable
72
67
  !value || value != 0
73
68
  end
74
69
 
75
- def persisted?
76
- @_pretend_persistence || super
77
- end
78
-
79
70
  private
80
71
 
81
- def _prepare_for_hard_delete(&block)
82
- @_pretend_persistence = true
83
- self.class.unscoped(&block)
84
- ensure
85
- @_pretend_persistence = false
86
- end
87
-
88
- def delete_or_soft_delete(with_transaction = false)
89
- if destroyed?
90
- _prepare_for_hard_delete { delete(:hard) }
91
- else
92
- touch_soft_deletable_column(with_transaction)
93
- end
94
- end
95
-
96
72
  def touch_soft_deletable_column(with_transaction=false)
97
73
  if with_transaction
98
- with_transaction_returning_status { touch_column }
99
- else
74
+ with_transaction_returning_status do
75
+ run_callbacks(:destroy) do
76
+ touch_column if persisted?
77
+ end
78
+ end
79
+ elsif persisted?
100
80
  touch_column
101
81
  end
102
82
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSoftDeletable
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
Binary file
@@ -1,6 +1,8 @@
1
1
  module SoftDeletableModelCallbacks
2
2
  def self.included(base)
3
3
  base.class_eval do
4
+ attr_reader :callback_order
5
+
4
6
  attr_reader :before_destroy_called
5
7
  attr_reader :around_destroy_called
6
8
  attr_reader :after_destroy_called
@@ -9,6 +11,8 @@ module SoftDeletableModelCallbacks
9
11
  attr_reader :around_restore_called
10
12
  attr_reader :after_restore_called
11
13
 
14
+ attr_reader :after_commit_called
15
+
12
16
  before_destroy :call_before_destroy
13
17
  around_destroy :call_around_destroy
14
18
  after_destroy :call_after_destroy
@@ -17,33 +21,41 @@ module SoftDeletableModelCallbacks
17
21
  around_restore :call_around_restore
18
22
  after_restore :call_after_restore
19
23
 
24
+ after_commit :call_after_commit, on: :destroy
25
+
20
26
  def call_before_destroy
21
- @before_destroy_called = true
27
+ @before_destroy_called = next_callback_order
22
28
  end
23
29
 
24
30
  def call_around_destroy
31
+ @around_destroy_called = next_callback_order
25
32
  yield
26
- @around_destroy_called = true
27
33
  end
28
34
 
29
35
  def call_after_destroy
30
- @after_destroy_called = true
36
+ @after_destroy_called = next_callback_order
31
37
  end
32
38
 
33
39
  def call_before_restore
34
- @before_restore_called = true
40
+ @before_restore_called = next_callback_order
35
41
  end
36
42
 
37
43
  def call_around_restore
44
+ @around_restore_called = next_callback_order
38
45
  yield
39
- @around_restore_called = true
40
46
  end
41
47
 
42
48
  def call_after_restore
43
- @after_restore_called = true
49
+ @after_restore_called = next_callback_order
50
+ end
51
+
52
+ def call_after_commit
53
+ @after_commit_called = next_callback_order
44
54
  end
45
55
 
46
56
  def reset_callback_flags!
57
+ @callback_order = 0
58
+
47
59
  @before_destroy_called = nil
48
60
  @around_destroy_called = nil
49
61
  @after_destroy_called = nil
@@ -51,6 +63,13 @@ module SoftDeletableModelCallbacks
51
63
  @before_restore_called = nil
52
64
  @around_restore_called = nil
53
65
  @after_restore_called = nil
66
+
67
+ @after_commit_called = nil
68
+ end
69
+
70
+ def next_callback_order
71
+ @callback_order ||= 0
72
+ @callback_order += 1
54
73
  end
55
74
  end
56
75
  end
@@ -1,1417 +1,1045 @@
1
-  (1.5ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer) 
2
-  (1.0ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
3
-  (1.1ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0) 
4
-  (1.2ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
5
-  (1.1ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer) 
6
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
7
-  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (1.9ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer) 
2
+  (1.1ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
3
+  (1.0ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0) 
4
+  (0.9ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
5
+  (0.8ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer) 
6
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
7
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
8
   (0.1ms) SELECT version FROM "schema_migrations"
9
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216212400')
9
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150207084152')
10
10
   (0.0ms) begin transaction
11
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
12
-  (1.1ms) commit transaction
13
-  (0.1ms) begin transaction
14
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.196814 WHERE "integer_models"."id" = 1
15
-  (0.8ms) commit transaction
16
-  (0.1ms) begin transaction
17
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
18
-  (0.9ms) commit transaction
19
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models"
20
-  (0.1ms) begin transaction
21
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
22
-  (0.9ms) commit transaction
11
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
12
+  (0.7ms) commit transaction
13
+  (0.0ms) begin transaction
14
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.560672 WHERE "integer_models"."id" = 1
15
+  (0.7ms) commit transaction
16
+  (0.0ms) begin transaction
17
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
18
+  (0.8ms) commit transaction
23
19
   (0.1ms) begin transaction
24
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
20
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.565574 WHERE "integer_models"."id" = 2
25
21
   (0.7ms) commit transaction
26
22
   (0.0ms) begin transaction
27
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.243539 WHERE "integer_models"."id" = 4
28
-  (0.5ms) commit transaction
23
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
24
+  (0.6ms) commit transaction
25
+  (0.0ms) begin transaction
26
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.568644 WHERE "integer_models"."id" = 3
27
+  (0.6ms) commit transaction
28
+  (0.0ms) begin transaction
29
+ SQL (0.2ms) INSERT INTO "decimal_models" DEFAULT VALUES
30
+  (0.7ms) commit transaction
29
31
   (0.0ms) begin transaction
30
32
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
31
33
   (0.0ms) commit transaction
32
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736241.246541 WHERE "decimal_models"."id" = 1
34
+  (0.0ms) begin transaction
35
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327313.0 WHERE "decimal_models"."id" = 2
36
+  (0.0ms) commit transaction
33
37
   (0.0ms) begin transaction
34
38
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
35
39
   (0.0ms) commit transaction
36
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.246541 WHERE "integer_models"."id" = 5
37
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 1
38
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 5
39
-  (0.1ms) begin transaction
40
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
40
+  (0.0ms) begin transaction
41
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327313.0 WHERE "integer_models"."id" = 4
42
+  (0.0ms) commit transaction
43
+  (0.0ms) begin transaction
44
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
45
+  (0.7ms) commit transaction
46
+  (0.0ms) begin transaction
47
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.583548 WHERE "integer_models"."id" = 5
48
+  (0.6ms) commit transaction
49
+  (0.0ms) begin transaction
50
+ SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
51
+  (0.0ms) commit transaction
52
+  (0.0ms) begin transaction
53
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327312.584942 WHERE "decimal_models"."id" = 3
54
+  (0.0ms) commit transaction
55
+  (0.0ms) begin transaction
56
+ SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
57
+  (0.0ms) commit transaction
58
+  (0.0ms) begin transaction
59
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.584942 WHERE "integer_models"."id" = 6
60
+  (0.0ms) commit transaction
61
+  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 3
62
+  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 6
63
+  (0.0ms) begin transaction
64
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
41
65
   (0.6ms) commit transaction
42
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.267924 WHERE "integer_models"."id" = 6
43
-  (0.1ms) begin transaction
44
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
66
+  (0.0ms) begin transaction
67
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.591595 WHERE "integer_models"."id" = 7
68
+  (0.6ms) commit transaction
69
+  (0.0ms) begin transaction
70
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
45
71
   (0.6ms) commit transaction
46
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.271395 WHERE "integer_models"."id" = 7
72
+  (0.0ms) begin transaction
73
+ SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 8]]
74
+  (0.5ms) commit transaction
47
75
   (0.1ms) begin transaction
48
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
76
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
77
+  (0.7ms) commit transaction
78
+  (0.0ms) begin transaction
79
+ SQL (0.1ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 9]]
80
+  (0.6ms) commit transaction
81
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 9
82
+  (0.0ms) begin transaction
83
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
84
+  (0.6ms) commit transaction
85
+  (0.0ms) begin transaction
86
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.599584 WHERE "integer_models"."id" = 10
87
+  (0.6ms) commit transaction
88
+  (0.0ms) begin transaction
89
+  (0.0ms) rollback transaction
90
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 10
91
+  (0.0ms) begin transaction
92
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
49
93
   (0.5ms) commit transaction
50
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.274866 WHERE "integer_models"."id" = 8
94
+  (0.0ms) begin transaction
95
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.602747 WHERE "integer_models"."id" = 11
96
+  (0.4ms) commit transaction
97
+  (0.0ms) begin transaction
98
+  (0.0ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
101
+  (0.7ms) commit transaction
102
+  (0.0ms) begin transaction
103
+ SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 1]]
104
+  (0.5ms) commit transaction
105
+  (0.0ms) begin transaction
106
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327312.61425 WHERE "trees"."id" = 1
107
+  (0.6ms) commit transaction
108
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 1]]
51
109
   (0.1ms) begin transaction
52
- SQL (0.3ms) INSERT INTO "decimal_models" DEFAULT VALUES
110
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
53
111
   (0.6ms) commit transaction
54
-  (0.1ms) begin transaction
55
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
112
+  (0.0ms) begin transaction
113
+ SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
56
114
   (0.7ms) commit transaction
57
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.280797 WHERE "integer_models"."id" = 9
115
+  (0.0ms) begin transaction
116
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327312.647117 WHERE "trees"."id" = 2
117
+  (0.6ms) commit transaction
58
118
   (0.0ms) begin transaction
59
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
60
-  (0.0ms) commit transaction
61
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736241.0 WHERE "decimal_models"."id" = 3
119
+ SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
120
+  (0.7ms) commit transaction
121
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 2 LIMIT 1 [["park_id", 2]]
122
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 3 LIMIT 1 [["park_id", 2]]
123
+  (0.0ms) begin transaction
124
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
125
+  (0.8ms) commit transaction
62
126
   (0.0ms) begin transaction
63
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
64
-  (0.0ms) commit transaction
65
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.0 WHERE "integer_models"."id" = 10
66
-  (0.1ms) begin transaction
67
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
127
+ SQL (0.3ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 3]]
68
128
   (0.5ms) commit transaction
69
- SQL (0.6ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.29138 WHERE "integer_models"."id" = 11
70
-  (0.1ms) begin transaction
71
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
72
-  (0.9ms) commit transaction
73
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.295192 WHERE "integer_models"."id" = 12
74
- SQL (0.8ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 12
75
-  (0.1ms) begin transaction
76
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
129
+  (0.0ms) begin transaction
130
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327312.656681 WHERE "trees"."id" = 4
131
+  (0.6ms) commit transaction
132
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 3]]
133
+  (0.0ms) begin transaction
134
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
77
135
   (0.7ms) commit transaction
78
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.299759 WHERE "integer_models"."id" = 13
79
- SQL (1.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 13
80
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 13
81
-  (0.1ms) begin transaction
82
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
136
+  (0.0ms) begin transaction
137
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 4]]
138
+  (0.6ms) commit transaction
139
+  (0.0ms) begin transaction
140
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327312.663649 WHERE "trees"."id" = 5
141
+  (0.5ms) commit transaction
142
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 4]]
143
+  (0.0ms) begin transaction
144
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
145
+  (0.7ms) commit transaction
146
+  (0.0ms) begin transaction
147
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423327312.672233 WHERE "forests"."id" = 1
148
+  (0.7ms) commit transaction
149
+  (0.0ms) begin transaction
150
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
83
151
   (0.6ms) commit transaction
84
- SQL (0.6ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 14
85
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 14
86
152
   (0.0ms) begin transaction
87
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
153
+ SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 5 [["forest_id", 1]]
154
+  (0.6ms) commit transaction
155
+ Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 5]]
156
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 1]]
157
+  (0.0ms) begin transaction
158
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
159
+  (0.5ms) commit transaction
160
+  (0.0ms) begin transaction
161
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423327312.681632 WHERE "forests"."id" = 2
162
+  (0.6ms) commit transaction
163
+  (0.0ms) begin transaction
164
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
165
+  (0.6ms) commit transaction
166
+  (0.0ms) begin transaction
167
+ SQL (0.1ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 6 [["forest_id", 2]]
168
+  (0.6ms) commit transaction
169
+ Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 6]]
170
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 2]]
171
+  (0.0ms) begin transaction
172
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
173
+  (0.6ms) commit transaction
174
+  (0.0ms) begin transaction
175
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
88
176
   (0.7ms) commit transaction
89
- SQL (0.8ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 15
90
-  (0.1ms) begin transaction
91
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
92
-  (0.9ms) commit transaction
93
-  (0.1ms) begin transaction
94
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.313677 WHERE "integer_models"."id" = 16
95
-  (1.0ms) commit transaction
96
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 16
97
-  (0.1ms) begin transaction
98
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
99
-  (1.0ms) commit transaction
100
-  (0.1ms) begin transaction
101
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.323353 WHERE "integer_models"."id" = 17
102
-  (0.9ms) commit transaction
103
- SQL (1.2ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 17
104
-  (0.1ms) begin transaction
105
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
106
-  (0.9ms) commit transaction
107
-  (0.1ms) begin transaction
108
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.329502 WHERE "integer_models"."id" = 18
109
-  (0.9ms) commit transaction
110
- SQL (1.3ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 18
111
-  (0.2ms) SELECT deleted_at FROM "integer_models" WHERE id = 18
112
-  (0.1ms) begin transaction
113
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
114
-  (0.8ms) commit transaction
115
-  (0.1ms) begin transaction
116
- SQL (0.4ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.336921 WHERE "integer_models"."id" = 19
117
-  (0.8ms) commit transaction
118
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 19
119
177
   (0.0ms) begin transaction
120
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
121
-  (6.6ms) commit transaction
122
-  (0.1ms) begin transaction
123
- SQL (0.3ms) UPDATE "forests" SET "deleted_at" = 1418736241.361026 WHERE "forests"."id" = 1
178
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327312.691065 WHERE "trees"."id" = 6
179
+  (0.6ms) commit transaction
180
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 3]]
181
+  (0.0ms) begin transaction
182
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
183
+  (0.5ms) commit transaction
184
+  (0.0ms) begin transaction
185
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
124
186
   (0.5ms) commit transaction
125
-  (0.1ms) begin transaction
126
- SQL (0.4ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 1]]
127
-  (0.7ms) commit transaction
128
- Forest Load (0.2ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 1]]
129
-  (0.1ms) begin transaction
130
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
187
+  (0.0ms) begin transaction
188
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423327312.696604 WHERE "trees"."id" = 7
131
189
   (0.6ms) commit transaction
132
190
   (0.0ms) begin transaction
133
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736241.389941 WHERE "forests"."id" = 2
191
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
134
192
   (0.6ms) commit transaction
193
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 7 LIMIT 1 [["forest_id", 4]]
194
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 8 LIMIT 1 [["forest_id", 4]]
135
195
   (0.0ms) begin transaction
136
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 2]]
196
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
137
197
   (0.6ms) commit transaction
138
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 2]]
139
-  (0.1ms) begin transaction
140
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
141
-  (1.2ms) commit transaction
142
-  (0.1ms) begin transaction
143
- SQL (0.7ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 3]]
144
-  (1.2ms) commit transaction
145
-  (0.1ms) begin transaction
146
- SQL (0.4ms) UPDATE "trees" SET "deleted_at" = 1418736241.405185 WHERE "trees"."id" = 3
198
+  (0.0ms) begin transaction
199
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 5]]
200
+  (0.6ms) commit transaction
201
+  (0.0ms) begin transaction
202
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423327312.704394 WHERE "trees"."id" = 9
203
+  (0.6ms) commit transaction
204
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 5]]
205
+  (0.0ms) begin transaction
206
+ SQL (0.1ms) INSERT INTO "forests" DEFAULT VALUES
207
+  (0.6ms) commit transaction
208
+  (0.0ms) begin transaction
209
+ SQL (0.1ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 6]]
210
+  (0.6ms) commit transaction
211
+  (0.0ms) begin transaction
212
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423327312.709655 WHERE "trees"."id" = 10
147
213
   (0.7ms) commit transaction
148
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND (biggest = 't') LIMIT 1 [["forest_id", 3]]
149
-  (0.1ms) begin transaction
150
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
214
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 6]]
215
+  (0.0ms) begin transaction
216
+ SQL (0.1ms) INSERT INTO "forests" DEFAULT VALUES
151
217
   (0.6ms) commit transaction
152
-  (0.1ms) begin transaction
153
- SQL (0.3ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 4]]
218
+  (0.0ms) begin transaction
219
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423327312.713701 WHERE "forests"."id" = 7
220
+  (0.5ms) commit transaction
221
+  (0.0ms) begin transaction
222
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 7]]
223
+  (0.7ms) commit transaction
224
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 7]]
225
+  (0.0ms) begin transaction
226
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
227
+  (0.6ms) commit transaction
228
+  (0.0ms) begin transaction
229
+ SQL (0.1ms) UPDATE "forests" SET "deleted_at" = 1423327312.719319 WHERE "forests"."id" = 8
230
+  (0.6ms) commit transaction
231
+  (0.0ms) begin transaction
232
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 8]]
233
+  (0.6ms) commit transaction
234
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 8]]
235
+  (0.0ms) begin transaction
236
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
237
+  (0.6ms) commit transaction
238
+  (0.0ms) begin transaction
239
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.724287 WHERE "integer_models"."id" = 12
240
+  (0.6ms) commit transaction
241
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 12
242
+  (0.0ms) begin transaction
243
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
244
+  (0.6ms) commit transaction
245
+  (0.0ms) begin transaction
246
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.728072 WHERE "integer_models"."id" = 13
247
+  (0.6ms) commit transaction
248
+ SQL (0.6ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 13
249
+  (0.0ms) begin transaction
250
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
251
+  (0.6ms) commit transaction
252
+  (0.0ms) begin transaction
253
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.731471 WHERE "integer_models"."id" = 14
254
+  (0.6ms) commit transaction
255
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 14
256
+  (0.0ms) begin transaction
257
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
154
258
   (0.6ms) commit transaction
155
259
   (0.1ms) begin transaction
156
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736241.446345 WHERE "trees"."id" = 4
260
+ SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.735731 WHERE "integer_models"."id" = 15
157
261
   (0.5ms) commit transaction
158
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND (biggest = 't') LIMIT 1 [["forest_id", 4]]
159
-  (0.1ms) begin transaction
160
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
262
+ SQL (0.6ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 15
263
+  (0.1ms) SELECT deleted_at FROM "integer_models" WHERE id = 15
264
+  (0.0ms) begin transaction
265
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
266
+  (0.5ms) commit transaction
267
+  (0.0ms) begin transaction
268
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.739099 WHERE "integer_models"."id" = 16
269
+  (0.5ms) commit transaction
270
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
271
+  (0.0ms) begin transaction
272
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
273
+  (0.5ms) commit transaction
274
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
275
+  (0.0ms) begin transaction
276
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
277
+  (0.6ms) commit transaction
278
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.743705 WHERE "integer_models"."id" = 18
279
+  (0.0ms) begin transaction
280
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
281
+  (0.5ms) commit transaction
282
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.745974 WHERE "integer_models"."id" = 19
283
+  (0.0ms) begin transaction
284
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
161
285
   (0.6ms) commit transaction
286
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.748335 WHERE "integer_models"."id" = 20
287
+  (0.0ms) begin transaction
288
+ SQL (0.2ms) INSERT INTO "decimal_models" DEFAULT VALUES
289
+  (0.5ms) commit transaction
162
290
   (0.0ms) begin transaction
163
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 5]]
291
+ SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
292
+  (0.0ms) commit transaction
293
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327313.0 WHERE "decimal_models"."id" = 5
294
+  (0.0ms) begin transaction
295
+ SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
296
+  (0.0ms) commit transaction
297
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327313.0 WHERE "integer_models"."id" = 21
298
+  (0.0ms) begin transaction
299
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
300
+  (0.6ms) commit transaction
301
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.757037 WHERE "integer_models"."id" = 22
302
+  (0.0ms) begin transaction
303
+ SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
304
+  (0.0ms) commit transaction
305
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327312.758175 WHERE "decimal_models"."id" = 6
306
+  (0.0ms) begin transaction
307
+ SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
308
+  (0.0ms) commit transaction
309
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.758175 WHERE "integer_models"."id" = 23
310
+  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 6
311
+  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 23
312
+  (0.0ms) begin transaction
313
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
314
+  (0.6ms) commit transaction
315
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.765126 WHERE "integer_models"."id" = 24
316
+  (0.0ms) begin transaction
317
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
164
318
   (0.5ms) commit transaction
165
-  (0.1ms) begin transaction
166
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736241.457554 WHERE "trees"."id" = 5
167
-  (1.3ms) commit transaction
168
-  (0.1ms) begin transaction
169
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 5]]
319
+ SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 25
320
+  (0.0ms) begin transaction
321
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
322
+  (0.6ms) commit transaction
323
+ SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 26
324
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 26
325
+  (0.0ms) begin transaction
326
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
327
+  (0.6ms) commit transaction
328
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.772172 WHERE "integer_models"."id" = 27
329
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 27
330
+  (0.0ms) begin transaction
331
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
332
+  (0.6ms) commit transaction
333
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.774759 WHERE "integer_models"."id" = 28
334
+  (0.0ms) begin transaction
335
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
336
+  (0.6ms) commit transaction
337
+  (0.0ms) begin transaction
338
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.777212 WHERE "integer_models"."id" = 29
339
+  (0.4ms) commit transaction
340
+  (0.0ms) begin transaction
341
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
342
+  (0.6ms) commit transaction
343
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models"
344
+  (0.0ms) begin transaction
345
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
170
346
   (0.5ms) commit transaction
171
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 5 LIMIT 1 [["forest_id", 5]]
172
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 6 LIMIT 1 [["forest_id", 5]]
173
-  (0.1ms) begin transaction
174
- SQL (0.5ms) INSERT INTO "forests" DEFAULT VALUES
175
-  (0.8ms) commit transaction
176
-  (0.1ms) begin transaction
177
- SQL (0.3ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 6]]
178
-  (0.9ms) commit transaction
179
347
   (0.0ms) begin transaction
180
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736241.492333 WHERE "trees"."id" = 7
181
-  (0.8ms) commit transaction
182
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 6]]
183
-  (0.1ms) begin transaction
184
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
348
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327312.781498 WHERE "integer_models"."id" = 31
185
349
   (0.6ms) commit transaction
186
350
   (0.0ms) begin transaction
187
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736241.499475 WHERE "forests"."id" = 7
188
-  (0.8ms) commit transaction
351
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
352
+  (0.6ms) commit transaction
353
+  (1.6ms) DROP TABLE "decimal_models"
354
+  (0.9ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer)
355
+  (0.8ms) DROP TABLE "integer_models"
356
+  (0.9ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
357
+  (0.8ms) DROP TABLE "forests"
358
+  (0.9ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
359
+  (0.8ms) DROP TABLE "trees"
360
+  (0.9ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
361
+  (0.6ms) DROP TABLE "parks"
362
+  (0.8ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer)
363
+  (0.1ms) SELECT version FROM "schema_migrations"
364
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150207084317')
189
365
   (0.0ms) begin transaction
190
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
191
-  (0.8ms) commit transaction
366
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
367
+  (0.7ms) commit transaction
368
+  (0.0ms) begin transaction
369
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.147314 WHERE "integer_models"."id" = 1
370
+  (0.5ms) commit transaction
371
+ SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 1
372
+  (0.0ms) begin transaction
373
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
374
+  (0.7ms) commit transaction
375
+  (0.0ms) begin transaction
376
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.15224 WHERE "integer_models"."id" = 2
377
+  (0.7ms) commit transaction
378
+ SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 2
379
+  (0.0ms) begin transaction
380
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
381
+  (0.7ms) commit transaction
192
382
   (0.0ms) begin transaction
193
- SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 1 [["forest_id", 7]]
383
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.155781 WHERE "integer_models"."id" = 3
194
384
   (0.7ms) commit transaction
195
- Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 1]]
196
- Forest Load (0.2ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 7]]
197
-  (0.1ms) begin transaction
198
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
199
-  (0.9ms) commit transaction
385
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 3
386
+  (0.1ms) SELECT deleted_at FROM "integer_models" WHERE id = 3
387
+  (0.0ms) begin transaction
388
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
389
+  (0.6ms) commit transaction
200
390
   (0.0ms) begin transaction
201
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736241.513495 WHERE "forests"."id" = 8
202
-  (0.8ms) commit transaction
203
-  (0.1ms) begin transaction
204
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
205
-  (0.8ms) commit transaction
391
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.15931 WHERE "integer_models"."id" = 4
392
+  (0.5ms) commit transaction
393
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 4
206
394
   (0.0ms) begin transaction
207
- SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 2 [["forest_id", 8]]
395
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
208
396
   (0.7ms) commit transaction
209
- Park Load (0.2ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 2]]
210
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 8]]
211
-  (0.1ms) begin transaction
212
- SQL (0.4ms) INSERT INTO "parks" DEFAULT VALUES
213
-  (2.2ms) commit transaction
214
-  (0.1ms) begin transaction
215
- SQL (0.3ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 3]]
216
-  (1.7ms) commit transaction
217
-  (0.1ms) begin transaction
218
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736241.530772 WHERE "trees"."id" = 8
219
-  (3.9ms) commit transaction
220
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND (biggest = 't') LIMIT 1 [["park_id", 3]]
221
-  (0.1ms) begin transaction
222
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
223
-  (1.3ms) commit transaction
224
-  (0.1ms) begin transaction
225
- SQL (0.3ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 4]]
226
-  (2.8ms) commit transaction
227
-  (0.1ms) begin transaction
228
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736241.547193 WHERE "trees"."id" = 9
229
-  (8.9ms) commit transaction
230
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND (biggest = 't') LIMIT 1 [["park_id", 4]]
231
-  (0.1ms) begin transaction
232
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
233
-  (0.7ms) commit transaction
234
-  (0.0ms) begin transaction
235
- SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 5]]
236
-  (1.4ms) commit transaction
237
397
   (0.0ms) begin transaction
238
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736241.565521 WHERE "trees"."id" = 10
239
-  (1.5ms) commit transaction
240
-  (0.1ms) begin transaction
241
- SQL (0.4ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 5]]
242
-  (0.9ms) commit transaction
243
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 10 LIMIT 1 [["park_id", 5]]
244
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 11 LIMIT 1 [["park_id", 5]]
398
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.164476 WHERE "integer_models"."id" = 5
399
+  (0.6ms) commit transaction
400
+  (0.0ms) begin transaction
401
+ SQL (0.2ms) INSERT INTO "decimal_models" DEFAULT VALUES
402
+  (0.6ms) commit transaction
245
403
   (0.1ms) begin transaction
246
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
247
-  (0.9ms) commit transaction
248
-  (0.1ms) begin transaction
249
- SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 6]]
250
-  (0.8ms) commit transaction
251
-  (0.0ms) begin transaction
252
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736241.579948 WHERE "trees"."id" = 12
253
-  (0.9ms) commit transaction
254
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 6]]
255
-  (0.0ms) begin transaction
256
404
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
257
-  (0.8ms) commit transaction
405
+  (0.6ms) commit transaction
258
406
   (0.0ms) begin transaction
259
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.586051 WHERE "integer_models"."id" = 20
260
-  (1.0ms) commit transaction
261
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
407
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.171783 WHERE "integer_models"."id" = 6
408
+  (0.6ms) commit transaction
409
+  (0.0ms) begin transaction
410
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
411
+  (0.6ms) commit transaction
262
412
   (0.0ms) begin transaction
263
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
264
-  (0.9ms) commit transaction
265
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
413
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.174417 WHERE "integer_models"."id" = 7
414
+  (0.6ms) commit transaction
415
+  (0.0ms) begin transaction
416
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
417
+  (0.6ms) commit transaction
266
418
   (0.0ms) begin transaction
267
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
268
-  (0.0ms) commit transaction
419
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.176976 WHERE "integer_models"."id" = 8
420
+  (0.6ms) commit transaction
269
421
   (0.0ms) begin transaction
270
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736241.592539 WHERE "decimal_models"."id" = 4
422
+ SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
271
423
   (0.0ms) commit transaction
272
424
   (0.0ms) begin transaction
273
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
425
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327397.0 WHERE "decimal_models"."id" = 2
274
426
   (0.0ms) commit transaction
275
427
   (0.0ms) begin transaction
276
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.592539 WHERE "integer_models"."id" = 22
428
+ SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
277
429
   (0.0ms) commit transaction
278
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 4
279
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 22
280
-  (0.1ms) begin transaction
281
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
282
-  (0.7ms) commit transaction
283
-  (0.1ms) begin transaction
284
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.605793 WHERE "integer_models"."id" = 23
285
-  (0.7ms) commit transaction
286
-  (0.1ms) begin transaction
287
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
288
-  (1.4ms) commit transaction
289
-  (0.1ms) begin transaction
290
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.61029 WHERE "integer_models"."id" = 24
291
-  (0.6ms) commit transaction
292
430
   (0.0ms) begin transaction
293
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
294
-  (0.6ms) commit transaction
295
-  (0.0ms) begin transaction
296
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.613744 WHERE "integer_models"."id" = 25
297
-  (1.5ms) commit transaction
298
-  (0.1ms) begin transaction
299
- SQL (0.3ms) INSERT INTO "decimal_models" DEFAULT VALUES
300
-  (1.0ms) commit transaction
301
-  (0.1ms) begin transaction
302
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
303
-  (0.9ms) commit transaction
304
-  (0.1ms) begin transaction
305
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.622505 WHERE "integer_models"."id" = 26
306
-  (0.7ms) commit transaction
431
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.0 WHERE "integer_models"."id" = 9
432
+  (0.0ms) commit transaction
307
433
   (0.0ms) begin transaction
308
434
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
309
435
   (0.0ms) commit transaction
310
436
   (0.0ms) begin transaction
311
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736242.0 WHERE "decimal_models"."id" = 6
437
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327397.18398 WHERE "decimal_models"."id" = 3
312
438
   (0.0ms) commit transaction
313
439
   (0.0ms) begin transaction
314
440
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
315
441
   (0.0ms) commit transaction
316
442
   (0.0ms) begin transaction
317
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736242.0 WHERE "integer_models"."id" = 27
443
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.18398 WHERE "integer_models"."id" = 10
318
444
   (0.0ms) commit transaction
319
-  (0.1ms) begin transaction
320
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
321
-  (0.9ms) commit transaction
322
-  (0.1ms) begin transaction
323
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.635298 WHERE "integer_models"."id" = 28
324
-  (0.9ms) commit transaction
445
+  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 3
446
+  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 10
325
447
   (0.0ms) begin transaction
326
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
327
-  (0.8ms) commit transaction
448
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
449
+  (0.6ms) commit transaction
328
450
   (0.0ms) begin transaction
329
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.639561 WHERE "integer_models"."id" = 29
330
-  (0.8ms) commit transaction
331
- SQL (1.1ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 29
332
-  (0.1ms) begin transaction
333
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
334
-  (0.8ms) commit transaction
451
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.190375 WHERE "integer_models"."id" = 11
452
+  (0.6ms) commit transaction
335
453
   (0.0ms) begin transaction
336
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736241.644752 WHERE "integer_models"."id" = 30
337
-  (0.9ms) commit transaction
338
- SQL (1.1ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 30
339
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 30
340
-  (0.1ms) begin transaction
341
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
454
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
455
+  (0.5ms) commit transaction
456
+  (0.0ms) begin transaction
457
+ SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 12]]
458
+  (0.4ms) commit transaction
459
+  (0.0ms) begin transaction
460
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
461
+  (0.6ms) commit transaction
462
+  (0.0ms) begin transaction
463
+ SQL (0.1ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 13]]
342
464
   (0.6ms) commit transaction
465
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 13
466
+  (0.0ms) begin transaction
467
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
468
+  (0.7ms) commit transaction
343
469
   (0.0ms) begin transaction
344
- SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 31]]
345
-  (0.7ms) commit transaction
346
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 31
470
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.198017 WHERE "integer_models"."id" = 14
471
+  (0.6ms) commit transaction
472
+  (0.0ms) begin transaction
473
+  (0.0ms) rollback transaction
474
+  (0.0ms) begin transaction
475
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
476
+  (0.7ms) commit transaction
477
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.200783 WHERE "integer_models"."id" = 15
478
+  (0.0ms) begin transaction
479
+ SQL (0.2ms) INSERT INTO "decimal_models" DEFAULT VALUES
480
+  (0.6ms) commit transaction
347
481
   (0.1ms) begin transaction
348
482
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
349
-  (1.0ms) commit transaction
350
-  (0.1ms) begin transaction
351
- SQL (0.3ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 32]]
352
-  (1.0ms) commit transaction
353
-  (9.8ms) DROP TABLE "decimal_models"
354
-  (1.5ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer)
355
-  (1.3ms) DROP TABLE "integer_models"
356
-  (1.3ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
357
-  (1.3ms) DROP TABLE "forests"
358
-  (1.2ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
359
-  (1.1ms) DROP TABLE "trees"
360
-  (1.2ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
361
-  (1.2ms) DROP TABLE "parks"
362
-  (1.0ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer)
363
-  (0.1ms) SELECT version FROM "schema_migrations"
364
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216212438')
483
+  (0.6ms) commit transaction
484
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.204673 WHERE "integer_models"."id" = 16
365
485
   (0.0ms) begin transaction
366
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
367
-  (1.0ms) commit transaction
368
- SQL (1.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.223389 WHERE "integer_models"."id" = 1
369
-  (0.1ms) begin transaction
370
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
371
-  (0.8ms) commit transaction
372
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.256999 WHERE "integer_models"."id" = 2
486
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
487
+  (0.6ms) commit transaction
488
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.207167 WHERE "integer_models"."id" = 17
489
+  (0.0ms) begin transaction
490
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
491
+  (0.6ms) commit transaction
492
+ SQL (0.5ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.209575 WHERE "integer_models"."id" = 18
373
493
   (0.0ms) begin transaction
374
494
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
375
495
   (0.0ms) commit transaction
376
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736279.0 WHERE "decimal_models"."id" = 1
496
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327397.0 WHERE "decimal_models"."id" = 5
377
497
   (0.0ms) begin transaction
378
498
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
379
499
   (0.0ms) commit transaction
380
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.0 WHERE "integer_models"."id" = 3
500
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.0 WHERE "integer_models"."id" = 19
381
501
   (0.0ms) begin transaction
382
502
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
383
503
   (0.0ms) commit transaction
384
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736279.272507 WHERE "decimal_models"."id" = 2
504
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423327397.215198 WHERE "decimal_models"."id" = 6
385
505
   (0.0ms) begin transaction
386
506
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
387
507
   (0.0ms) commit transaction
388
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.272507 WHERE "integer_models"."id" = 4
389
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 2
390
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 4
391
-  (0.1ms) begin transaction
392
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
393
-  (0.9ms) commit transaction
394
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.28444 WHERE "integer_models"."id" = 5
395
-  (0.1ms) begin transaction
396
- SQL (0.3ms) INSERT INTO "decimal_models" DEFAULT VALUES
397
-  (0.9ms) commit transaction
398
-  (0.1ms) begin transaction
399
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
400
-  (0.6ms) commit transaction
401
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.291323 WHERE "integer_models"."id" = 6
508
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.215198 WHERE "integer_models"."id" = 20
509
+  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 6
510
+  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 20
511
+  (0.0ms) begin transaction
512
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
513
+  (0.5ms) commit transaction
514
+ SQL (0.5ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.221217 WHERE "integer_models"."id" = 21
515
+  (0.0ms) begin transaction
516
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
517
+  (0.5ms) commit transaction
518
+ SQL (0.5ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 22
519
+  (0.0ms) begin transaction
520
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
521
+  (0.5ms) commit transaction
522
+ SQL (0.5ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 23
523
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 23
402
524
   (0.0ms) begin transaction
403
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
404
-  (0.6ms) commit transaction
405
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.294395 WHERE "integer_models"."id" = 7
406
-  (0.1ms) begin transaction
407
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
525
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
408
526
   (0.5ms) commit transaction
409
- SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 8
410
-  (0.1ms) begin transaction
411
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
412
-  (0.8ms) commit transaction
413
- SQL (0.8ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 9
414
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 9
415
-  (0.1ms) begin transaction
416
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
417
-  (0.6ms) commit transaction
418
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.305452 WHERE "integer_models"."id" = 10
419
- SQL (0.7ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 10
420
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 10
527
+ SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.227895 WHERE "integer_models"."id" = 24
528
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 24
529
+  (0.0ms) begin transaction
530
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
531
+  (0.4ms) commit transaction
532
+ SQL (0.5ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.23052 WHERE "integer_models"."id" = 25
421
533
   (0.0ms) begin transaction
422
534
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
423
535
   (0.6ms) commit transaction
424
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.309583 WHERE "integer_models"."id" = 11
425
- SQL (0.8ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 11
426
536
   (0.0ms) begin transaction
427
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
537
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.232873 WHERE "integer_models"."id" = 26
428
538
   (0.5ms) commit transaction
429
-  (0.1ms) begin transaction
430
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.314004 WHERE "integer_models"."id" = 12
431
-  (0.5ms) commit transaction
432
-  (0.1ms) begin transaction
433
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
434
-  (1.1ms) commit transaction
435
-  (0.0ms) begin transaction
436
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
437
-  (0.9ms) commit transaction
438
-  (0.1ms) begin transaction
439
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.322559 WHERE "integer_models"."id" = 14
440
-  (0.7ms) commit transaction
441
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
442
-  (0.1ms) begin transaction
443
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
444
-  (0.8ms) commit transaction
445
- IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
446
-  (0.0ms) begin transaction
447
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
448
-  (0.8ms) commit transaction
449
539
   (0.0ms) begin transaction
450
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.332445 WHERE "integer_models"."id" = 16
540
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
451
541
   (0.7ms) commit transaction
452
542
   (0.0ms) begin transaction
453
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
454
-  (0.8ms) commit transaction
455
- IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models"
456
-  (0.0ms) begin transaction
457
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
458
-  (0.8ms) commit transaction
543
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
544
+  (0.6ms) commit transaction
545
+  (0.0ms) begin transaction
546
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.237397 WHERE "integer_models"."id" = 28
547
+  (0.6ms) commit transaction
548
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
549
+  (0.0ms) begin transaction
550
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
551
+  (0.6ms) commit transaction
552
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
459
553
   (0.0ms) begin transaction
460
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.338569 WHERE "integer_models"."id" = 18
461
-  (1.0ms) commit transaction
462
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 18
463
-  (0.1ms) begin transaction
464
554
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
465
-  (0.7ms) commit transaction
555
+  (0.6ms) commit transaction
556
+  (0.0ms) begin transaction
557
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423327397.243805 WHERE "integer_models"."id" = 30
558
+  (0.6ms) commit transaction
559
+  (0.0ms) begin transaction
560
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
561
+  (0.6ms) commit transaction
562
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models"
563
+  (0.0ms) begin transaction
564
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
565
+  (0.6ms) commit transaction
466
566
   (0.1ms) begin transaction
467
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.345168 WHERE "integer_models"."id" = 19
567
+ SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 1]]
468
568
   (0.9ms) commit transaction
469
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 19
470
-  (0.2ms) SELECT deleted_at FROM "integer_models" WHERE id = 19
471
-  (0.1ms) begin transaction
472
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
473
-  (0.9ms) commit transaction
474
-  (0.1ms) begin transaction
475
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.351167 WHERE "integer_models"."id" = 20
476
-  (0.7ms) commit transaction
477
- SQL (1.4ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 20
478
-  (0.1ms) begin transaction
479
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
480
-  (0.7ms) commit transaction
481
-  (0.1ms) begin transaction
482
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.359021 WHERE "integer_models"."id" = 21
483
-  (0.5ms) commit transaction
484
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 21
485
569
   (0.0ms) begin transaction
486
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
570
+ SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1423327397.259225 WHERE "trees"."id" = 1
487
571
   (0.7ms) commit transaction
488
-  (0.1ms) begin transaction
489
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736279.374982 WHERE "forests"."id" = 1
490
-  (0.6ms) commit transaction
572
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 1]]
491
573
   (0.0ms) begin transaction
492
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
493
-  (0.5ms) commit transaction
494
-  (0.1ms) begin transaction
495
- SQL (0.4ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 1 [["forest_id", 1]]
496
-  (0.8ms) commit transaction
497
- Park Load (0.2ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 1]]
498
- Forest Load (0.2ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 1]]
499
-  (0.1ms) begin transaction
500
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
501
-  (1.0ms) commit transaction
502
-  (0.1ms) begin transaction
503
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736279.400602 WHERE "forests"."id" = 2
504
-  (0.8ms) commit transaction
505
-  (0.1ms) begin transaction
506
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
507
-  (0.9ms) commit transaction
508
-  (0.1ms) begin transaction
509
- SQL (0.3ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 2 [["forest_id", 2]]
510
-  (0.8ms) commit transaction
511
- Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 2]]
512
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 2]]
513
-  (0.1ms) begin transaction
514
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
515
-  (1.0ms) commit transaction
516
-  (0.1ms) begin transaction
517
- SQL (0.5ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 3]]
518
-  (1.1ms) commit transaction
519
-  (0.1ms) begin transaction
520
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736279.426145 WHERE "trees"."id" = 1
521
-  (1.2ms) commit transaction
522
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND (biggest = 't') LIMIT 1 [["park_id", 3]]
523
-  (0.1ms) begin transaction
524
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
525
-  (0.8ms) commit transaction
574
+ SQL (0.4ms) INSERT INTO "parks" DEFAULT VALUES
575
+  (0.7ms) commit transaction
526
576
   (0.0ms) begin transaction
527
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 4]]
528
-  (0.8ms) commit transaction
577
+ SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
578
+  (0.7ms) commit transaction
529
579
   (0.0ms) begin transaction
530
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736279.464092 WHERE "trees"."id" = 2
580
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327397.296318 WHERE "trees"."id" = 2
531
581
   (0.8ms) commit transaction
532
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND (biggest = 't') LIMIT 1 [["park_id", 4]]
533
-  (0.1ms) begin transaction
534
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
535
-  (1.2ms) commit transaction
536
582
   (0.0ms) begin transaction
537
- SQL (0.4ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 5]]
538
-  (0.8ms) commit transaction
583
+ SQL (0.1ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
584
+  (0.6ms) commit transaction
585
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 2 LIMIT 1 [["park_id", 2]]
586
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 3 LIMIT 1 [["park_id", 2]]
539
587
   (0.0ms) begin transaction
540
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736279.476113 WHERE "trees"."id" = 3
541
-  (0.8ms) commit transaction
542
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 5]]
543
-  (0.1ms) begin transaction
544
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
545
-  (0.9ms) commit transaction
546
-  (0.1ms) begin transaction
547
- SQL (0.4ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 6]]
548
-  (1.1ms) commit transaction
549
-  (0.1ms) begin transaction
550
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736279.495796 WHERE "trees"."id" = 4
551
-  (0.9ms) commit transaction
552
-  (0.1ms) begin transaction
553
- SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 6]]
554
-  (0.7ms) commit transaction
555
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 4 LIMIT 1 [["park_id", 6]]
556
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 5 LIMIT 1 [["park_id", 6]]
557
-  (0.1ms) begin transaction
558
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
588
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
559
589
   (0.6ms) commit transaction
560
590
   (0.0ms) begin transaction
561
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736279.505966 WHERE "forests"."id" = 3
591
+ SQL (0.1ms) UPDATE "forests" SET "deleted_at" = 1423327397.306176 WHERE "forests"."id" = 1
562
592
   (0.6ms) commit transaction
563
593
   (0.0ms) begin transaction
564
- SQL (0.3ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
594
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
565
595
   (0.6ms) commit transaction
566
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 3]]
567
-  (0.1ms) begin transaction
568
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
569
-  (3.2ms) commit transaction
570
-  (0.1ms) begin transaction
571
- SQL (0.3ms) UPDATE "forests" SET "deleted_at" = 1418736279.516755 WHERE "forests"."id" = 4
572
-  (1.3ms) commit transaction
573
-  (0.1ms) begin transaction
574
- SQL (0.4ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
575
-  (1.2ms) commit transaction
576
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 4]]
577
-  (0.1ms) begin transaction
578
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
579
-  (1.1ms) commit transaction
580
-  (0.1ms) begin transaction
581
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 5]]
582
-  (0.7ms) commit transaction
583
-  (0.0ms) begin transaction
584
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736279.531782 WHERE "trees"."id" = 8
585
-  (0.7ms) commit transaction
586
- Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND (biggest = 't') LIMIT 1 [["forest_id", 5]]
587
-  (0.1ms) begin transaction
588
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
589
-  (0.9ms) commit transaction
590
596
   (0.0ms) begin transaction
591
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 6]]
592
-  (0.9ms) commit transaction
593
-  (0.0ms) begin transaction
594
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736279.540382 WHERE "trees"."id" = 9
595
-  (0.7ms) commit transaction
596
- Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND (biggest = 't') LIMIT 1 [["forest_id", 6]]
597
-  (0.0ms) begin transaction
598
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
599
-  (0.9ms) commit transaction
600
-  (0.1ms) begin transaction
601
- SQL (0.3ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 7]]
602
-  (1.1ms) commit transaction
603
-  (0.1ms) begin transaction
604
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736279.550229 WHERE "trees"."id" = 10
605
-  (0.8ms) commit transaction
606
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 7]]
607
-  (0.1ms) begin transaction
608
- SQL (0.4ms) INSERT INTO "forests" DEFAULT VALUES
609
-  (0.9ms) commit transaction
610
-  (0.1ms) begin transaction
611
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 8]]
612
-  (0.7ms) commit transaction
597
+ SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 3 [["forest_id", 1]]
598
+  (0.6ms) commit transaction
599
+ Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 3]]
600
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 1]]
613
601
   (0.1ms) begin transaction
614
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736279.561455 WHERE "trees"."id" = 11
615
-  (0.6ms) commit transaction
602
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
603
+  (0.5ms) commit transaction
616
604
   (0.0ms) begin transaction
617
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 8]]
618
-  (0.6ms) commit transaction
619
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 11 LIMIT 1 [["forest_id", 8]]
620
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 12 LIMIT 1 [["forest_id", 8]]
605
+ SQL (0.1ms) UPDATE "forests" SET "deleted_at" = 1423327397.315529 WHERE "forests"."id" = 2
606
+  (0.4ms) commit transaction
621
607
   (0.0ms) begin transaction
622
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
623
-  (0.6ms) commit transaction
608
+ SQL (0.1ms) INSERT INTO "parks" DEFAULT VALUES
609
+  (0.5ms) commit transaction
624
610
   (0.0ms) begin transaction
625
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.569091 WHERE "integer_models"."id" = 22
626
-  (0.7ms) commit transaction
627
-  (0.0ms) begin transaction
628
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
629
-  (1.0ms) commit transaction
630
-  (0.1ms) begin transaction
631
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.573106 WHERE "integer_models"."id" = 23
611
+ SQL (0.1ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 4 [["forest_id", 2]]
632
612
   (0.5ms) commit transaction
613
+ Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 4]]
614
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 2]]
633
615
   (0.0ms) begin transaction
634
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
635
-  (0.0ms) commit transaction
616
+ SQL (0.1ms) INSERT INTO "parks" DEFAULT VALUES
617
+  (0.7ms) commit transaction
636
618
   (0.0ms) begin transaction
637
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736280.0 WHERE "decimal_models"."id" = 4
638
-  (0.0ms) commit transaction
619
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 5]]
620
+  (0.6ms) commit transaction
639
621
   (0.0ms) begin transaction
640
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
641
-  (0.0ms) commit transaction
642
-  (0.0ms) begin transaction
643
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736280.0 WHERE "integer_models"."id" = 24
644
-  (0.0ms) commit transaction
622
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423327397.324022 WHERE "trees"."id" = 4
623
+  (0.6ms) commit transaction
624
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 5]]
645
625
   (0.0ms) begin transaction
646
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
647
-  (0.0ms) commit transaction
626
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
627
+  (0.7ms) commit transaction
648
628
   (0.0ms) begin transaction
649
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736279.583229 WHERE "decimal_models"."id" = 5
650
-  (0.0ms) commit transaction
629
+ SQL (0.1ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 6]]
630
+  (0.6ms) commit transaction
651
631
   (0.0ms) begin transaction
652
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
653
-  (0.0ms) commit transaction
632
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327397.330278 WHERE "trees"."id" = 5
633
+  (0.6ms) commit transaction
634
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 6]]
635
+  (0.0ms) begin transaction
636
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
637
+  (0.7ms) commit transaction
654
638
   (0.0ms) begin transaction
655
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.583229 WHERE "integer_models"."id" = 25
656
-  (0.0ms) commit transaction
657
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 5
658
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 25
639
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
640
+  (0.6ms) commit transaction
659
641
   (0.0ms) begin transaction
660
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
642
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423327397.336934 WHERE "trees"."id" = 6
661
643
   (0.7ms) commit transaction
662
-  (0.1ms) begin transaction
663
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.595192 WHERE "integer_models"."id" = 26
664
-  (0.7ms) commit transaction
644
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 3]]
665
645
   (0.0ms) begin transaction
666
- SQL (0.2ms) INSERT INTO "decimal_models" DEFAULT VALUES
667
-  (0.8ms) commit transaction
646
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
647
+  (0.7ms) commit transaction
668
648
   (0.0ms) begin transaction
669
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
670
-  (0.8ms) commit transaction
671
-  (0.1ms) begin transaction
672
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.601341 WHERE "integer_models"."id" = 27
673
-  (0.8ms) commit transaction
649
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
650
+  (0.6ms) commit transaction
651
+  (0.0ms) begin transaction
652
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327397.342653 WHERE "trees"."id" = 7
653
+  (0.5ms) commit transaction
674
654
   (0.0ms) begin transaction
675
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
676
-  (1.0ms) commit transaction
677
-  (0.1ms) begin transaction
678
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.605449 WHERE "integer_models"."id" = 28
679
-  (0.8ms) commit transaction
655
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
656
+  (0.6ms) commit transaction
657
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 7 LIMIT 1 [["forest_id", 4]]
658
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 8 LIMIT 1 [["forest_id", 4]]
659
+  (0.0ms) begin transaction
660
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
661
+  (0.7ms) commit transaction
680
662
   (0.0ms) begin transaction
681
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
663
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423327397.349301 WHERE "forests"."id" = 5
682
664
   (0.7ms) commit transaction
683
665
   (0.0ms) begin transaction
684
- SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 29]]
685
-  (0.8ms) commit transaction
686
-  (0.1ms) begin transaction
687
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
688
-  (0.9ms) commit transaction
689
-  (0.1ms) begin transaction
690
- SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 30]]
691
-  (1.0ms) commit transaction
692
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 30
693
-  (0.0ms) begin transaction
694
- SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
695
-  (0.9ms) commit transaction
696
-  (0.1ms) begin transaction
697
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.617496 WHERE "integer_models"."id" = 31
698
-  (0.9ms) commit transaction
699
- SQL (1.0ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 31
700
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 31
666
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 5]]
667
+  (0.6ms) commit transaction
668
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 5]]
701
669
   (0.0ms) begin transaction
702
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
703
-  (0.7ms) commit transaction
704
-  (0.1ms) begin transaction
705
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736279.623394 WHERE "integer_models"."id" = 32
706
-  (0.7ms) commit transaction
707
- SQL (1.1ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 32
708
-  (9.4ms) DROP TABLE "decimal_models"
709
-  (1.5ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer)
710
-  (1.1ms) DROP TABLE "integer_models"
711
-  (1.2ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
712
-  (1.1ms) DROP TABLE "forests"
713
-  (1.2ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
714
-  (1.2ms) DROP TABLE "trees"
715
-  (1.0ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
716
-  (0.9ms) DROP TABLE "parks"
717
-  (0.9ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer)
718
-  (0.1ms) SELECT version FROM "schema_migrations"
719
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20141216212608')
720
-  (0.1ms) begin transaction
721
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
670
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
722
671
   (0.7ms) commit transaction
723
-  (0.1ms) begin transaction
724
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.1231 WHERE "integer_models"."id" = 1
725
-  (0.7ms) commit transaction
726
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 1
727
-  (0.1ms) SELECT deleted_at FROM "integer_models" WHERE id = 1
728
-  (0.1ms) begin transaction
729
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
730
-  (1.0ms) commit transaction
731
-  (0.1ms) begin transaction
732
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.132141 WHERE "integer_models"."id" = 2
733
-  (0.7ms) commit transaction
734
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 2
735
-  (0.1ms) begin transaction
736
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
672
+  (0.0ms) begin transaction
673
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423327397.355624 WHERE "forests"."id" = 6
737
674
   (0.6ms) commit transaction
738
675
   (0.0ms) begin transaction
739
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.137235 WHERE "integer_models"."id" = 3
676
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 6]]
740
677
   (0.6ms) commit transaction
741
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 3
742
-  (0.1ms) begin transaction
743
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
678
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 6]]
679
+  (0.0ms) begin transaction
680
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
744
681
   (0.6ms) commit transaction
745
682
   (0.0ms) begin transaction
746
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.141134 WHERE "integer_models"."id" = 4
747
-  (0.5ms) commit transaction
748
- SQL (1.4ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 4
749
-  (0.1ms) begin transaction
750
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
751
-  (0.7ms) commit transaction
683
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 7]]
684
+  (0.6ms) commit transaction
752
685
   (0.0ms) begin transaction
753
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.177756 WHERE "integer_models"."id" = 5
754
-  (0.5ms) commit transaction
686
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423327397.363395 WHERE "trees"."id" = 11
687
+  (0.6ms) commit transaction
688
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 7]]
689
+  (0.0ms) begin transaction
690
+ SQL (0.1ms) INSERT INTO "forests" DEFAULT VALUES
691
+  (0.7ms) commit transaction
755
692
   (0.0ms) begin transaction
756
- SQL (0.3ms) INSERT INTO "decimal_models" DEFAULT VALUES
693
+ SQL (0.1ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 8]]
757
694
   (0.6ms) commit transaction
758
695
   (0.0ms) begin transaction
696
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423327397.368924 WHERE "trees"."id" = 12
697
+  (0.6ms) commit transaction
698
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 8]]
699
+  (1.0ms) DROP TABLE "decimal_models"
700
+  (0.8ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer)
701
+  (0.8ms) DROP TABLE "integer_models"
702
+  (0.8ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
703
+  (0.8ms) DROP TABLE "forests"
704
+  (0.9ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
705
+  (0.9ms) DROP TABLE "trees"
706
+  (0.8ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
707
+  (0.8ms) DROP TABLE "parks"
708
+  (0.6ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer)
709
+  (0.1ms) SELECT version FROM "schema_migrations"
710
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150207090107')
711
+  (0.0ms) begin transaction
759
712
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
760
713
   (0.7ms) commit transaction
761
714
   (0.0ms) begin transaction
762
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.188813 WHERE "integer_models"."id" = 6
715
+ SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.419708 WHERE "integer_models"."id" = 1
763
716
   (0.6ms) commit transaction
764
-  (0.0ms) begin transaction
765
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
766
-  (0.6ms) commit transaction
717
+ IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
718
+  (0.1ms) begin transaction
719
+ SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
720
+  (0.8ms) commit transaction
721
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
767
722
   (0.0ms) begin transaction
768
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.192137 WHERE "integer_models"."id" = 7
723
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
724
+  (0.7ms) commit transaction
725
+  (0.0ms) begin transaction
726
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.429273 WHERE "integer_models"."id" = 3
727
+  (0.7ms) commit transaction
728
+  (0.1ms) begin transaction
729
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
769
730
   (0.5ms) commit transaction
770
731
   (0.0ms) begin transaction
771
732
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
772
733
   (0.0ms) commit transaction
773
-  (0.0ms) begin transaction
774
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736369.193829 WHERE "decimal_models"."id" = 2
775
-  (0.0ms) commit transaction
734
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423328467.0 WHERE "decimal_models"."id" = 1
776
735
   (0.0ms) begin transaction
777
736
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
778
737
   (0.0ms) commit transaction
779
-  (0.0ms) begin transaction
780
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.193829 WHERE "integer_models"."id" = 8
781
-  (0.0ms) commit transaction
782
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 2
783
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 8
738
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.0 WHERE "integer_models"."id" = 5
784
739
   (0.0ms) begin transaction
785
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
786
-  (0.6ms) commit transaction
787
-  (0.0ms) begin transaction
788
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.205665 WHERE "integer_models"."id" = 9
789
-  (0.6ms) commit transaction
790
-  (0.1ms) begin transaction
791
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
792
-  (0.8ms) commit transaction
793
-  (0.0ms) begin transaction
794
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.208914 WHERE "integer_models"."id" = 10
795
-  (0.9ms) commit transaction
740
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
741
+  (0.7ms) commit transaction
742
+ SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.446186 WHERE "integer_models"."id" = 6
743
+  (0.0ms) begin transaction
744
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
745
+  (0.7ms) commit transaction
746
+ SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.448623 WHERE "integer_models"."id" = 7
796
747
   (0.0ms) begin transaction
797
748
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
798
749
   (0.0ms) commit transaction
799
-  (0.0ms) begin transaction
800
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736369.0 WHERE "decimal_models"."id" = 3
801
-  (0.0ms) commit transaction
750
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423328467.449967 WHERE "decimal_models"."id" = 2
802
751
   (0.0ms) begin transaction
803
752
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
804
753
   (0.0ms) commit transaction
805
-  (0.0ms) begin transaction
806
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.0 WHERE "integer_models"."id" = 11
807
-  (0.0ms) commit transaction
808
-  (0.1ms) begin transaction
809
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
810
-  (1.0ms) commit transaction
811
-  (0.1ms) begin transaction
812
- SQL (0.4ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 12]]
813
-  (0.7ms) commit transaction
814
-  (0.1ms) begin transaction
815
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
816
-  (0.9ms) commit transaction
817
-  (0.0ms) begin transaction
818
- SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 13]]
819
-  (1.0ms) commit transaction
820
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 13
821
-  (0.0ms) begin transaction
822
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
823
-  (0.7ms) commit transaction
754
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.449967 WHERE "integer_models"."id" = 8
755
+  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 2
756
+  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 8
824
757
   (0.0ms) begin transaction
825
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.230528 WHERE "integer_models"."id" = 14
826
-  (0.5ms) commit transaction
827
- SQL (0.8ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 14
828
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 14
829
-  (0.1ms) begin transaction
830
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
831
-  (0.7ms) commit transaction
832
-  (0.1ms) begin transaction
833
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.235312 WHERE "integer_models"."id" = 15
834
-  (0.5ms) commit transaction
835
- SQL (0.6ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 15
836
-  (0.1ms) begin transaction
837
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
838
-  (0.5ms) commit transaction
839
- SQL (0.6ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.239541 WHERE "integer_models"."id" = 16
758
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
759
+  (0.6ms) commit transaction
760
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.456378 WHERE "integer_models"."id" = 9
840
761
   (0.0ms) begin transaction
841
- SQL (0.2ms) INSERT INTO "decimal_models" DEFAULT VALUES
762
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
763
+  (0.6ms) commit transaction
764
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.458792 WHERE "integer_models"."id" = 10
765
+  (0.0ms) begin transaction
766
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
842
767
   (0.7ms) commit transaction
843
-  (0.1ms) begin transaction
844
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
845
-  (0.9ms) commit transaction
846
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.245803 WHERE "integer_models"."id" = 17
847
-  (0.1ms) begin transaction
848
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
849
-  (0.9ms) commit transaction
850
- SQL (1.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.249766 WHERE "integer_models"."id" = 18
851
-  (0.0ms) begin transaction
852
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
853
-  (0.0ms) commit transaction
854
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736369.25204 WHERE "decimal_models"."id" = 5
855
-  (0.0ms) begin transaction
856
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
857
-  (0.0ms) commit transaction
858
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.25204 WHERE "integer_models"."id" = 19
859
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 5
860
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 19
861
-  (0.1ms) begin transaction
862
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
863
-  (1.0ms) commit transaction
864
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.263729 WHERE "integer_models"."id" = 20
865
-  (0.1ms) begin transaction
866
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
867
-  (0.8ms) commit transaction
868
- SQL (1.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.267672 WHERE "integer_models"."id" = 21
869
-  (0.0ms) begin transaction
870
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
871
-  (0.0ms) commit transaction
872
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418736369.0 WHERE "decimal_models"."id" = 6
873
-  (0.0ms) begin transaction
874
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
875
-  (0.0ms) commit transaction
876
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.0 WHERE "integer_models"."id" = 22
877
-  (0.1ms) begin transaction
878
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
879
-  (0.7ms) commit transaction
880
- SQL (0.8ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 23
881
-  (0.1ms) begin transaction
882
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
883
-  (0.9ms) commit transaction
884
- SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 24
885
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 24
768
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.461462 WHERE "integer_models"."id" = 11
886
769
   (0.1ms) begin transaction
887
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
770
+ SQL (0.1ms) INSERT INTO "decimal_models" DEFAULT VALUES
888
771
   (0.6ms) commit transaction
889
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.290256 WHERE "integer_models"."id" = 25
890
- SQL (0.8ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 25
891
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 25
892
-  (0.1ms) begin transaction
893
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
894
-  (0.5ms) commit transaction
895
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.294864 WHERE "integer_models"."id" = 26
896
- SQL (0.8ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 26
897
-  (0.1ms) begin transaction
898
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
899
-  (0.5ms) commit transaction
900
-  (0.0ms) begin transaction
901
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.299294 WHERE "integer_models"."id" = 27
902
-  (0.5ms) commit transaction
903
-  (0.1ms) begin transaction
904
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
905
-  (0.6ms) commit transaction
906
- IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models"
907
-  (0.1ms) begin transaction
772
+  (0.0ms) begin transaction
908
773
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
774
+  (0.7ms) commit transaction
775
+ SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 12
776
+  (0.0ms) begin transaction
777
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
909
778
   (0.6ms) commit transaction
779
+ SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 13
780
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 13
910
781
   (0.0ms) begin transaction
911
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.307054 WHERE "integer_models"."id" = 29
782
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
912
783
   (0.6ms) commit transaction
913
-  (0.1ms) begin transaction
914
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
915
-  (0.8ms) commit transaction
916
-  (0.0ms) begin transaction
917
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
918
-  (0.9ms) commit transaction
919
-  (0.1ms) begin transaction
920
- SQL (0.2ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 1]]
921
-  (1.0ms) commit transaction
922
-  (0.1ms) begin transaction
923
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.32971 WHERE "trees"."id" = 1
924
-  (0.9ms) commit transaction
925
- Tree Exists (0.4ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 1]]
926
-  (0.1ms) begin transaction
927
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
928
-  (0.9ms) commit transaction
929
-  (0.1ms) begin transaction
930
- SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
931
-  (0.9ms) commit transaction
932
-  (0.1ms) begin transaction
933
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418736369.388599 WHERE "trees"."id" = 2
934
-  (0.9ms) commit transaction
935
-  (0.1ms) begin transaction
936
- SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
937
-  (0.9ms) commit transaction
938
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 2 LIMIT 1 [["park_id", 2]]
939
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 3 LIMIT 1 [["park_id", 2]]
784
+ SQL (0.5ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.470404 WHERE "integer_models"."id" = 14
940
785
   (0.0ms) begin transaction
941
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
942
-  (0.9ms) commit transaction
786
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
787
+  (0.6ms) commit transaction
943
788
   (0.0ms) begin transaction
944
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736369.407471 WHERE "forests"."id" = 1
945
-  (0.8ms) commit transaction
789
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.472652 WHERE "integer_models"."id" = 15
790
+  (0.6ms) commit transaction
946
791
   (0.0ms) begin transaction
947
- SQL (0.4ms) INSERT INTO "parks" DEFAULT VALUES
948
-  (0.9ms) commit transaction
949
-  (0.1ms) begin transaction
950
- SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 3 [["forest_id", 1]]
951
-  (0.9ms) commit transaction
952
- Park Load (0.2ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 3]]
953
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 1]]
954
-  (0.1ms) begin transaction
955
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
792
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
793
+  (0.5ms) commit transaction
794
+ IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models"
795
+  (0.0ms) begin transaction
796
+ SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
956
797
   (0.7ms) commit transaction
957
798
   (0.0ms) begin transaction
958
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736369.422723 WHERE "forests"."id" = 2
959
-  (0.6ms) commit transaction
799
+ SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 1]]
800
+  (0.7ms) commit transaction
960
801
   (0.0ms) begin transaction
961
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
802
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423328467.487401 WHERE "trees"."id" = 1
962
803
   (0.6ms) commit transaction
804
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 1]]
805
+  (0.0ms) begin transaction
806
+ SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
807
+  (0.8ms) commit transaction
963
808
   (0.0ms) begin transaction
964
- SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 4 [["forest_id", 2]]
809
+ SQL (0.1ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
965
810
   (0.6ms) commit transaction
966
- Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 4]]
967
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 2]]
968
-  (0.1ms) begin transaction
969
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
811
+  (0.0ms) begin transaction
812
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423328467.523846 WHERE "trees"."id" = 2
970
813
   (0.6ms) commit transaction
971
814
   (0.0ms) begin transaction
972
- SQL (0.3ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 5]]
815
+ SQL (0.1ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 2]]
973
816
   (0.5ms) commit transaction
817
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 2 LIMIT 1 [["park_id", 2]]
818
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 3 LIMIT 1 [["park_id", 2]]
974
819
   (0.0ms) begin transaction
975
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.436463 WHERE "trees"."id" = 4
976
-  (0.5ms) commit transaction
977
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND (biggest = 't') LIMIT 1 [["park_id", 5]]
978
-  (0.1ms) begin transaction
979
820
  SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
980
-  (1.5ms) commit transaction
821
+  (0.8ms) commit transaction
822
+  (0.0ms) begin transaction
823
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 3]]
824
+  (0.5ms) commit transaction
825
+  (0.0ms) begin transaction
826
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423328467.53201 WHERE "trees"."id" = 4
827
+  (0.7ms) commit transaction
828
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 3]]
829
+  (0.0ms) begin transaction
830
+ SQL (0.1ms) INSERT INTO "parks" DEFAULT VALUES
831
+  (0.7ms) commit transaction
981
832
   (0.0ms) begin transaction
982
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 6]]
833
+ SQL (0.1ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 4]]
983
834
   (0.7ms) commit transaction
984
835
   (0.0ms) begin transaction
985
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.447095 WHERE "trees"."id" = 5
986
-  (0.5ms) commit transaction
987
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND (biggest = 't') LIMIT 1 [["park_id", 6]]
988
-  (0.1ms) begin transaction
836
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423328467.538756 WHERE "trees"."id" = 5
837
+  (0.7ms) commit transaction
838
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 4]]
839
+  (0.0ms) begin transaction
989
840
  SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
990
841
   (0.7ms) commit transaction
991
842
   (0.0ms) begin transaction
992
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
993
-  (0.9ms) commit transaction
994
-  (0.1ms) begin transaction
995
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.456871 WHERE "trees"."id" = 6
996
-  (1.0ms) commit transaction
997
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 3]]
998
-  (0.1ms) begin transaction
999
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1000
-  (0.9ms) commit transaction
843
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423328467.546821 WHERE "forests"."id" = 1
844
+  (0.7ms) commit transaction
845
+  (0.0ms) begin transaction
846
+ SQL (0.1ms) INSERT INTO "parks" DEFAULT VALUES
847
+  (0.7ms) commit transaction
1001
848
   (0.0ms) begin transaction
1002
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
1003
-  (0.6ms) commit transaction
849
+ SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 5 [["forest_id", 1]]
850
+  (0.7ms) commit transaction
851
+ Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 5]]
852
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 1]]
853
+  (0.0ms) begin transaction
854
+ SQL (0.1ms) INSERT INTO "forests" DEFAULT VALUES
855
+  (0.7ms) commit transaction
856
+  (0.0ms) begin transaction
857
+ SQL (0.1ms) UPDATE "forests" SET "deleted_at" = 1423328467.55542 WHERE "forests"."id" = 2
858
+  (0.4ms) commit transaction
1004
859
   (0.0ms) begin transaction
1005
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.4659 WHERE "trees"."id" = 7
860
+ SQL (0.1ms) INSERT INTO "parks" DEFAULT VALUES
1006
861
   (0.7ms) commit transaction
1007
862
   (0.0ms) begin transaction
1008
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
863
+ SQL (0.1ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 6 [["forest_id", 2]]
1009
864
   (0.7ms) commit transaction
1010
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 7 LIMIT 1 [["forest_id", 4]]
1011
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 8 LIMIT 1 [["forest_id", 4]]
865
+ Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 6]]
866
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 2]]
1012
867
   (0.0ms) begin transaction
1013
868
  SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1014
-  (0.9ms) commit transaction
869
+  (0.7ms) commit transaction
1015
870
   (0.0ms) begin transaction
1016
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736369.474305 WHERE "forests"."id" = 5
1017
-  (0.9ms) commit transaction
1018
-  (0.1ms) begin transaction
1019
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 5]]
1020
-  (0.8ms) commit transaction
1021
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 5]]
1022
-  (0.1ms) begin transaction
871
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
872
+  (0.7ms) commit transaction
873
+  (0.0ms) begin transaction
874
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423328467.565128 WHERE "trees"."id" = 6
875
+  (0.7ms) commit transaction
876
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 3]]
877
+  (0.0ms) begin transaction
1023
878
  SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1024
879
   (0.6ms) commit transaction
1025
880
   (0.0ms) begin transaction
1026
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418736369.484058 WHERE "forests"."id" = 6
881
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
1027
882
   (0.6ms) commit transaction
1028
883
   (0.0ms) begin transaction
1029
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 6]]
1030
-  (0.6ms) commit transaction
1031
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 6]]
1032
-  (0.1ms) begin transaction
1033
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1034
-  (0.6ms) commit transaction
1035
-  (0.1ms) begin transaction
1036
- SQL (0.3ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 7]]
1037
-  (0.5ms) commit transaction
1038
-  (0.0ms) begin transaction
1039
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.494392 WHERE "trees"."id" = 11
884
+ SQL (0.1ms) UPDATE "trees" SET "deleted_at" = 1423328467.570954 WHERE "trees"."id" = 7
1040
885
   (0.5ms) commit transaction
1041
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND (biggest = 't') LIMIT 1 [["forest_id", 7]]
1042
-  (0.1ms) begin transaction
1043
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1044
-  (0.6ms) commit transaction
1045
886
   (0.0ms) begin transaction
1046
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 8]]
887
+ SQL (0.1ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
1047
888
   (0.6ms) commit transaction
889
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 7 LIMIT 1 [["forest_id", 4]]
890
+ Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 8 LIMIT 1 [["forest_id", 4]]
1048
891
   (0.0ms) begin transaction
1049
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418736369.503295 WHERE "trees"."id" = 12
1050
-  (0.6ms) commit transaction
1051
- Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND (biggest = 't') LIMIT 1 [["forest_id", 8]]
1052
-  (0.0ms) begin transaction
1053
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
892
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1054
893
   (0.5ms) commit transaction
1055
894
   (0.0ms) begin transaction
1056
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418736369.50775 WHERE "integer_models"."id" = 31
1057
-  (0.6ms) commit transaction
1058
- IntegerModel Load (0.1ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
1059
-  (0.1ms) begin transaction
1060
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1061
-  (1.4ms) commit transaction
1062
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
1063
-  (1.4ms) DROP TABLE "decimal_models"
1064
-  (1.0ms) CREATE TABLE "decimal_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" decimal DEFAULT 0, "integer_model_id" integer)
1065
-  (0.9ms) DROP TABLE "integer_models"
1066
-  (0.8ms) CREATE TABLE "integer_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
1067
-  (1.0ms) DROP TABLE "forests"
1068
-  (1.2ms) CREATE TABLE "forests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0)
1069
-  (1.1ms) DROP TABLE "trees"
1070
-  (1.0ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "deleted_at" integer DEFAULT 0, "forest_id" integer, "park_id" integer, "biggest" boolean DEFAULT 'f')
1071
-  (1.0ms) DROP TABLE "parks"
1072
-  (1.2ms) CREATE TABLE "parks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "forest_id" integer)
1073
-  (0.1ms) SELECT version FROM "schema_migrations"
1074
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141217163758')
1075
-  (0.1ms) begin transaction
1076
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1077
-  (0.9ms) commit transaction
1078
-  (0.1ms) begin transaction
1079
- SQL (0.7ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 1]]
1080
-  (1.0ms) commit transaction
1081
-  (0.1ms) begin transaction
1082
- SQL (0.4ms) UPDATE "trees" SET "deleted_at" = 1418805478.849537 WHERE "trees"."id" = 1
1083
-  (1.0ms) commit transaction
1084
- Tree Load (0.3ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 1]]
1085
-  (0.1ms) begin transaction
1086
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1087
-  (0.9ms) commit transaction
1088
-  (0.1ms) begin transaction
1089
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 2]]
1090
-  (1.0ms) commit transaction
1091
-  (0.1ms) begin transaction
1092
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418805478.876453 WHERE "trees"."id" = 2
1093
-  (0.9ms) commit transaction
1094
- Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 2]]
1095
-  (0.1ms) begin transaction
1096
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1097
-  (0.8ms) commit transaction
1098
-  (0.1ms) begin transaction
1099
- SQL (0.3ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
1100
-  (0.8ms) commit transaction
1101
-  (0.0ms) begin transaction
1102
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418805478.894057 WHERE "trees"."id" = 3
1103
-  (1.0ms) commit transaction
1104
-  (0.1ms) begin transaction
1105
- SQL (0.3ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 3]]
1106
-  (0.8ms) commit transaction
1107
- Tree Exists (0.3ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 3 LIMIT 1 [["forest_id", 3]]
1108
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."id" = 4 LIMIT 1 [["forest_id", 3]]
1109
-  (0.1ms) begin transaction
1110
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1111
-  (0.9ms) commit transaction
1112
-  (0.1ms) begin transaction
1113
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 4]]
1114
-  (0.9ms) commit transaction
1115
-  (0.0ms) begin transaction
1116
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418805478.922431 WHERE "trees"."id" = 5
1117
-  (0.9ms) commit transaction
1118
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? LIMIT 1 [["forest_id", 4]]
1119
-  (0.1ms) begin transaction
1120
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1121
-  (0.8ms) commit transaction
1122
-  (0.1ms) begin transaction
1123
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418805478.956316 WHERE "forests"."id" = 5
1124
-  (0.7ms) commit transaction
1125
-  (0.0ms) begin transaction
1126
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 5]]
1127
-  (0.6ms) commit transaction
1128
- Forest Load (0.2ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 5]]
1129
-  (0.1ms) begin transaction
1130
- SQL (0.3ms) INSERT INTO "forests" DEFAULT VALUES
1131
-  (0.7ms) commit transaction
1132
-  (0.1ms) begin transaction
1133
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418805478.966366 WHERE "forests"."id" = 6
895
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 5]]
1134
896
   (0.6ms) commit transaction
1135
897
   (0.0ms) begin transaction
1136
- SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 6]]
898
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423328467.578242 WHERE "trees"."id" = 9
1137
899
   (0.6ms) commit transaction
1138
- Forest Load (0.2ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 6]]
1139
-  (0.0ms) begin transaction
1140
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
1141
-  (0.8ms) commit transaction
1142
-  (0.1ms) begin transaction
1143
- SQL (0.2ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 1]]
1144
-  (0.9ms) commit transaction
900
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 5]]
1145
901
   (0.0ms) begin transaction
1146
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418805478.981244 WHERE "trees"."id" = 8
1147
-  (0.9ms) commit transaction
1148
- Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 1]]
1149
-  (0.1ms) begin transaction
1150
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
1151
-  (0.9ms) commit transaction
902
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
903
+  (0.7ms) commit transaction
1152
904
   (0.0ms) begin transaction
1153
- SQL (0.3ms) INSERT INTO "trees" ("biggest", "park_id") VALUES (?, ?) [["biggest", true], ["park_id", 2]]
1154
-  (0.7ms) commit transaction
905
+ SQL (0.2ms) INSERT INTO "trees" ("biggest", "forest_id") VALUES (?, ?) [["biggest", true], ["forest_id", 6]]
906
+  (0.8ms) commit transaction
1155
907
   (0.0ms) begin transaction
1156
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418805478.989703 WHERE "trees"."id" = 9
908
+ SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1423328467.584412 WHERE "trees"."id" = 10
1157
909
   (0.7ms) commit transaction
1158
- Tree Load (0.2ms) SELECT "trees".* FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["park_id", 2]]
1159
-  (0.1ms) begin transaction
1160
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
1161
-  (0.9ms) commit transaction
1162
-  (0.1ms) begin transaction
1163
- SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 3]]
1164
-  (0.9ms) commit transaction
1165
-  (0.1ms) begin transaction
1166
- SQL (0.3ms) UPDATE "trees" SET "deleted_at" = 1418805478.999976 WHERE "trees"."id" = 10
1167
-  (0.9ms) commit transaction
1168
-  (0.1ms) begin transaction
1169
- SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 3]]
1170
-  (0.9ms) commit transaction
1171
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 10 LIMIT 1 [["park_id", 3]]
1172
- Tree Exists (0.1ms) SELECT 1 AS one FROM "trees" WHERE "trees"."park_id" = ? AND "trees"."id" = 11 LIMIT 1 [["park_id", 3]]
910
+ Tree Load (0.1ms) SELECT "trees".* FROM "trees" WHERE "trees"."forest_id" = ? AND "trees"."biggest" = 't' LIMIT 1 [["forest_id", 6]]
1173
911
   (0.1ms) begin transaction
1174
- SQL (0.3ms) INSERT INTO "parks" DEFAULT VALUES
1175
-  (0.9ms) commit transaction
912
+ SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
913
+  (0.7ms) commit transaction
1176
914
   (0.0ms) begin transaction
1177
- SQL (0.3ms) INSERT INTO "trees" ("park_id") VALUES (?) [["park_id", 4]]
915
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423328467.58897 WHERE "forests"."id" = 7
1178
916
   (0.6ms) commit transaction
1179
917
   (0.0ms) begin transaction
1180
- SQL (0.2ms) UPDATE "trees" SET "deleted_at" = 1418805479.013805 WHERE "trees"."id" = 12
1181
-  (0.6ms) commit transaction
1182
- Tree Exists (0.2ms) SELECT 1 AS one FROM "trees" WHERE ("trees".deleted_at = 0) AND "trees"."park_id" = ? LIMIT 1 [["park_id", 4]]
918
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 7]]
919
+  (0.7ms) commit transaction
920
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 7]]
1183
921
   (0.1ms) begin transaction
1184
922
  SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1185
-  (0.6ms) commit transaction
1186
-  (0.0ms) begin transaction
1187
- SQL (0.3ms) UPDATE "forests" SET "deleted_at" = 1418805479.02001 WHERE "forests"."id" = 7
1188
-  (0.5ms) commit transaction
1189
-  (0.1ms) begin transaction
1190
- SQL (0.4ms) INSERT INTO "parks" DEFAULT VALUES
1191
923
   (0.7ms) commit transaction
1192
924
   (0.0ms) begin transaction
1193
- SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 5 [["forest_id", 7]]
925
+ SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1423328467.595415 WHERE "forests"."id" = 8
1194
926
   (0.6ms) commit transaction
1195
- Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 5]]
1196
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 7]]
1197
927
   (0.0ms) begin transaction
1198
- SQL (0.2ms) INSERT INTO "forests" DEFAULT VALUES
1199
-  (0.5ms) commit transaction
928
+ SQL (0.2ms) INSERT INTO "trees" ("forest_id") VALUES (?) [["forest_id", 8]]
929
+  (0.6ms) commit transaction
930
+ Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE "forests"."id" = ? LIMIT 1 [["id", 8]]
931
+  (0.0ms) begin transaction
932
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
933
+  (0.7ms) commit transaction
1200
934
   (0.0ms) begin transaction
1201
- SQL (0.2ms) UPDATE "forests" SET "deleted_at" = 1418805479.031347 WHERE "forests"."id" = 8
935
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.600551 WHERE "integer_models"."id" = 17
1202
936
   (0.6ms) commit transaction
1203
-  (0.1ms) begin transaction
1204
- SQL (0.2ms) INSERT INTO "parks" DEFAULT VALUES
937
+  (0.0ms) begin transaction
938
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1205
939
   (0.6ms) commit transaction
1206
940
   (0.0ms) begin transaction
1207
- SQL (0.2ms) UPDATE "parks" SET "forest_id" = ? WHERE "parks"."id" = 6 [["forest_id", 8]]
941
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.603192 WHERE "integer_models"."id" = 18
1208
942
   (0.6ms) commit transaction
1209
- Park Load (0.1ms) SELECT "parks".* FROM "parks" WHERE "parks"."id" = ? LIMIT 1 [["id", 6]]
1210
- Forest Load (0.1ms) SELECT "forests".* FROM "forests" WHERE ("forests".deleted_at = 0) AND "forests"."id" = ? LIMIT 1 [["id", 8]]
1211
-  (0.1ms) begin transaction
1212
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
1213
-  (0.8ms) commit transaction
1214
-  (0.1ms) begin transaction
1215
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.045743 WHERE "integer_models"."id" = 1
1216
-  (1.0ms) commit transaction
1217
-  (0.1ms) begin transaction
1218
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1219
-  (0.8ms) commit transaction
1220
-  (0.1ms) begin transaction
1221
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.050546 WHERE "integer_models"."id" = 2
1222
-  (0.9ms) commit transaction
1223
-  (0.1ms) begin transaction
1224
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1225
-  (0.9ms) commit transaction
1226
-  (0.1ms) begin transaction
1227
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.055099 WHERE "integer_models"."id" = 3
1228
-  (0.9ms) commit transaction
1229
-  (0.1ms) begin transaction
1230
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1231
-  (1.0ms) commit transaction
1232
-  (0.1ms) begin transaction
1233
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.060178 WHERE "integer_models"."id" = 4
1234
-  (1.0ms) commit transaction
1235
-  (0.1ms) begin transaction
1236
- SQL (0.3ms) INSERT INTO "decimal_models" DEFAULT VALUES
1237
-  (1.0ms) commit transaction
943
+  (0.0ms) begin transaction
944
+ SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
945
+  (0.0ms) commit transaction
1238
946
   (0.0ms) begin transaction
1239
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
947
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423328467.604445 WHERE "decimal_models"."id" = 4
1240
948
   (0.0ms) commit transaction
1241
949
   (0.0ms) begin transaction
1242
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418805479.0 WHERE "decimal_models"."id" = 2
950
+ SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
1243
951
   (0.0ms) commit transaction
1244
952
   (0.0ms) begin transaction
1245
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
953
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.604445 WHERE "integer_models"."id" = 19
1246
954
   (0.0ms) commit transaction
955
+  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 4
956
+  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 19
1247
957
   (0.0ms) begin transaction
1248
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.0 WHERE "integer_models"."id" = 5
1249
-  (0.0ms) commit transaction
1250
-  (0.1ms) begin transaction
1251
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
958
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
959
+  (0.7ms) commit transaction
960
+  (0.0ms) begin transaction
961
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.612503 WHERE "integer_models"."id" = 20
1252
962
   (0.6ms) commit transaction
1253
963
   (0.0ms) begin transaction
1254
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.082751 WHERE "integer_models"."id" = 6
964
+ SQL (0.1ms) INSERT INTO "decimal_models" DEFAULT VALUES
1255
965
   (0.6ms) commit transaction
1256
966
   (0.0ms) begin transaction
1257
967
  SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
1258
968
   (0.0ms) commit transaction
1259
969
   (0.0ms) begin transaction
1260
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418805479.084215 WHERE "decimal_models"."id" = 3
970
+ SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1423328468.0 WHERE "decimal_models"."id" = 6
1261
971
   (0.0ms) commit transaction
1262
972
   (0.0ms) begin transaction
1263
973
  SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
1264
974
   (0.0ms) commit transaction
1265
975
   (0.0ms) begin transaction
1266
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.084215 WHERE "integer_models"."id" = 7
976
+ SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1423328468.0 WHERE "integer_models"."id" = 21
1267
977
   (0.0ms) commit transaction
1268
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 3
1269
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 7
1270
978
   (0.0ms) begin transaction
1271
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1272
-  (0.7ms) commit transaction
979
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
980
+  (0.5ms) commit transaction
1273
981
   (0.0ms) begin transaction
1274
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.094007 WHERE "integer_models"."id" = 8
1275
-  (0.5ms) commit transaction
1276
- SQL (0.7ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 8
982
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.621443 WHERE "integer_models"."id" = 22
983
+  (0.4ms) commit transaction
984
+  (0.0ms) begin transaction
985
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
986
+  (0.6ms) commit transaction
1277
987
   (0.0ms) begin transaction
1278
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
988
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.623771 WHERE "integer_models"."id" = 23
1279
989
   (0.5ms) commit transaction
1280
990
   (0.0ms) begin transaction
1281
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.097792 WHERE "integer_models"."id" = 9
991
+ SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1282
992
   (0.5ms) commit transaction
1283
- SQL (0.8ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 9
1284
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 9
1285
993
   (0.0ms) begin transaction
1286
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1287
-  (0.6ms) commit transaction
1288
-  (0.0ms) begin transaction
1289
- SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 10]]
1290
-  (0.7ms) commit transaction
1291
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 10
994
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.626324 WHERE "integer_models"."id" = 24
995
+  (0.7ms) commit transaction
1292
996
   (0.0ms) begin transaction
1293
997
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1294
-  (0.5ms) commit transaction
998
+  (0.6ms) commit transaction
1295
999
   (0.0ms) begin transaction
1296
- SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 11]]
1297
-  (0.6ms) commit transaction
1298
-  (0.1ms) begin transaction
1299
- SQL (0.5ms) INSERT INTO "integer_models" DEFAULT VALUES
1300
-  (0.7ms) commit transaction
1301
- SQL (0.9ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.109003 WHERE "integer_models"."id" = 12
1302
-  (0.1ms) begin transaction
1303
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1304
-  (0.8ms) commit transaction
1305
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.113082 WHERE "integer_models"."id" = 13
1000
+ SQL (0.2ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 25]]
1001
+  (0.5ms) commit transaction
1306
1002
   (0.0ms) begin transaction
1307
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1308
-  (1.0ms) commit transaction
1309
- SQL (1.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.11703 WHERE "integer_models"."id" = 14
1310
-  (0.1ms) begin transaction
1311
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1312
-  (0.9ms) commit transaction
1313
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.121614 WHERE "integer_models"."id" = 15
1314
-  (0.1ms) begin transaction
1315
- SQL (0.3ms) INSERT INTO "decimal_models" DEFAULT VALUES
1003
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
1316
1004
   (0.7ms) commit transaction
1317
1005
   (0.0ms) begin transaction
1318
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
1319
-  (0.0ms) commit transaction
1320
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418805479.0 WHERE "decimal_models"."id" = 5
1321
-  (0.0ms) begin transaction
1322
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
1323
-  (0.0ms) commit transaction
1324
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.0 WHERE "integer_models"."id" = 16
1325
-  (0.0ms) begin transaction
1326
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1327
-  (1.0ms) commit transaction
1328
- SQL (1.1ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.135503 WHERE "integer_models"."id" = 17
1329
-  (0.0ms) begin transaction
1330
- SQL (0.0ms) INSERT INTO "decimal_models" DEFAULT VALUES
1331
-  (0.0ms) commit transaction
1332
- SQL (0.0ms) UPDATE "decimal_models" SET "deleted_at" = 1418805479.137272 WHERE "decimal_models"."id" = 6
1006
+ SQL (0.1ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = ? [["id", 26]]
1007
+  (0.5ms) commit transaction
1008
+  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 26
1333
1009
   (0.0ms) begin transaction
1334
- SQL (0.0ms) INSERT INTO "integer_models" DEFAULT VALUES
1335
-  (0.0ms) commit transaction
1336
- SQL (0.0ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.137272 WHERE "integer_models"."id" = 18
1337
-  (0.0ms) SELECT deleted_at FROM "decimal_models" WHERE id = 6
1338
-  (0.0ms) SELECT deleted_at FROM "integer_models" WHERE id = 18
1339
-  (0.1ms) begin transaction
1340
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1010
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
1341
1011
   (0.6ms) commit transaction
1342
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.147189 WHERE "integer_models"."id" = 19
1343
- SQL (0.7ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 19
1344
-  (0.1ms) begin transaction
1345
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1346
-  (0.5ms) commit transaction
1347
- SQL (0.6ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.151164 WHERE "integer_models"."id" = 20
1348
- SQL (0.6ms) DELETE FROM "integer_models" WHERE "integer_models"."id" = 20
1349
-  (0.1ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 20
1350
-  (0.1ms) begin transaction
1351
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1012
+  (0.0ms) begin transaction
1013
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.634143 WHERE "integer_models"."id" = 27
1352
1014
   (0.6ms) commit transaction
1353
- SQL (1.0ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 21
1354
-  (0.2ms) SELECT COUNT(*) FROM "integer_models" WHERE id = 21
1355
1015
   (0.0ms) begin transaction
1356
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1357
-  (0.6ms) commit transaction
1358
- SQL (0.7ms) DELETE FROM "integer_models" WHERE ("integer_models".deleted_at = 0) AND "integer_models"."id" = 22
1016
+  (0.0ms) rollback transaction
1359
1017
   (0.0ms) begin transaction
1360
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1361
-  (0.5ms) commit transaction
1018
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
1019
+  (0.6ms) commit transaction
1020
+  (0.0ms) begin transaction
1021
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.637315 WHERE "integer_models"."id" = 28
1022
+  (0.6ms) commit transaction
1023
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 28
1362
1024
   (0.0ms) begin transaction
1363
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.162166 WHERE "integer_models"."id" = 23
1364
-  (0.5ms) commit transaction
1365
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 23
1366
-  (0.1ms) begin transaction
1367
1025
  SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1368
-  (0.5ms) commit transaction
1026
+  (0.6ms) commit transaction
1369
1027
   (0.0ms) begin transaction
1370
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.167145 WHERE "integer_models"."id" = 24
1371
-  (0.5ms) commit transaction
1372
- SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 24
1028
+ SQL (0.1ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.641214 WHERE "integer_models"."id" = 29
1029
+  (0.6ms) commit transaction
1030
+ SQL (0.5ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 29
1373
1031
   (0.0ms) begin transaction
1374
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1375
-  (0.5ms) commit transaction
1376
-  (0.0ms) begin transaction
1377
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.170829 WHERE "integer_models"."id" = 25
1378
-  (0.5ms) commit transaction
1379
- SQL (1.2ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 25
1380
-  (0.1ms) begin transaction
1381
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1382
-  (0.9ms) commit transaction
1383
-  (0.1ms) begin transaction
1384
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.177459 WHERE "integer_models"."id" = 26
1032
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
1385
1033
   (0.6ms) commit transaction
1386
- SQL (0.8ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 26
1387
-  (0.1ms) SELECT deleted_at FROM "integer_models" WHERE id = 26
1388
-  (0.0ms) begin transaction
1389
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1390
-  (0.8ms) commit transaction
1391
-  (0.1ms) begin transaction
1392
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.182726 WHERE "integer_models"."id" = 27
1393
-  (1.0ms) commit transaction
1394
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
1395
-  (0.1ms) begin transaction
1396
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1397
-  (0.7ms) commit transaction
1398
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models" WHERE (integer_models.deleted_at > 0)
1399
-  (0.1ms) begin transaction
1400
- SQL (0.3ms) INSERT INTO "integer_models" DEFAULT VALUES
1401
-  (0.9ms) commit transaction
1402
1034
   (0.0ms) begin transaction
1403
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1404
-  (1.0ms) commit transaction
1405
-  (0.1ms) begin transaction
1406
- SQL (0.3ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.195139 WHERE "integer_models"."id" = 30
1407
-  (0.9ms) commit transaction
1408
-  (0.1ms) begin transaction
1409
- SQL (0.4ms) INSERT INTO "integer_models" DEFAULT VALUES
1410
-  (0.9ms) commit transaction
1411
-  (0.1ms) begin transaction
1412
- SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1418805479.20257 WHERE "integer_models"."id" = 31
1413
-  (0.7ms) commit transaction
1035
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.64443 WHERE "integer_models"."id" = 30
1036
+  (0.6ms) commit transaction
1037
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 30
1414
1038
   (0.0ms) begin transaction
1415
- SQL (0.2ms) INSERT INTO "integer_models" DEFAULT VALUES
1416
-  (0.9ms) commit transaction
1417
- IntegerModel Load (0.2ms) SELECT "integer_models".* FROM "integer_models"
1039
+ SQL (0.1ms) INSERT INTO "integer_models" DEFAULT VALUES
1040
+  (0.7ms) commit transaction
1041
+  (0.0ms) begin transaction
1042
+ SQL (0.2ms) UPDATE "integer_models" SET "deleted_at" = 1423328467.648362 WHERE "integer_models"."id" = 31
1043
+  (0.8ms) commit transaction
1044
+ SQL (0.7ms) UPDATE "integer_models" SET "deleted_at" = 0 WHERE "integer_models"."id" = 31
1045
+  (0.1ms) SELECT deleted_at FROM "integer_models" WHERE id = 31