has_many_booleans 0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,64 @@
1
+ # J-_-L
2
+
3
+ # binary representation/bitset: store an array of indices in one decimal number
4
+
5
+ class Array
6
+ # Generates an integer representing all the set bits
7
+ def to_bri # to binary representation integer
8
+ self.inject(0){ |ret, cur| ret + 2**cur }
9
+ end
10
+ end
11
+
12
+ # binary representation/bitset: store an array of indices in one decimal number
13
+
14
+ class Integer
15
+ # Generates an array consisting of the set bit indexes.
16
+ def to_bra # to binary representation array
17
+ ret = []
18
+ i = 0
19
+ while self >= x = x ? x*2 : 1
20
+ ret << i if 0 < self[i] # ruby sugar: bit is set?
21
+ i+=1
22
+ end
23
+
24
+ ret
25
+ end
26
+
27
+ =begin other versions
28
+
29
+ # old one
30
+ def to_bra
31
+ # convert the decimal integer to binary form with to_s and base 2 and then
32
+ # check each char to add the current index to the array, if it is set
33
+ self.to_s(2).reverse.chars.each_with_index do |ele,index|
34
+ ret << index if ele == '1'
35
+ end
36
+ end
37
+
38
+ # cool one... but uses float :/
39
+ def to_bra
40
+ (0..Math.log(self)/Math.log(2)).select{ |e| 0<self & 2**e }
41
+ end
42
+
43
+ # same again (without float)
44
+ def to_bra
45
+ ret = []
46
+ i = 0
47
+ while self >= x = x ? x*2 : 1
48
+ ret << i if 0 < self & x
49
+ i+=1
50
+ end
51
+
52
+ ret
53
+ end
54
+
55
+ # faster, uses 1.9
56
+ def to_bra
57
+ self.to_s(2).reverse.bytes.each_with_index.select{|e,_|e == 49}.map &:pop
58
+ end
59
+
60
+ =end
61
+ end
62
+
63
+ # J-_-L
64
+
data/rails/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'has_many_booleans'
data/test/database.yml ADDED
@@ -0,0 +1,6 @@
1
+ sqlite:
2
+ :adapter: sqlite
3
+ :database: vendor/plugins/has_many_booleans/test/has_many_booleans_plugin.sqlite
4
+ sqlite3:
5
+ :adapter: sqlite3
6
+ :database: vendor/plugins/has_many_booleans/test/has_many_booleans_plugin.sqlite3
data/test/debug.log ADDED
@@ -0,0 +1,710 @@
1
+ # Logfile created on 2010-07-06 12:07:19 +0200 by logger.rb/20321
2
+ SQL (1.0ms) select sqlite_version(*)
3
+ SQL (1.1ms)  SELECT name
4
+ FROM sqlite_master
5
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6
+ 
7
+ SQL (161.0ms) CREATE TABLE "appends" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
8
+ SQL (1.1ms)  SELECT name
9
+ FROM sqlite_master
10
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
11
+ 
12
+ SQL (88.0ms) CREATE TABLE "append_nils" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
13
+ SQL (1.1ms)  SELECT name
14
+ FROM sqlite_master
15
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
16
+ 
17
+ SQL (102.2ms) CREATE TABLE "defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
18
+ SQL (1.2ms)  SELECT name
19
+ FROM sqlite_master
20
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
21
+ 
22
+ SQL (87.0ms) CREATE TABLE "many_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
23
+ SQL (1.8ms)  SELECT name
24
+ FROM sqlite_master
25
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
26
+ 
27
+ SQL (82.4ms) CREATE TABLE "no_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
28
+ SQL (1.8ms)  SELECT name
29
+ FROM sqlite_master
30
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
31
+ 
32
+ SQL (113.9ms) CREATE TABLE "hmbs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
33
+ SQL (1.7ms)  SELECT name
34
+ FROM sqlite_master
35
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
36
+ 
37
+ SQL (97.1ms) CREATE TABLE "suffix_nones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
38
+ SQL (1.7ms)  SELECT name
39
+ FROM sqlite_master
40
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
41
+ 
42
+ SQL (82.2ms) CREATE TABLE "suffix_question_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
43
+ SQL (2.5ms)  SELECT name
44
+ FROM sqlite_master
45
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
46
+ 
47
+ SQL (107.2ms) CREATE TABLE "suffix_equal_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
48
+ SQL (1.7ms)  SELECT name
49
+ FROM sqlite_master
50
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
51
+ 
52
+ SQL (68.2ms) CREATE TABLE "suffix_exclamation_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
53
+ SQL (1.9ms)  SELECT name
54
+ FROM sqlite_master
55
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
56
+ 
57
+ SQL (72.2ms) CREATE TABLE "selves" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
58
+ SQL (2.3ms)  SELECT name
59
+ FROM sqlite_master
60
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
61
+ 
62
+ SQL (117.1ms) CREATE TABLE "self_append_nils" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
63
+ SQL (1.8ms)  SELECT name
64
+ FROM sqlite_master
65
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
66
+ 
67
+ SQL (92.7ms) CREATE TABLE "self_names" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
68
+ SQL (4.7ms)  SELECT name
69
+ FROM sqlite_master
70
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
71
+ 
72
+ SQL (100.4ms) CREATE TABLE "ar_callbacks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
73
+ SQL (2.9ms)  SELECT name
74
+ FROM sqlite_master
75
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
76
+ 
77
+ SQL (79.8ms) CREATE TABLE "lazy_falses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
78
+ SQL (2.7ms)  SELECT name
79
+ FROM sqlite_master
80
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
81
+ 
82
+ SQL (131.1ms) CREATE TABLE "booleans_as_hashes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
83
+ SQL (3.3ms)  SELECT name
84
+ FROM sqlite_master
85
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
86
+ 
87
+ SQL (87.4ms) CREATE TABLE "single_hashes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
88
+ SQL (3.4ms)  SELECT name
89
+ FROM sqlite_master
90
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
91
+ 
92
+ SQL (97.6ms) CREATE TABLE "validate_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
93
+ SQL (3.2ms)  SELECT name
94
+ FROM sqlite_master
95
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
96
+ 
97
+ SQL (126.3ms) CREATE TABLE "false_values" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
98
+ SQL (3.6ms)  SELECT name
99
+ FROM sqlite_master
100
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
101
+ 
102
+ SQL (90.1ms) CREATE TABLE "scopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
103
+ SQL (2.0ms)  SELECT name
104
+ FROM sqlite_master
105
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
106
+ 
107
+ SQL (83.8ms) CREATE TABLE "fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "bools" integer) 
108
+ SQL (3.1ms)  SELECT name
109
+ FROM sqlite_master
110
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
111
+ 
112
+ SQL (83.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
113
+ SQL (125.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
114
+ SQL (3.6ms)  SELECT name
115
+ FROM sqlite_master
116
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
117
+ 
118
+ SQL (0.4ms) SELECT version FROM "schema_migrations"
119
+ SQL (88.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
120
+ HasManyBooleansTest::ArCallback Create (2.2ms) INSERT INTO "ar_callbacks" ("name", "booleans") VALUES('matz', 0)
121
+ HasManyBooleansTest::AppendNil Create (2.2ms) INSERT INTO "append_nils" ("name", "booleans") VALUES('Yukihiro', 0)
122
+ HasManyBooleansTest::AppendNil Load (1.3ms) SELECT * FROM "append_nils" ORDER BY append_nils.id DESC LIMIT 1
123
+ HasManyBooleansTest::Default Create (2.2ms) INSERT INTO "defaults" ("name", "booleans") VALUES(NULL, 4)
124
+ HasManyBooleansTest::Default Load (1.6ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
125
+ HasManyBooleansTest::Default Update (2.9ms) UPDATE "defaults" SET "booleans" = 6 WHERE "id" = 1
126
+ HasManyBooleansTest::Default Load (1.2ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
127
+ HasManyBooleansTest::Default Update (3.1ms) UPDATE "defaults" SET "booleans" = 2 WHERE "id" = 1
128
+ HasManyBooleansTest::Default Load (1.1ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
129
+ HasManyBooleansTest::Default Update (3.2ms) UPDATE "defaults" SET "booleans" = 6 WHERE "id" = 1
130
+ HasManyBooleansTest::Default Load (1.1ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
131
+ HasManyBooleansTest::ManyOption Create (3.5ms) INSERT INTO "many_options" ("name", "booleans") VALUES(NULL, 4)
132
+ HasManyBooleansTest::ManyOption Load (1.1ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
133
+ HasManyBooleansTest::ManyOption Update (1.5ms) UPDATE "many_options" SET "booleans" = 20 WHERE "id" = 1
134
+ HasManyBooleansTest::ManyOption Load (1.2ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
135
+ HasManyBooleansTest::ManyOption Load (1.0ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
136
+ HasManyBooleansTest::ManyOption Update (1.7ms) UPDATE "many_options" SET "booleans" = 52 WHERE "id" = 1
137
+ HasManyBooleansTest::ManyOption Load (1.6ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
138
+ HasManyBooleansTest::NoOption Create (2.2ms) INSERT INTO "no_options" ("name", "booleans") VALUES(NULL, 0)
139
+ HasManyBooleansTest::NoOption Load (1.3ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
140
+ HasManyBooleansTest::NoOption Update (2.9ms) UPDATE "no_options" SET "booleans" = 2 WHERE "id" = 1
141
+ HasManyBooleansTest::NoOption Load (1.2ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
142
+ HasManyBooleansTest::NoOption Load (1.0ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
143
+ HasManyBooleansTest::NoOption Update (1.6ms) UPDATE "no_options" SET "booleans" = 6 WHERE "id" = 1
144
+ HasManyBooleansTest::NoOption Load (1.1ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
145
+ HasManyBooleansTest::BooleansAsHash Create (2.2ms) INSERT INTO "booleans_as_hashes" ("name", "booleans") VALUES(NULL, 0)
146
+ HasManyBooleansTest::BooleansAsHash Load (1.1ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
147
+ HasManyBooleansTest::BooleansAsHash Update (2.9ms) UPDATE "booleans_as_hashes" SET "booleans" = 8388608 WHERE "id" = 1
148
+ HasManyBooleansTest::BooleansAsHash Load (1.6ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
149
+ HasManyBooleansTest::BooleansAsHash Load (0.9ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
150
+ HasManyBooleansTest::BooleansAsHash Update (1.7ms) UPDATE "booleans_as_hashes" SET "booleans" = 8388672 WHERE "id" = 1
151
+ HasManyBooleansTest::BooleansAsHash Load (1.4ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
152
+ HasManyBooleansTest::Hmb Create (2.2ms) INSERT INTO "hmbs" ("name", "booleans") VALUES(NULL, 0)
153
+ HasManyBooleansTest::Hmb Load (1.4ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
154
+ HasManyBooleansTest::Hmb Update (3.0ms) UPDATE "hmbs" SET "booleans" = 2 WHERE "id" = 1
155
+ HasManyBooleansTest::Hmb Load (1.2ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
156
+ HasManyBooleansTest::Hmb Load (1.1ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
157
+ HasManyBooleansTest::Hmb Update (1.5ms) UPDATE "hmbs" SET "booleans" = 6 WHERE "id" = 1
158
+ HasManyBooleansTest::Hmb Load (1.3ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
159
+ HasManyBooleansTest::Append Create (4.2ms) INSERT INTO "appends" ("name", "booleans") VALUES(NULL, 0)
160
+ HasManyBooleansTest::Append Load (1.3ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
161
+ HasManyBooleansTest::Append Update (1.5ms) UPDATE "appends" SET "booleans" = 2 WHERE "id" = 1
162
+ HasManyBooleansTest::Append Load (1.2ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
163
+ HasManyBooleansTest::Append Load (0.9ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
164
+ HasManyBooleansTest::Append Update (2.5ms) UPDATE "appends" SET "booleans" = 6 WHERE "id" = 1
165
+ HasManyBooleansTest::Append Load (1.1ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
166
+ HasManyBooleansTest::Field Create (3.6ms) INSERT INTO "fields" ("name", "bools") VALUES(NULL, 0)
167
+ HasManyBooleansTest::Field Load (1.3ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
168
+ HasManyBooleansTest::Field Update (2.9ms) UPDATE "fields" SET "bools" = 2 WHERE "id" = 1
169
+ HasManyBooleansTest::Field Load (1.2ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
170
+ HasManyBooleansTest::Field Load (1.0ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
171
+ HasManyBooleansTest::Field Update (2.9ms) UPDATE "fields" SET "bools" = 6 WHERE "id" = 1
172
+ HasManyBooleansTest::Field Load (1.2ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
173
+ HasManyBooleansTest::SuffixEqualOnly Create (2.2ms) INSERT INTO "suffix_equal_onlies" ("name", "booleans") VALUES(NULL, 0)
174
+ HasManyBooleansTest::SuffixEqualOnly Load (1.1ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
175
+ HasManyBooleansTest::SuffixEqualOnly Update (1.6ms) UPDATE "suffix_equal_onlies" SET "booleans" = 2 WHERE "id" = 1
176
+ HasManyBooleansTest::SuffixEqualOnly Load (1.1ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
177
+ HasManyBooleansTest::SuffixEqualOnly Load (0.9ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
178
+ HasManyBooleansTest::SuffixEqualOnly Update (2.9ms) UPDATE "suffix_equal_onlies" SET "booleans" = 6 WHERE "id" = 1
179
+ HasManyBooleansTest::SuffixEqualOnly Load (1.3ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
180
+ HasManyBooleansTest::Self Create (4.0ms) INSERT INTO "selves" ("name", "booleans") VALUES(NULL, 0)
181
+ HasManyBooleansTest::Self Load (1.3ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
182
+ HasManyBooleansTest::Self Update (1.5ms) UPDATE "selves" SET "booleans" = 2 WHERE "id" = 1
183
+ HasManyBooleansTest::Self Load (1.1ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
184
+ HasManyBooleansTest::Self Load (0.5ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
185
+ HasManyBooleansTest::Self Update (1.6ms) UPDATE "selves" SET "booleans" = 6 WHERE "id" = 1
186
+ HasManyBooleansTest::Self Load (1.1ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
187
+ HasManyBooleansTest::SelfName Create (2.2ms) INSERT INTO "self_names" ("name", "booleans") VALUES(NULL, 1)
188
+ HasManyBooleansTest::SelfName Load (1.1ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
189
+ HasManyBooleansTest::SelfName Update (2.9ms) UPDATE "self_names" SET "booleans" = 3 WHERE "id" = 1
190
+ HasManyBooleansTest::SelfName Load (1.2ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
191
+ HasManyBooleansTest::SelfName Load (0.9ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
192
+ HasManyBooleansTest::SelfName Update (2.8ms) UPDATE "self_names" SET "booleans" = 7 WHERE "id" = 1
193
+ HasManyBooleansTest::SelfName Load (1.1ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
194
+ HasManyBooleansTest::ArCallback Create (2.3ms) INSERT INTO "ar_callbacks" ("name", "booleans") VALUES('matz', 0)
195
+ HasManyBooleansTest::ArCallback Load (1.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
196
+ HasManyBooleansTest::ArCallback Update (2.9ms) UPDATE "ar_callbacks" SET "booleans" = 2 WHERE "id" = 2
197
+ HasManyBooleansTest::ArCallback Load (1.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
198
+ HasManyBooleansTest::ArCallback Load (0.6ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
199
+ HasManyBooleansTest::ArCallback Update (1.8ms) UPDATE "ar_callbacks" SET "booleans" = 6 WHERE "id" = 2
200
+ HasManyBooleansTest::ArCallback Load (1.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
201
+ HasManyBooleansTest::LazyFalse Create (4.2ms) INSERT INTO "lazy_falses" ("name", "booleans") VALUES(NULL, 0)
202
+ HasManyBooleansTest::LazyFalse Load (1.2ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
203
+ HasManyBooleansTest::LazyFalse Update (3.1ms) UPDATE "lazy_falses" SET "booleans" = 2 WHERE "id" = 1
204
+ HasManyBooleansTest::LazyFalse Load (1.1ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
205
+ HasManyBooleansTest::LazyFalse Load (1.0ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
206
+ HasManyBooleansTest::LazyFalse Update (3.8ms) UPDATE "lazy_falses" SET "booleans" = 6 WHERE "id" = 1
207
+ HasManyBooleansTest::LazyFalse Load (1.4ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
208
+ HasManyBooleansTest::FalseValue Create (2.2ms) INSERT INTO "false_values" ("name", "booleans") VALUES(NULL, 0)
209
+ HasManyBooleansTest::FalseValue Load (1.2ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
210
+ HasManyBooleansTest::FalseValue Update (3.2ms) UPDATE "false_values" SET "booleans" = 2 WHERE "id" = 1
211
+ HasManyBooleansTest::FalseValue Load (1.2ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
212
+ HasManyBooleansTest::FalseValue Load (1.0ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
213
+ HasManyBooleansTest::FalseValue Update (1.7ms) UPDATE "false_values" SET "booleans" = 6 WHERE "id" = 1
214
+ HasManyBooleansTest::FalseValue Load (1.2ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
215
+ HasManyBooleansTest::Scope Create (2.4ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 0)
216
+ HasManyBooleansTest::Scope Create (4.2ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 5)
217
+ HasManyBooleansTest::Scope Create (4.1ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 1)
218
+ HasManyBooleansTest::Scope Create (4.2ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 4)
219
+ HasManyBooleansTest::Scope Create (2.3ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 2)
220
+ HasManyBooleansTest::Scope Load (1.3ms) SELECT * FROM "scopes" WHERE ("scopes"."id" = 5) 
221
+ HasManyBooleansTest::Scope Load (0.6ms) SELECT * FROM "scopes" WHERE (booleans & 2) 
222
+ HasManyBooleansTest::Scope Load (0.9ms) SELECT * FROM "scopes" WHERE ("scopes"."id" IN (1,4,5)) 
223
+ HasManyBooleansTest::Scope Load (0.8ms) SELECT * FROM "scopes" WHERE (booleans & 1 < 1) 
224
+ HasManyBooleansTest::Scope Load (0.8ms) SELECT * FROM "scopes" WHERE ("scopes"."id" IN (2,4,5)) 
225
+ HasManyBooleansTest::Scope Load (0.8ms) SELECT * FROM "scopes" WHERE (booleans & 2 or booleans & 4) 
226
+ HasManyBooleansTest::Scope Load (0.4ms) SELECT * FROM "scopes" WHERE ((booleans & 4) AND (booleans & 2)) 
227
+ HasManyBooleansTest::ValidateTest Create (2.1ms) INSERT INTO "validate_tests" ("name", "booleans") VALUES(NULL, 2)
228
+ HasManyBooleansTest::ValidateTest Create (4.4ms) INSERT INTO "validate_tests" ("name", "booleans") VALUES(NULL, 2)
229
+ SQL (19.7ms) select sqlite_version(*)
230
+ SQL (7.0ms)  SELECT name
231
+ FROM sqlite_master
232
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
233
+ 
234
+ SQL (127.6ms) DROP TABLE "appends"
235
+ SQL (100.1ms) CREATE TABLE "appends" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
236
+ SQL (4.3ms)  SELECT name
237
+ FROM sqlite_master
238
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
239
+ 
240
+ SQL (90.0ms) DROP TABLE "append_nils"
241
+ SQL (90.9ms) CREATE TABLE "append_nils" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
242
+ SQL (4.4ms)  SELECT name
243
+ FROM sqlite_master
244
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
245
+ 
246
+ SQL (88.0ms) DROP TABLE "defaults"
247
+ SQL (90.8ms) CREATE TABLE "defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
248
+ SQL (3.8ms)  SELECT name
249
+ FROM sqlite_master
250
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
251
+ 
252
+ SQL (88.4ms) DROP TABLE "many_options"
253
+ SQL (91.2ms) CREATE TABLE "many_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
254
+ SQL (4.1ms)  SELECT name
255
+ FROM sqlite_master
256
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
257
+ 
258
+ SQL (100.2ms) DROP TABLE "no_options"
259
+ SQL (106.8ms) CREATE TABLE "no_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
260
+ SQL (3.6ms)  SELECT name
261
+ FROM sqlite_master
262
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
263
+ 
264
+ SQL (91.7ms) DROP TABLE "hmbs"
265
+ SQL (87.0ms) CREATE TABLE "hmbs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
266
+ SQL (4.5ms)  SELECT name
267
+ FROM sqlite_master
268
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
269
+ 
270
+ SQL (93.1ms) DROP TABLE "suffix_nones"
271
+ SQL (95.6ms) CREATE TABLE "suffix_nones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
272
+ SQL (5.0ms)  SELECT name
273
+ FROM sqlite_master
274
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
275
+ 
276
+ SQL (91.1ms) DROP TABLE "suffix_question_onlies"
277
+ SQL (98.6ms) CREATE TABLE "suffix_question_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
278
+ SQL (4.2ms)  SELECT name
279
+ FROM sqlite_master
280
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
281
+ 
282
+ SQL (102.1ms) DROP TABLE "suffix_equal_onlies"
283
+ SQL (98.3ms) CREATE TABLE "suffix_equal_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
284
+ SQL (3.2ms)  SELECT name
285
+ FROM sqlite_master
286
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
287
+ 
288
+ SQL (92.6ms) DROP TABLE "suffix_exclamation_onlies"
289
+ SQL (98.5ms) CREATE TABLE "suffix_exclamation_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
290
+ SQL (4.9ms)  SELECT name
291
+ FROM sqlite_master
292
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
293
+ 
294
+ SQL (171.0ms) DROP TABLE "selves"
295
+ SQL (94.8ms) CREATE TABLE "selves" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
296
+ SQL (4.9ms)  SELECT name
297
+ FROM sqlite_master
298
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
299
+ 
300
+ SQL (105.3ms) DROP TABLE "self_append_nils"
301
+ SQL (95.3ms) CREATE TABLE "self_append_nils" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
302
+ SQL (4.0ms)  SELECT name
303
+ FROM sqlite_master
304
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
305
+ 
306
+ SQL (106.9ms) DROP TABLE "self_names"
307
+ SQL (99.1ms) CREATE TABLE "self_names" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
308
+ SQL (3.9ms)  SELECT name
309
+ FROM sqlite_master
310
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
311
+ 
312
+ SQL (89.6ms) DROP TABLE "ar_callbacks"
313
+ SQL (95.8ms) CREATE TABLE "ar_callbacks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
314
+ SQL (3.7ms)  SELECT name
315
+ FROM sqlite_master
316
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
317
+ 
318
+ SQL (95.9ms) DROP TABLE "lazy_falses"
319
+ SQL (99.3ms) CREATE TABLE "lazy_falses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
320
+ SQL (5.1ms)  SELECT name
321
+ FROM sqlite_master
322
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
323
+ 
324
+ SQL (89.1ms) DROP TABLE "booleans_as_hashes"
325
+ SQL (95.7ms) CREATE TABLE "booleans_as_hashes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
326
+ SQL (3.9ms)  SELECT name
327
+ FROM sqlite_master
328
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
329
+ 
330
+ SQL (97.1ms) DROP TABLE "single_hashes"
331
+ SQL (98.0ms) CREATE TABLE "single_hashes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
332
+ SQL (2.5ms)  SELECT name
333
+ FROM sqlite_master
334
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
335
+ 
336
+ SQL (93.7ms) DROP TABLE "validate_tests"
337
+ SQL (100.1ms) CREATE TABLE "validate_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
338
+ SQL (3.4ms)  SELECT name
339
+ FROM sqlite_master
340
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
341
+ 
342
+ SQL (91.4ms) DROP TABLE "false_values"
343
+ SQL (99.2ms) CREATE TABLE "false_values" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
344
+ SQL (4.0ms)  SELECT name
345
+ FROM sqlite_master
346
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
347
+ 
348
+ SQL (90.7ms) DROP TABLE "scopes"
349
+ SQL (99.6ms) CREATE TABLE "scopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
350
+ SQL (3.6ms)  SELECT name
351
+ FROM sqlite_master
352
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
353
+ 
354
+ SQL (102.6ms) DROP TABLE "fields"
355
+ SQL (99.9ms) CREATE TABLE "fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "bools" integer) 
356
+ SQL (4.4ms)  SELECT name
357
+ FROM sqlite_master
358
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
359
+ 
360
+ SQL (0.6ms) SELECT version FROM "schema_migrations"
361
+ HasManyBooleansTest::ArCallback Create (2.3ms) INSERT INTO "ar_callbacks" ("name", "booleans") VALUES('matz', 0)
362
+ HasManyBooleansTest::AppendNil Create (2.6ms) INSERT INTO "append_nils" ("name", "booleans") VALUES('Yukihiro', 0)
363
+ HasManyBooleansTest::AppendNil Load (1.2ms) SELECT * FROM "append_nils" ORDER BY append_nils.id DESC LIMIT 1
364
+ HasManyBooleansTest::Default Create (2.1ms) INSERT INTO "defaults" ("name", "booleans") VALUES(NULL, 4)
365
+ HasManyBooleansTest::Default Load (1.2ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
366
+ HasManyBooleansTest::Default Update (1.7ms) UPDATE "defaults" SET "booleans" = 6 WHERE "id" = 1
367
+ HasManyBooleansTest::Default Load (1.2ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
368
+ HasManyBooleansTest::Default Update (3.2ms) UPDATE "defaults" SET "booleans" = 2 WHERE "id" = 1
369
+ HasManyBooleansTest::Default Load (1.5ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
370
+ HasManyBooleansTest::Default Update (2.8ms) UPDATE "defaults" SET "booleans" = 6 WHERE "id" = 1
371
+ HasManyBooleansTest::Default Load (1.9ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
372
+ HasManyBooleansTest::ManyOption Create (4.9ms) INSERT INTO "many_options" ("name", "booleans") VALUES(NULL, 4)
373
+ HasManyBooleansTest::ManyOption Load (1.2ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
374
+ HasManyBooleansTest::ManyOption Update (1.6ms) UPDATE "many_options" SET "booleans" = 20 WHERE "id" = 1
375
+ HasManyBooleansTest::ManyOption Load (1.1ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
376
+ HasManyBooleansTest::ManyOption Load (0.5ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
377
+ HasManyBooleansTest::ManyOption Update (2.0ms) UPDATE "many_options" SET "booleans" = 52 WHERE "id" = 1
378
+ HasManyBooleansTest::ManyOption Load (1.9ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
379
+ HasManyBooleansTest::NoOption Create (3.4ms) INSERT INTO "no_options" ("name", "booleans") VALUES(NULL, 0)
380
+ HasManyBooleansTest::NoOption Load (1.8ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
381
+ HasManyBooleansTest::NoOption Update (2.9ms) UPDATE "no_options" SET "booleans" = 2 WHERE "id" = 1
382
+ HasManyBooleansTest::NoOption Load (1.2ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
383
+ HasManyBooleansTest::NoOption Load (1.0ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
384
+ HasManyBooleansTest::NoOption Update (3.1ms) UPDATE "no_options" SET "booleans" = 6 WHERE "id" = 1
385
+ HasManyBooleansTest::NoOption Load (1.6ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
386
+ HasManyBooleansTest::BooleansAsHash Create (4.6ms) INSERT INTO "booleans_as_hashes" ("name", "booleans") VALUES(NULL, 0)
387
+ HasManyBooleansTest::BooleansAsHash Load (1.9ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
388
+ HasManyBooleansTest::BooleansAsHash Update (3.2ms) UPDATE "booleans_as_hashes" SET "booleans" = 8388608 WHERE "id" = 1
389
+ HasManyBooleansTest::BooleansAsHash Load (1.3ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
390
+ HasManyBooleansTest::BooleansAsHash Load (1.0ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
391
+ HasManyBooleansTest::BooleansAsHash Update (1.7ms) UPDATE "booleans_as_hashes" SET "booleans" = 8388672 WHERE "id" = 1
392
+ HasManyBooleansTest::BooleansAsHash Load (1.1ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
393
+ HasManyBooleansTest::Hmb Create (2.8ms) INSERT INTO "hmbs" ("name", "booleans") VALUES(NULL, 0)
394
+ HasManyBooleansTest::Hmb Load (1.1ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
395
+ HasManyBooleansTest::Hmb Update (3.0ms) UPDATE "hmbs" SET "booleans" = 2 WHERE "id" = 1
396
+ HasManyBooleansTest::Hmb Load (1.2ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
397
+ HasManyBooleansTest::Hmb Load (0.8ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
398
+ HasManyBooleansTest::Hmb Update (1.6ms) UPDATE "hmbs" SET "booleans" = 6 WHERE "id" = 1
399
+ HasManyBooleansTest::Hmb Load (1.2ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
400
+ HasManyBooleansTest::Append Create (5.6ms) INSERT INTO "appends" ("name", "booleans") VALUES(NULL, 0)
401
+ HasManyBooleansTest::Append Load (1.9ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
402
+ HasManyBooleansTest::Append Update (3.1ms) UPDATE "appends" SET "booleans" = 2 WHERE "id" = 1
403
+ HasManyBooleansTest::Append Load (1.2ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
404
+ HasManyBooleansTest::Append Load (0.5ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
405
+ HasManyBooleansTest::Append Update (1.5ms) UPDATE "appends" SET "booleans" = 6 WHERE "id" = 1
406
+ HasManyBooleansTest::Append Load (1.1ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
407
+ HasManyBooleansTest::Field Create (3.8ms) INSERT INTO "fields" ("name", "bools") VALUES(NULL, 0)
408
+ HasManyBooleansTest::Field Load (1.2ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
409
+ HasManyBooleansTest::Field Update (3.1ms) UPDATE "fields" SET "bools" = 2 WHERE "id" = 1
410
+ HasManyBooleansTest::Field Load (1.4ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
411
+ HasManyBooleansTest::Field Load (0.9ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
412
+ HasManyBooleansTest::Field Update (1.9ms) UPDATE "fields" SET "bools" = 6 WHERE "id" = 1
413
+ HasManyBooleansTest::Field Load (1.1ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
414
+ HasManyBooleansTest::SuffixEqualOnly Create (4.4ms) INSERT INTO "suffix_equal_onlies" ("name", "booleans") VALUES(NULL, 0)
415
+ HasManyBooleansTest::SuffixEqualOnly Load (1.2ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
416
+ HasManyBooleansTest::SuffixEqualOnly Update (3.0ms) UPDATE "suffix_equal_onlies" SET "booleans" = 2 WHERE "id" = 1
417
+ HasManyBooleansTest::SuffixEqualOnly Load (1.3ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
418
+ HasManyBooleansTest::SuffixEqualOnly Load (1.1ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
419
+ HasManyBooleansTest::SuffixEqualOnly Update (2.0ms) UPDATE "suffix_equal_onlies" SET "booleans" = 6 WHERE "id" = 1
420
+ HasManyBooleansTest::SuffixEqualOnly Load (1.4ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
421
+ HasManyBooleansTest::Self Create (4.9ms) INSERT INTO "selves" ("name", "booleans") VALUES(NULL, 0)
422
+ HasManyBooleansTest::Self Load (1.3ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
423
+ HasManyBooleansTest::Self Update (3.0ms) UPDATE "selves" SET "booleans" = 2 WHERE "id" = 1
424
+ HasManyBooleansTest::Self Load (1.2ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
425
+ HasManyBooleansTest::Self Load (1.0ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
426
+ HasManyBooleansTest::Self Update (1.6ms) UPDATE "selves" SET "booleans" = 6 WHERE "id" = 1
427
+ HasManyBooleansTest::Self Load (1.9ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
428
+ HasManyBooleansTest::SelfName Create (2.2ms) INSERT INTO "self_names" ("name", "booleans") VALUES(NULL, 1)
429
+ HasManyBooleansTest::SelfName Load (1.3ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
430
+ HasManyBooleansTest::SelfName Update (1.7ms) UPDATE "self_names" SET "booleans" = 3 WHERE "id" = 1
431
+ HasManyBooleansTest::SelfName Load (1.1ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
432
+ HasManyBooleansTest::SelfName Load (0.6ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
433
+ HasManyBooleansTest::SelfName Update (1.6ms) UPDATE "self_names" SET "booleans" = 7 WHERE "id" = 1
434
+ HasManyBooleansTest::SelfName Load (1.1ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
435
+ HasManyBooleansTest::ArCallback Create (2.7ms) INSERT INTO "ar_callbacks" ("name", "booleans") VALUES('matz', 0)
436
+ HasManyBooleansTest::ArCallback Load (1.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
437
+ HasManyBooleansTest::ArCallback Update (2.9ms) UPDATE "ar_callbacks" SET "booleans" = 2 WHERE "id" = 2
438
+ HasManyBooleansTest::ArCallback Load (1.2ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
439
+ HasManyBooleansTest::ArCallback Load (0.9ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
440
+ HasManyBooleansTest::ArCallback Update (2.5ms) UPDATE "ar_callbacks" SET "booleans" = 6 WHERE "id" = 2
441
+ HasManyBooleansTest::ArCallback Load (1.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
442
+ HasManyBooleansTest::LazyFalse Create (5.4ms) INSERT INTO "lazy_falses" ("name", "booleans") VALUES(NULL, 0)
443
+ HasManyBooleansTest::LazyFalse Load (2.0ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
444
+ HasManyBooleansTest::LazyFalse Update (2.8ms) UPDATE "lazy_falses" SET "booleans" = 2 WHERE "id" = 1
445
+ HasManyBooleansTest::LazyFalse Load (1.1ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
446
+ HasManyBooleansTest::LazyFalse Load (1.0ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
447
+ HasManyBooleansTest::LazyFalse Update (1.5ms) UPDATE "lazy_falses" SET "booleans" = 6 WHERE "id" = 1
448
+ HasManyBooleansTest::LazyFalse Load (1.2ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
449
+ HasManyBooleansTest::FalseValue Create (2.2ms) INSERT INTO "false_values" ("name", "booleans") VALUES(NULL, 0)
450
+ HasManyBooleansTest::FalseValue Load (1.6ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
451
+ HasManyBooleansTest::FalseValue Update (1.6ms) UPDATE "false_values" SET "booleans" = 2 WHERE "id" = 1
452
+ HasManyBooleansTest::FalseValue Load (1.3ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
453
+ HasManyBooleansTest::FalseValue Load (0.6ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
454
+ HasManyBooleansTest::FalseValue Update (1.5ms) UPDATE "false_values" SET "booleans" = 6 WHERE "id" = 1
455
+ HasManyBooleansTest::FalseValue Load (1.2ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
456
+ HasManyBooleansTest::Scope Create (2.2ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 0)
457
+ HasManyBooleansTest::Scope Create (2.1ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 5)
458
+ HasManyBooleansTest::Scope Create (4.7ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 1)
459
+ HasManyBooleansTest::Scope Create (3.9ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 4)
460
+ HasManyBooleansTest::Scope Create (4.3ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 2)
461
+ HasManyBooleansTest::Scope Load (1.2ms) SELECT * FROM "scopes" WHERE ("scopes"."id" = 5) 
462
+ HasManyBooleansTest::Scope Load (1.0ms) SELECT * FROM "scopes" WHERE (booleans & 2) 
463
+ HasManyBooleansTest::Scope Load (1.4ms) SELECT * FROM "scopes" WHERE ("scopes"."id" IN (1,4,5)) 
464
+ HasManyBooleansTest::Scope Load (0.8ms) SELECT * FROM "scopes" WHERE (booleans & 1 < 1) 
465
+ HasManyBooleansTest::Scope Load (1.2ms) SELECT * FROM "scopes" WHERE ("scopes"."id" IN (2,4,5)) 
466
+ HasManyBooleansTest::Scope Load (0.8ms) SELECT * FROM "scopes" WHERE (booleans & 2 or booleans & 4) 
467
+ HasManyBooleansTest::Scope Load (0.6ms) SELECT * FROM "scopes" WHERE ((booleans & 4) AND (booleans & 2)) 
468
+ HasManyBooleansTest::ValidateTest Create (4.2ms) INSERT INTO "validate_tests" ("name", "booleans") VALUES(NULL, 2)
469
+ HasManyBooleansTest::ValidateTest Create (2.2ms) INSERT INTO "validate_tests" ("name", "booleans") VALUES(NULL, 2)
470
+ SQL (19.6ms) select sqlite_version(*)
471
+ SQL (7.5ms)  SELECT name
472
+ FROM sqlite_master
473
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
474
+ 
475
+ SQL (105.8ms) DROP TABLE "appends"
476
+ SQL (113.0ms) CREATE TABLE "appends" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
477
+ SQL (4.3ms)  SELECT name
478
+ FROM sqlite_master
479
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
480
+ 
481
+ SQL (99.1ms) DROP TABLE "append_nils"
482
+ SQL (102.3ms) CREATE TABLE "append_nils" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
483
+ SQL (4.5ms)  SELECT name
484
+ FROM sqlite_master
485
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
486
+ 
487
+ SQL (89.1ms) DROP TABLE "defaults"
488
+ SQL (99.1ms) CREATE TABLE "defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
489
+ SQL (3.6ms)  SELECT name
490
+ FROM sqlite_master
491
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
492
+ 
493
+ SQL (100.6ms) DROP TABLE "many_options"
494
+ SQL (105.7ms) CREATE TABLE "many_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
495
+ SQL (4.0ms)  SELECT name
496
+ FROM sqlite_master
497
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
498
+ 
499
+ SQL (94.6ms) DROP TABLE "no_options"
500
+ SQL (102.2ms) CREATE TABLE "no_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
501
+ SQL (4.0ms)  SELECT name
502
+ FROM sqlite_master
503
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
504
+ 
505
+ SQL (99.3ms) DROP TABLE "hmbs"
506
+ SQL (102.3ms) CREATE TABLE "hmbs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
507
+ SQL (2.5ms)  SELECT name
508
+ FROM sqlite_master
509
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
510
+ 
511
+ SQL (89.1ms) DROP TABLE "suffix_nones"
512
+ SQL (91.3ms) CREATE TABLE "suffix_nones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
513
+ SQL (4.1ms)  SELECT name
514
+ FROM sqlite_master
515
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
516
+ 
517
+ SQL (88.2ms) DROP TABLE "suffix_question_onlies"
518
+ SQL (106.3ms) CREATE TABLE "suffix_question_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
519
+ SQL (4.1ms)  SELECT name
520
+ FROM sqlite_master
521
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
522
+ 
523
+ SQL (103.5ms) DROP TABLE "suffix_equal_onlies"
524
+ SQL (98.3ms) CREATE TABLE "suffix_equal_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
525
+ SQL (3.9ms)  SELECT name
526
+ FROM sqlite_master
527
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
528
+ 
529
+ SQL (105.9ms) DROP TABLE "suffix_exclamation_onlies"
530
+ SQL (99.6ms) CREATE TABLE "suffix_exclamation_onlies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
531
+ SQL (3.8ms)  SELECT name
532
+ FROM sqlite_master
533
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
534
+ 
535
+ SQL (102.8ms) DROP TABLE "selves"
536
+ SQL (94.9ms) CREATE TABLE "selves" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
537
+ SQL (4.4ms)  SELECT name
538
+ FROM sqlite_master
539
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
540
+ 
541
+ SQL (95.9ms) DROP TABLE "self_append_nils"
542
+ SQL (110.0ms) CREATE TABLE "self_append_nils" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
543
+ SQL (4.4ms)  SELECT name
544
+ FROM sqlite_master
545
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
546
+ 
547
+ SQL (102.2ms) DROP TABLE "self_names"
548
+ SQL (94.3ms) CREATE TABLE "self_names" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
549
+ SQL (3.9ms)  SELECT name
550
+ FROM sqlite_master
551
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
552
+ 
553
+ SQL (106.6ms) DROP TABLE "ar_callbacks"
554
+ SQL (110.0ms) CREATE TABLE "ar_callbacks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
555
+ SQL (4.4ms)  SELECT name
556
+ FROM sqlite_master
557
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
558
+ 
559
+ SQL (113.8ms) DROP TABLE "lazy_falses"
560
+ SQL (109.1ms) CREATE TABLE "lazy_falses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
561
+ SQL (3.6ms)  SELECT name
562
+ FROM sqlite_master
563
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
564
+ 
565
+ SQL (98.9ms) DROP TABLE "booleans_as_hashes"
566
+ SQL (104.9ms) CREATE TABLE "booleans_as_hashes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
567
+ SQL (3.1ms)  SELECT name
568
+ FROM sqlite_master
569
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
570
+ 
571
+ SQL (102.9ms) DROP TABLE "single_hashes"
572
+ SQL (98.5ms) CREATE TABLE "single_hashes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
573
+ SQL (4.1ms)  SELECT name
574
+ FROM sqlite_master
575
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
576
+ 
577
+ SQL (103.5ms) DROP TABLE "validate_tests"
578
+ SQL (99.1ms) CREATE TABLE "validate_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
579
+ SQL (4.2ms)  SELECT name
580
+ FROM sqlite_master
581
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
582
+ 
583
+ SQL (101.5ms) DROP TABLE "false_values"
584
+ SQL (98.7ms) CREATE TABLE "false_values" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
585
+ SQL (3.9ms)  SELECT name
586
+ FROM sqlite_master
587
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
588
+ 
589
+ SQL (124.9ms) DROP TABLE "scopes"
590
+ SQL (111.4ms) CREATE TABLE "scopes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "booleans" integer) 
591
+ SQL (3.6ms)  SELECT name
592
+ FROM sqlite_master
593
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
594
+ 
595
+ SQL (102.2ms) DROP TABLE "fields"
596
+ SQL (110.4ms) CREATE TABLE "fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "bools" integer) 
597
+ SQL (4.5ms)  SELECT name
598
+ FROM sqlite_master
599
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
600
+ 
601
+ SQL (1.9ms) SELECT version FROM "schema_migrations"
602
+ HasManyBooleansTest::ArCallback Create (18.5ms) INSERT INTO "ar_callbacks" ("name", "booleans") VALUES('matz', 0)
603
+ HasManyBooleansTest::AppendNil Create (2.2ms) INSERT INTO "append_nils" ("name", "booleans") VALUES('Yukihiro', 0)
604
+ HasManyBooleansTest::AppendNil Load (1.4ms) SELECT * FROM "append_nils" ORDER BY append_nils.id DESC LIMIT 1
605
+ HasManyBooleansTest::Default Create (2.1ms) INSERT INTO "defaults" ("name", "booleans") VALUES(NULL, 4)
606
+ HasManyBooleansTest::Default Load (1.4ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
607
+ HasManyBooleansTest::Default Update (2.9ms) UPDATE "defaults" SET "booleans" = 6 WHERE "id" = 1
608
+ HasManyBooleansTest::Default Load (1.1ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
609
+ HasManyBooleansTest::Default Update (2.8ms) UPDATE "defaults" SET "booleans" = 2 WHERE "id" = 1
610
+ HasManyBooleansTest::Default Load (1.2ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
611
+ HasManyBooleansTest::Default Update (1.6ms) UPDATE "defaults" SET "booleans" = 6 WHERE "id" = 1
612
+ HasManyBooleansTest::Default Load (1.3ms) SELECT * FROM "defaults" ORDER BY defaults.id DESC LIMIT 1
613
+ HasManyBooleansTest::ManyOption Create (4.4ms) INSERT INTO "many_options" ("name", "booleans") VALUES(NULL, 4)
614
+ HasManyBooleansTest::ManyOption Load (1.3ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
615
+ HasManyBooleansTest::ManyOption Update (4.3ms) UPDATE "many_options" SET "booleans" = 20 WHERE "id" = 1
616
+ HasManyBooleansTest::ManyOption Load (0.7ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
617
+ HasManyBooleansTest::ManyOption Load (0.6ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
618
+ HasManyBooleansTest::ManyOption Update (1.5ms) UPDATE "many_options" SET "booleans" = 52 WHERE "id" = 1
619
+ HasManyBooleansTest::ManyOption Load (1.2ms) SELECT * FROM "many_options" ORDER BY many_options.id DESC LIMIT 1
620
+ HasManyBooleansTest::NoOption Create (2.3ms) INSERT INTO "no_options" ("name", "booleans") VALUES(NULL, 0)
621
+ HasManyBooleansTest::NoOption Load (1.1ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
622
+ HasManyBooleansTest::NoOption Update (3.0ms) UPDATE "no_options" SET "booleans" = 2 WHERE "id" = 1
623
+ HasManyBooleansTest::NoOption Load (1.2ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
624
+ HasManyBooleansTest::NoOption Load (1.1ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
625
+ HasManyBooleansTest::NoOption Update (1.7ms) UPDATE "no_options" SET "booleans" = 6 WHERE "id" = 1
626
+ HasManyBooleansTest::NoOption Load (1.2ms) SELECT * FROM "no_options" ORDER BY no_options.id DESC LIMIT 1
627
+ HasManyBooleansTest::BooleansAsHash Create (2.4ms) INSERT INTO "booleans_as_hashes" ("name", "booleans") VALUES(NULL, 0)
628
+ HasManyBooleansTest::BooleansAsHash Load (1.1ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
629
+ HasManyBooleansTest::BooleansAsHash Update (1.6ms) UPDATE "booleans_as_hashes" SET "booleans" = 8388608 WHERE "id" = 1
630
+ HasManyBooleansTest::BooleansAsHash Load (1.1ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
631
+ HasManyBooleansTest::BooleansAsHash Load (1.0ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
632
+ HasManyBooleansTest::BooleansAsHash Update (2.8ms) UPDATE "booleans_as_hashes" SET "booleans" = 8388672 WHERE "id" = 1
633
+ HasManyBooleansTest::BooleansAsHash Load (1.3ms) SELECT * FROM "booleans_as_hashes" ORDER BY booleans_as_hashes.id DESC LIMIT 1
634
+ HasManyBooleansTest::Hmb Create (4.9ms) INSERT INTO "hmbs" ("name", "booleans") VALUES(NULL, 0)
635
+ HasManyBooleansTest::Hmb Load (1.4ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
636
+ HasManyBooleansTest::Hmb Update (1.6ms) UPDATE "hmbs" SET "booleans" = 2 WHERE "id" = 1
637
+ HasManyBooleansTest::Hmb Load (1.4ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
638
+ HasManyBooleansTest::Hmb Load (1.1ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
639
+ HasManyBooleansTest::Hmb Update (1.6ms) UPDATE "hmbs" SET "booleans" = 6 WHERE "id" = 1
640
+ HasManyBooleansTest::Hmb Load (1.1ms) SELECT * FROM "hmbs" ORDER BY hmbs.id DESC LIMIT 1
641
+ HasManyBooleansTest::Append Create (2.3ms) INSERT INTO "appends" ("name", "booleans") VALUES(NULL, 0)
642
+ HasManyBooleansTest::Append Load (1.3ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
643
+ HasManyBooleansTest::Append Update (3.2ms) UPDATE "appends" SET "booleans" = 2 WHERE "id" = 1
644
+ HasManyBooleansTest::Append Load (1.3ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
645
+ HasManyBooleansTest::Append Load (0.5ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
646
+ HasManyBooleansTest::Append Update (2.1ms) UPDATE "appends" SET "booleans" = 6 WHERE "id" = 1
647
+ HasManyBooleansTest::Append Load (1.1ms) SELECT * FROM "appends" ORDER BY appends.id DESC LIMIT 1
648
+ HasManyBooleansTest::Field Create (2.1ms) INSERT INTO "fields" ("name", "bools") VALUES(NULL, 0)
649
+ HasManyBooleansTest::Field Load (1.6ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
650
+ HasManyBooleansTest::Field Update (3.0ms) UPDATE "fields" SET "bools" = 2 WHERE "id" = 1
651
+ HasManyBooleansTest::Field Load (1.2ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
652
+ HasManyBooleansTest::Field Load (1.1ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
653
+ HasManyBooleansTest::Field Update (1.5ms) UPDATE "fields" SET "bools" = 6 WHERE "id" = 1
654
+ HasManyBooleansTest::Field Load (0.7ms) SELECT * FROM "fields" ORDER BY fields.id DESC LIMIT 1
655
+ HasManyBooleansTest::SuffixEqualOnly Create (4.1ms) INSERT INTO "suffix_equal_onlies" ("name", "booleans") VALUES(NULL, 0)
656
+ HasManyBooleansTest::SuffixEqualOnly Load (1.1ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
657
+ HasManyBooleansTest::SuffixEqualOnly Update (3.1ms) UPDATE "suffix_equal_onlies" SET "booleans" = 2 WHERE "id" = 1
658
+ HasManyBooleansTest::SuffixEqualOnly Load (1.1ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
659
+ HasManyBooleansTest::SuffixEqualOnly Load (1.0ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
660
+ HasManyBooleansTest::SuffixEqualOnly Update (1.6ms) UPDATE "suffix_equal_onlies" SET "booleans" = 6 WHERE "id" = 1
661
+ HasManyBooleansTest::SuffixEqualOnly Load (1.3ms) SELECT * FROM "suffix_equal_onlies" ORDER BY suffix_equal_onlies.id DESC LIMIT 1
662
+ HasManyBooleansTest::Self Create (6.3ms) INSERT INTO "selves" ("name", "booleans") VALUES(NULL, 0)
663
+ HasManyBooleansTest::Self Load (1.1ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
664
+ HasManyBooleansTest::Self Update (2.9ms) UPDATE "selves" SET "booleans" = 2 WHERE "id" = 1
665
+ HasManyBooleansTest::Self Load (1.2ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
666
+ HasManyBooleansTest::Self Load (1.2ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
667
+ HasManyBooleansTest::Self Update (1.5ms) UPDATE "selves" SET "booleans" = 6 WHERE "id" = 1
668
+ HasManyBooleansTest::Self Load (1.3ms) SELECT * FROM "selves" ORDER BY selves.id DESC LIMIT 1
669
+ HasManyBooleansTest::SelfName Create (2.5ms) INSERT INTO "self_names" ("name", "booleans") VALUES(NULL, 1)
670
+ HasManyBooleansTest::SelfName Load (1.2ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
671
+ HasManyBooleansTest::SelfName Update (1.6ms) UPDATE "self_names" SET "booleans" = 3 WHERE "id" = 1
672
+ HasManyBooleansTest::SelfName Load (1.3ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
673
+ HasManyBooleansTest::SelfName Load (0.9ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
674
+ HasManyBooleansTest::SelfName Update (1.6ms) UPDATE "self_names" SET "booleans" = 7 WHERE "id" = 1
675
+ HasManyBooleansTest::SelfName Load (1.1ms) SELECT * FROM "self_names" ORDER BY self_names.id DESC LIMIT 1
676
+ HasManyBooleansTest::ArCallback Create (4.0ms) INSERT INTO "ar_callbacks" ("name", "booleans") VALUES('matz', 0)
677
+ HasManyBooleansTest::ArCallback Load (1.2ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
678
+ HasManyBooleansTest::ArCallback Update (4.4ms) UPDATE "ar_callbacks" SET "booleans" = 2 WHERE "id" = 2
679
+ HasManyBooleansTest::ArCallback Load (2.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
680
+ HasManyBooleansTest::ArCallback Load (0.9ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
681
+ HasManyBooleansTest::ArCallback Update (1.6ms) UPDATE "ar_callbacks" SET "booleans" = 6 WHERE "id" = 2
682
+ HasManyBooleansTest::ArCallback Load (1.1ms) SELECT * FROM "ar_callbacks" ORDER BY ar_callbacks.id DESC LIMIT 1
683
+ HasManyBooleansTest::LazyFalse Create (2.2ms) INSERT INTO "lazy_falses" ("name", "booleans") VALUES(NULL, 0)
684
+ HasManyBooleansTest::LazyFalse Load (1.1ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
685
+ HasManyBooleansTest::LazyFalse Update (2.9ms) UPDATE "lazy_falses" SET "booleans" = 2 WHERE "id" = 1
686
+ HasManyBooleansTest::LazyFalse Load (1.6ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
687
+ HasManyBooleansTest::LazyFalse Load (0.5ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
688
+ HasManyBooleansTest::LazyFalse Update (1.6ms) UPDATE "lazy_falses" SET "booleans" = 6 WHERE "id" = 1
689
+ HasManyBooleansTest::LazyFalse Load (1.7ms) SELECT * FROM "lazy_falses" ORDER BY lazy_falses.id DESC LIMIT 1
690
+ HasManyBooleansTest::FalseValue Create (2.1ms) INSERT INTO "false_values" ("name", "booleans") VALUES(NULL, 0)
691
+ HasManyBooleansTest::FalseValue Load (1.3ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
692
+ HasManyBooleansTest::FalseValue Update (3.0ms) UPDATE "false_values" SET "booleans" = 2 WHERE "id" = 1
693
+ HasManyBooleansTest::FalseValue Load (1.1ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
694
+ HasManyBooleansTest::FalseValue Load (0.9ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
695
+ HasManyBooleansTest::FalseValue Update (1.5ms) UPDATE "false_values" SET "booleans" = 6 WHERE "id" = 1
696
+ HasManyBooleansTest::FalseValue Load (1.1ms) SELECT * FROM "false_values" ORDER BY false_values.id DESC LIMIT 1
697
+ HasManyBooleansTest::Scope Create (2.4ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 0)
698
+ HasManyBooleansTest::Scope Create (4.0ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 5)
699
+ HasManyBooleansTest::Scope Create (4.6ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 1)
700
+ HasManyBooleansTest::Scope Create (4.0ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 4)
701
+ HasManyBooleansTest::Scope Create (4.0ms) INSERT INTO "scopes" ("name", "booleans") VALUES(NULL, 2)
702
+ HasManyBooleansTest::Scope Load (1.3ms) SELECT * FROM "scopes" WHERE ("scopes"."id" = 5) 
703
+ HasManyBooleansTest::Scope Load (1.0ms) SELECT * FROM "scopes" WHERE (booleans & 2) 
704
+ HasManyBooleansTest::Scope Load (1.4ms) SELECT * FROM "scopes" WHERE ("scopes"."id" IN (1,4,5)) 
705
+ HasManyBooleansTest::Scope Load (0.8ms) SELECT * FROM "scopes" WHERE (booleans & 1 < 1) 
706
+ HasManyBooleansTest::Scope Load (0.9ms) SELECT * FROM "scopes" WHERE ("scopes"."id" IN (2,4,5)) 
707
+ HasManyBooleansTest::Scope Load (1.1ms) SELECT * FROM "scopes" WHERE (booleans & 2 or booleans & 4) 
708
+ HasManyBooleansTest::Scope Load (0.4ms) SELECT * FROM "scopes" WHERE ((booleans & 4) AND (booleans & 2)) 
709
+ HasManyBooleansTest::ValidateTest Create (8.3ms) INSERT INTO "validate_tests" ("name", "booleans") VALUES(NULL, 2)
710
+ HasManyBooleansTest::ValidateTest Create (2.3ms) INSERT INTO "validate_tests" ("name", "booleans") VALUES(NULL, 2)