forest_liana 2.15.3 → 2.15.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 785830845383c11db978effd5a8c3d35e631b03e
4
- data.tar.gz: d9566aa71ae3cb96b9de1e4ebbc914b3bc288bb3
3
+ metadata.gz: a0db878eb70188ca63ea4accc197fd525ed5cae7
4
+ data.tar.gz: 162421558c6cdeab776306be38fc6ce322e496e7
5
5
  SHA512:
6
- metadata.gz: 5581f31bec28b85cbb9ec18f255dd904b8158e257049564ea37477b84c323e52df349b3b042a63b18f6f35749e49ea1dffb16c6d88f1072f7d5ccfeb52718ff4
7
- data.tar.gz: c10730264014d634bf066373d4c8589b0b1d31b8363e3cf3d17e064d0ef7fb7034aa526d19a7b394eac78659abe9fd6db850a6b799108e1b31feb5660c6cd6ff
6
+ metadata.gz: 9e8d015eb827d74a8e1c0009c82340af3c6ac64bfeb76c6158cd1237e750bc08f8cd1542a73d8da8f17d51134beae2e2fbdb03a04b98f9c20b6a693ba9b22e0e
7
+ data.tar.gz: 86c54422a3e6a18976f0a316e3a0869a130077437ac394b2ee44a70a31b4c3c77a37d0cf0180b24745a2af9ae173b1d63962974d421311ed5ffcf34b5a20dfae
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
17
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
18
  load 'rails/tasks/engine.rake'
19
19
 
20
20
 
@@ -98,7 +98,8 @@ module ForestLiana
98
98
  def add_columns
99
99
  @model.columns.each do |column|
100
100
  unless is_sti_column_of_child_model?(column)
101
- collection.fields << get_schema_for_column(column)
101
+ field_schema = get_schema_for_column(column)
102
+ collection.fields << field_schema unless field_schema.nil?
102
103
  end
103
104
  end
104
105
 
@@ -283,7 +284,10 @@ module ForestLiana
283
284
  end
284
285
 
285
286
  def get_schema_for_column(column)
286
- schema = { field: column.name, type: get_type_for(column) }
287
+ column_type = get_type_for(column)
288
+ return nil if column_type.nil?
289
+
290
+ schema = { field: column.name, type: column_type }
287
291
  add_enum_values_if_is_enum(schema, column)
288
292
  add_enum_values_if_is_sti_model(schema, column)
289
293
  add_default_value(schema, column)
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.15.3"
2
+ VERSION = "2.15.4"
3
3
  end
Binary file
@@ -1058,3 +1058,1803 @@ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
1058
1058
  ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
1059
1059
  ---------------------------------------------------------------------
1060
1060
   (0.0ms) rollback transaction
1061
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1062
+  (0.1ms) select sqlite_version(*)
1063
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1064
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1065
+ Migrating to CreateDateField (20150608130516)
1066
+  (0.1ms) begin transaction
1067
+  (0.5ms) CREATE TABLE "date_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" date)
1068
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608130516"]]
1069
+  (2.0ms) commit transaction
1070
+ Migrating to CreateIntegerField (20150608131430)
1071
+  (0.1ms) begin transaction
1072
+  (0.7ms) CREATE TABLE "integer_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" integer)
1073
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131430"]]
1074
+  (2.3ms) commit transaction
1075
+ Migrating to CreateDecimalField (20150608131603)
1076
+  (0.2ms) begin transaction
1077
+  (0.7ms) CREATE TABLE "decimal_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" decimal)
1078
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131603"]]
1079
+  (1.0ms) commit transaction
1080
+ Migrating to CreateFloatField (20150608131610)
1081
+  (0.2ms) begin transaction
1082
+  (0.5ms) CREATE TABLE "float_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" float)
1083
+ SQL (12.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131610"]]
1084
+  (6.9ms) commit transaction
1085
+ Migrating to CreateBooleanField (20150608132159)
1086
+  (0.1ms) begin transaction
1087
+  (0.5ms) CREATE TABLE "boolean_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" boolean)
1088
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608132159"]]
1089
+  (0.8ms) commit transaction
1090
+ Migrating to CreateStringField (20150608132621)
1091
+  (0.1ms) begin transaction
1092
+  (0.4ms) CREATE TABLE "string_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar)
1093
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608132621"]]
1094
+  (15.2ms) commit transaction
1095
+ Migrating to CreateBelongsToField (20150608133038)
1096
+  (0.1ms) begin transaction
1097
+  (0.5ms) CREATE TABLE "belongs_to_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer, "has_many_class_name_field_id" integer, "has_many_field_id" integer)
1098
+  (0.1ms) CREATE INDEX "index_belongs_to_fields_on_has_one_field_id" ON "belongs_to_fields" ("has_one_field_id")
1099
+  (0.1ms) SELECT sql
1100
+ FROM sqlite_master
1101
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1102
+ UNION ALL
1103
+ SELECT sql
1104
+ FROM sqlite_temp_master
1105
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1106
+
1107
+  (0.2ms) CREATE INDEX "index_belongs_to_fields_on_has_many_class_name_field_id" ON "belongs_to_fields" ("has_many_class_name_field_id")
1108
+  (0.1ms) SELECT sql
1109
+ FROM sqlite_master
1110
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1111
+ UNION ALL
1112
+ SELECT sql
1113
+ FROM sqlite_temp_master
1114
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1115
+
1116
+  (0.1ms)  SELECT sql
1117
+ FROM sqlite_master
1118
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1119
+ UNION ALL
1120
+ SELECT sql
1121
+ FROM sqlite_temp_master
1122
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1123
+ 
1124
+  (0.1ms) CREATE INDEX "index_belongs_to_fields_on_has_many_field_id" ON "belongs_to_fields" ("has_many_field_id")
1125
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608133038"]]
1126
+  (5.5ms) commit transaction
1127
+ Migrating to CreateHasOneField (20150608133044)
1128
+  (0.1ms) begin transaction
1129
+  (0.5ms) CREATE TABLE "has_one_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "checked" boolean, "status" integer DEFAULT 0)
1130
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608133044"]]
1131
+  (3.2ms) commit transaction
1132
+ Migrating to CreateHasManyField (20150608150016)
1133
+  (0.6ms) begin transaction
1134
+  (0.5ms) CREATE TABLE "has_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_many_through_field_id" integer)
1135
+  (0.1ms) CREATE INDEX "index_has_many_fields_on_has_many_through_field_id" ON "has_many_fields" ("has_many_through_field_id")
1136
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608150016"]]
1137
+  (1.6ms) commit transaction
1138
+ Migrating to CreateBelongsToClassNameField (20150609114636)
1139
+  (0.1ms) begin transaction
1140
+  (0.5ms) CREATE TABLE "belongs_to_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer) 
1141
+  (0.1ms) CREATE INDEX "index_belongs_to_class_name_fields_on_foo_id" ON "belongs_to_class_name_fields" ("foo_id")
1142
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150609114636"]]
1143
+  (1.1ms) commit transaction
1144
+ Migrating to CreateHasAndBelongsToManyField (20150612112520)
1145
+  (0.1ms) begin transaction
1146
+  (0.5ms) CREATE TABLE "has_and_belongs_to_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
1147
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150612112520"]]
1148
+  (1.1ms) commit transaction
1149
+ Migrating to CreatePolymorphicField (20150616150629)
1150
+  (0.5ms) begin transaction
1151
+  (9.2ms) CREATE TABLE "polymorphic_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer)
1152
+  (0.1ms) CREATE INDEX "index_polymorphic_fields_on_has_one_field_id" ON "polymorphic_fields" ("has_one_field_id")
1153
+ SQL (2.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150616150629"]]
1154
+  (2.5ms) commit transaction
1155
+ Migrating to CreateHasManyClassNameField (20150623115554)
1156
+  (0.1ms) begin transaction
1157
+  (0.4ms) CREATE TABLE "has_many_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1158
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150623115554"]]
1159
+  (2.5ms) commit transaction
1160
+ Migrating to CreateHasManyThroughField (20150814081918)
1161
+  (0.1ms) begin transaction
1162
+  (0.6ms) CREATE TABLE "has_many_through_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1163
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150814081918"]]
1164
+  (1.0ms) commit transaction
1165
+ Migrating to CreateOwner (20160627172810)
1166
+  (0.1ms) begin transaction
1167
+  (0.4ms) CREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
1168
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160627172810"]]
1169
+  (2.1ms) commit transaction
1170
+ Migrating to CreateTree (20160627172951)
1171
+  (0.2ms) begin transaction
1172
+  (3.5ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "owner_id" integer) 
1173
+  (0.3ms) CREATE INDEX "index_trees_on_owner_id" ON "trees" ("owner_id")
1174
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160627172951"]]
1175
+  (26.7ms) commit transaction
1176
+ Migrating to AddTimestamps (20160628173505)
1177
+  (0.1ms) begin transaction
1178
+  (1.0ms) ALTER TABLE "owners" ADD "created_at" datetime
1179
+  (0.2ms) ALTER TABLE "owners" ADD "updated_at" datetime
1180
+  (0.1ms) ALTER TABLE "trees" ADD "created_at" datetime
1181
+  (0.1ms) ALTER TABLE "trees" ADD "updated_at" datetime
1182
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160628173505"]]
1183
+  (1.0ms) commit transaction
1184
+ Migrating to CreateSerializeField (20170614141921)
1185
+  (0.1ms) begin transaction
1186
+  (0.5ms) CREATE TABLE "serialize_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar) 
1187
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170614141921"]]
1188
+  (4.0ms) commit transaction
1189
+ Migrating to CreateReferencesTable (20181111162121)
1190
+  (0.2ms) begin transaction
1191
+  (2.9ms) CREATE TABLE "references" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1192
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20181111162121"]]
1193
+  (12.0ms) commit transaction
1194
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1195
+  (0.1ms)  SELECT sql
1196
+ FROM sqlite_master
1197
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
1198
+ UNION ALL
1199
+ SELECT sql
1200
+ FROM sqlite_temp_master
1201
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
1202
+ 
1203
+  (0.1ms) SELECT sql
1204
+ FROM sqlite_master
1205
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1206
+ UNION ALL
1207
+ SELECT sql
1208
+ FROM sqlite_temp_master
1209
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1210
+
1211
+  (0.1ms)  SELECT sql
1212
+ FROM sqlite_master
1213
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1214
+ UNION ALL
1215
+ SELECT sql
1216
+ FROM sqlite_temp_master
1217
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1218
+ 
1219
+  (0.2ms) SELECT sql
1220
+ FROM sqlite_master
1221
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1222
+ UNION ALL
1223
+ SELECT sql
1224
+ FROM sqlite_temp_master
1225
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1226
+
1227
+  (0.2ms)  SELECT sql
1228
+ FROM sqlite_master
1229
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
1230
+ UNION ALL
1231
+ SELECT sql
1232
+ FROM sqlite_temp_master
1233
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
1234
+ 
1235
+  (0.1ms) SELECT sql
1236
+ FROM sqlite_master
1237
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
1238
+ UNION ALL
1239
+ SELECT sql
1240
+ FROM sqlite_temp_master
1241
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
1242
+
1243
+  (0.1ms)  SELECT sql
1244
+ FROM sqlite_master
1245
+ WHERE name='index_trees_on_owner_id' AND type='index'
1246
+ UNION ALL
1247
+ SELECT sql
1248
+ FROM sqlite_temp_master
1249
+ WHERE name='index_trees_on_owner_id' AND type='index'
1250
+ 
1251
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1252
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1253
+  (0.1ms)  SELECT sql
1254
+ FROM sqlite_master
1255
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
1256
+ UNION ALL
1257
+ SELECT sql
1258
+ FROM sqlite_temp_master
1259
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
1260
+ 
1261
+  (0.1ms) SELECT sql
1262
+ FROM sqlite_master
1263
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1264
+ UNION ALL
1265
+ SELECT sql
1266
+ FROM sqlite_temp_master
1267
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1268
+
1269
+  (0.1ms)  SELECT sql
1270
+ FROM sqlite_master
1271
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1272
+ UNION ALL
1273
+ SELECT sql
1274
+ FROM sqlite_temp_master
1275
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1276
+ 
1277
+  (0.1ms) SELECT sql
1278
+ FROM sqlite_master
1279
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1280
+ UNION ALL
1281
+ SELECT sql
1282
+ FROM sqlite_temp_master
1283
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1284
+
1285
+  (0.1ms)  SELECT sql
1286
+ FROM sqlite_master
1287
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
1288
+ UNION ALL
1289
+ SELECT sql
1290
+ FROM sqlite_temp_master
1291
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
1292
+ 
1293
+  (0.1ms) SELECT sql
1294
+ FROM sqlite_master
1295
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
1296
+ UNION ALL
1297
+ SELECT sql
1298
+ FROM sqlite_temp_master
1299
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
1300
+
1301
+  (0.1ms)  SELECT sql
1302
+ FROM sqlite_master
1303
+ WHERE name='index_trees_on_owner_id' AND type='index'
1304
+ UNION ALL
1305
+ SELECT sql
1306
+ FROM sqlite_temp_master
1307
+ WHERE name='index_trees_on_owner_id' AND type='index'
1308
+ 
1309
+  (6.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1310
+  (0.1ms) select sqlite_version(*)
1311
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1312
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1313
+ Migrating to CreateDateField (20150608130516)
1314
+  (0.1ms) begin transaction
1315
+  (0.6ms) CREATE TABLE "date_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" date)
1316
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608130516"]]
1317
+  (1.1ms) commit transaction
1318
+ Migrating to CreateIntegerField (20150608131430)
1319
+  (0.1ms) begin transaction
1320
+  (0.3ms) CREATE TABLE "integer_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" integer)
1321
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131430"]]
1322
+  (1.1ms) commit transaction
1323
+ Migrating to CreateDecimalField (20150608131603)
1324
+  (0.0ms) begin transaction
1325
+  (0.4ms) CREATE TABLE "decimal_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" decimal)
1326
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131603"]]
1327
+  (0.9ms) commit transaction
1328
+ Migrating to CreateFloatField (20150608131610)
1329
+  (0.1ms) begin transaction
1330
+  (0.5ms) CREATE TABLE "float_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" float)
1331
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608131610"]]
1332
+  (1.0ms) commit transaction
1333
+ Migrating to CreateBooleanField (20150608132159)
1334
+  (0.1ms) begin transaction
1335
+  (0.4ms) CREATE TABLE "boolean_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" boolean)
1336
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608132159"]]
1337
+  (1.0ms) commit transaction
1338
+ Migrating to CreateStringField (20150608132621)
1339
+  (0.1ms) begin transaction
1340
+  (0.6ms) CREATE TABLE "string_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar)
1341
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608132621"]]
1342
+  (1.6ms) commit transaction
1343
+ Migrating to CreateBelongsToField (20150608133038)
1344
+  (0.1ms) begin transaction
1345
+  (0.5ms) CREATE TABLE "belongs_to_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer, "has_many_class_name_field_id" integer, "has_many_field_id" integer)
1346
+  (0.1ms) CREATE INDEX "index_belongs_to_fields_on_has_one_field_id" ON "belongs_to_fields" ("has_one_field_id")
1347
+  (0.1ms) SELECT sql
1348
+ FROM sqlite_master
1349
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1350
+ UNION ALL
1351
+ SELECT sql
1352
+ FROM sqlite_temp_master
1353
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1354
+
1355
+  (0.1ms) CREATE INDEX "index_belongs_to_fields_on_has_many_class_name_field_id" ON "belongs_to_fields" ("has_many_class_name_field_id")
1356
+  (0.0ms) SELECT sql
1357
+ FROM sqlite_master
1358
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1359
+ UNION ALL
1360
+ SELECT sql
1361
+ FROM sqlite_temp_master
1362
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1363
+
1364
+  (0.0ms)  SELECT sql
1365
+ FROM sqlite_master
1366
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1367
+ UNION ALL
1368
+ SELECT sql
1369
+ FROM sqlite_temp_master
1370
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1371
+ 
1372
+  (0.1ms) CREATE INDEX "index_belongs_to_fields_on_has_many_field_id" ON "belongs_to_fields" ("has_many_field_id")
1373
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608133038"]]
1374
+  (1.7ms) commit transaction
1375
+ Migrating to CreateHasOneField (20150608133044)
1376
+  (0.1ms) begin transaction
1377
+  (0.5ms) CREATE TABLE "has_one_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "checked" boolean, "status" integer DEFAULT 0)
1378
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608133044"]]
1379
+  (1.3ms) commit transaction
1380
+ Migrating to CreateHasManyField (20150608150016)
1381
+  (0.1ms) begin transaction
1382
+  (0.4ms) CREATE TABLE "has_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_many_through_field_id" integer)
1383
+  (0.1ms) CREATE INDEX "index_has_many_fields_on_has_many_through_field_id" ON "has_many_fields" ("has_many_through_field_id")
1384
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150608150016"]]
1385
+  (1.4ms) commit transaction
1386
+ Migrating to CreateBelongsToClassNameField (20150609114636)
1387
+  (0.1ms) begin transaction
1388
+  (0.4ms) CREATE TABLE "belongs_to_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer) 
1389
+  (0.1ms) CREATE INDEX "index_belongs_to_class_name_fields_on_foo_id" ON "belongs_to_class_name_fields" ("foo_id")
1390
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150609114636"]]
1391
+  (1.6ms) commit transaction
1392
+ Migrating to CreateHasAndBelongsToManyField (20150612112520)
1393
+  (0.1ms) begin transaction
1394
+  (1.6ms) CREATE TABLE "has_and_belongs_to_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
1395
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150612112520"]]
1396
+  (1.1ms) commit transaction
1397
+ Migrating to CreatePolymorphicField (20150616150629)
1398
+  (0.1ms) begin transaction
1399
+  (0.6ms) CREATE TABLE "polymorphic_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer)
1400
+  (0.5ms) CREATE INDEX "index_polymorphic_fields_on_has_one_field_id" ON "polymorphic_fields" ("has_one_field_id")
1401
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150616150629"]]
1402
+  (3.6ms) commit transaction
1403
+ Migrating to CreateHasManyClassNameField (20150623115554)
1404
+  (0.1ms) begin transaction
1405
+  (0.4ms) CREATE TABLE "has_many_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1406
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150623115554"]]
1407
+  (1.0ms) commit transaction
1408
+ Migrating to CreateHasManyThroughField (20150814081918)
1409
+  (0.1ms) begin transaction
1410
+  (0.4ms) CREATE TABLE "has_many_through_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1411
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150814081918"]]
1412
+  (4.4ms) commit transaction
1413
+ Migrating to CreateOwner (20160627172810)
1414
+  (0.1ms) begin transaction
1415
+  (0.4ms) CREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
1416
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160627172810"]]
1417
+  (1.5ms) commit transaction
1418
+ Migrating to CreateTree (20160627172951)
1419
+  (0.1ms) begin transaction
1420
+  (0.3ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "owner_id" integer) 
1421
+  (0.1ms) CREATE INDEX "index_trees_on_owner_id" ON "trees" ("owner_id")
1422
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160627172951"]]
1423
+  (0.9ms) commit transaction
1424
+ Migrating to AddTimestamps (20160628173505)
1425
+  (0.1ms) begin transaction
1426
+  (0.5ms) ALTER TABLE "owners" ADD "created_at" datetime
1427
+  (0.1ms) ALTER TABLE "owners" ADD "updated_at" datetime
1428
+  (0.1ms) ALTER TABLE "trees" ADD "created_at" datetime
1429
+  (0.1ms) ALTER TABLE "trees" ADD "updated_at" datetime
1430
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160628173505"]]
1431
+  (0.9ms) commit transaction
1432
+ Migrating to CreateSerializeField (20170614141921)
1433
+  (0.1ms) begin transaction
1434
+  (0.4ms) CREATE TABLE "serialize_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar) 
1435
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170614141921"]]
1436
+  (0.9ms) commit transaction
1437
+ Migrating to CreateReferencesTable (20181111162121)
1438
+  (0.0ms) begin transaction
1439
+  (0.3ms) CREATE TABLE "references" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1440
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20181111162121"]]
1441
+  (1.9ms) commit transaction
1442
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1443
+  (0.3ms)  SELECT sql
1444
+ FROM sqlite_master
1445
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
1446
+ UNION ALL
1447
+ SELECT sql
1448
+ FROM sqlite_temp_master
1449
+ WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
1450
+ 
1451
+  (0.3ms) SELECT sql
1452
+ FROM sqlite_master
1453
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1454
+ UNION ALL
1455
+ SELECT sql
1456
+ FROM sqlite_temp_master
1457
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1458
+
1459
+  (0.2ms)  SELECT sql
1460
+ FROM sqlite_master
1461
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1462
+ UNION ALL
1463
+ SELECT sql
1464
+ FROM sqlite_temp_master
1465
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1466
+ 
1467
+  (0.5ms) SELECT sql
1468
+ FROM sqlite_master
1469
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1470
+ UNION ALL
1471
+ SELECT sql
1472
+ FROM sqlite_temp_master
1473
+ WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
1474
+
1475
+  (0.1ms)  SELECT sql
1476
+ FROM sqlite_master
1477
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
1478
+ UNION ALL
1479
+ SELECT sql
1480
+ FROM sqlite_temp_master
1481
+ WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
1482
+ 
1483
+  (0.2ms) SELECT sql
1484
+ FROM sqlite_master
1485
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
1486
+ UNION ALL
1487
+ SELECT sql
1488
+ FROM sqlite_temp_master
1489
+ WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
1490
+
1491
+  (0.1ms)  SELECT sql
1492
+ FROM sqlite_master
1493
+ WHERE name='index_trees_on_owner_id' AND type='index'
1494
+ UNION ALL
1495
+ SELECT sql
1496
+ FROM sqlite_temp_master
1497
+ WHERE name='index_trees_on_owner_id' AND type='index'
1498
+ 
1499
+  (1.4ms) CREATE TABLE "belongs_to_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer) 
1500
+  (0.1ms) select sqlite_version(*)
1501
+  (2.1ms) CREATE INDEX "index_belongs_to_class_name_fields_on_foo_id" ON "belongs_to_class_name_fields" ("foo_id")
1502
+  (1.7ms) CREATE TABLE "belongs_to_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer, "has_many_class_name_field_id" integer, "has_many_field_id" integer)
1503
+  (1.7ms) CREATE INDEX "index_belongs_to_fields_on_has_many_class_name_field_id" ON "belongs_to_fields" ("has_many_class_name_field_id")
1504
+  (0.1ms) SELECT sql
1505
+ FROM sqlite_master
1506
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1507
+ UNION ALL
1508
+ SELECT sql
1509
+ FROM sqlite_temp_master
1510
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1511
+
1512
+  (1.2ms) CREATE INDEX "index_belongs_to_fields_on_has_many_field_id" ON "belongs_to_fields" ("has_many_field_id")
1513
+  (0.1ms) SELECT sql
1514
+ FROM sqlite_master
1515
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1516
+ UNION ALL
1517
+ SELECT sql
1518
+ FROM sqlite_temp_master
1519
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1520
+
1521
+  (0.1ms)  SELECT sql
1522
+ FROM sqlite_master
1523
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1524
+ UNION ALL
1525
+ SELECT sql
1526
+ FROM sqlite_temp_master
1527
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1528
+ 
1529
+  (1.0ms) CREATE INDEX "index_belongs_to_fields_on_has_one_field_id" ON "belongs_to_fields" ("has_one_field_id")
1530
+  (1.1ms) CREATE TABLE "boolean_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" boolean) 
1531
+  (2.9ms) CREATE TABLE "date_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" date)
1532
+  (3.5ms) CREATE TABLE "decimal_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" decimal) 
1533
+  (2.0ms) CREATE TABLE "float_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" float)
1534
+  (1.5ms) CREATE TABLE "has_and_belongs_to_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1535
+  (1.9ms) CREATE TABLE "has_many_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
1536
+  (1.9ms) CREATE TABLE "has_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_many_through_field_id" integer) 
1537
+  (3.7ms) CREATE INDEX "index_has_many_fields_on_has_many_through_field_id" ON "has_many_fields" ("has_many_through_field_id")
1538
+  (10.8ms) CREATE TABLE "has_many_through_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1539
+  (1.1ms) CREATE TABLE "has_one_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "checked" boolean, "status" integer DEFAULT 0)
1540
+  (2.1ms) CREATE TABLE "integer_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" integer) 
1541
+  (2.0ms) CREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
1542
+  (2.6ms) CREATE TABLE "polymorphic_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer) 
1543
+  (2.2ms) CREATE INDEX "index_polymorphic_fields_on_has_one_field_id" ON "polymorphic_fields" ("has_one_field_id")
1544
+  (1.8ms) CREATE TABLE "references" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
1545
+  (1.2ms) CREATE TABLE "serialize_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar)
1546
+  (1.2ms) CREATE TABLE "string_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar) 
1547
+  (0.9ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "owner_id" integer, "created_at" datetime, "updated_at" datetime)
1548
+  (1.1ms) CREATE INDEX "index_trees_on_owner_id" ON "trees" ("owner_id")
1549
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1550
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1551
+  (0.1ms) SELECT version FROM "schema_migrations"
1552
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20181111162121')
1553
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608133038')
1554
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608130516')
1555
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160627172951')
1556
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608132621')
1557
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160627172810')
1558
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150612112520')
1559
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608132159')
1560
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160628173505')
1561
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608133044')
1562
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150814081918')
1563
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609114636')
1564
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608150016')
1565
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131430')
1566
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170614141921')
1567
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131610')
1568
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131603')
1569
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150623115554')
1570
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616150629')
1571
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1572
+  (0.1ms) begin transaction
1573
+ Fixture Delete (0.4ms) DELETE FROM "has_many_through_fields"
1574
+ Fixture Insert (0.2ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
1575
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
1576
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
1577
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
1578
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
1579
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
1580
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
1581
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
1582
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
1583
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
1584
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
1585
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
1586
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
1587
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
1588
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
1589
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
1590
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
1591
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
1592
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
1593
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
1594
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
1595
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
1596
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
1597
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
1598
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
1599
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
1600
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
1601
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
1602
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
1603
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
1604
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
1605
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
1606
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
1607
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
1608
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
1609
+ Fixture Insert (0.2ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
1610
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
1611
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
1612
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
1613
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
1614
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
1615
+ Fixture Delete (0.2ms) DELETE FROM "belongs_to_fields"
1616
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
1617
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
1618
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
1619
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
1620
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
1621
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
1622
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
1623
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
1624
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
1625
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
1626
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
1627
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
1628
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
1629
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
1630
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
1631
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
1632
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
1633
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
1634
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
1635
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
1636
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
1637
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
1638
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
1639
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
1640
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
1641
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
1642
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
1643
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
1644
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
1645
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
1646
+ Fixture Delete (0.1ms) DELETE FROM "trees"
1647
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2012-02-11 11:00:00.000000', '2012-02-11 11:00:00.000000')
1648
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2012-02-15 21:00:00.000000', '2012-02-15 21:00:00.000000')
1649
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2014-04-11 12:00:00.000000', '2014-04-11 12:00:00.000000')
1650
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2017-06-18 09:00:00.000000', '2017-06-18 09:00:00.000000')
1651
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
1652
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2019-02-26 13:42:34.000000', '2019-02-26 13:42:34.000000')
1653
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2019-02-26 13:42:34.000000', '2019-02-26 13:42:34.000000')
1654
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2019-02-26 13:42:34.000000', '2019-02-26 13:42:34.000000')
1655
+ Fixture Delete (0.1ms) DELETE FROM "has_one_fields"
1656
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
1657
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
1658
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
1659
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
1660
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
1661
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
1662
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
1663
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
1664
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
1665
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
1666
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
1667
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
1668
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
1669
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
1670
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
1671
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
1672
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
1673
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
1674
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
1675
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
1676
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
1677
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
1678
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
1679
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
1680
+ Fixture Insert (0.3ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
1681
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
1682
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
1683
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
1684
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
1685
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
1686
+ Fixture Delete (0.1ms) DELETE FROM "references"
1687
+ Fixture Insert (0.1ms) INSERT INTO "references" ("id") VALUES (1)
1688
+ Fixture Delete (0.2ms) DELETE FROM "owners"
1689
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2018-05-30 09:00:00.000000', '2019-06-27 20:00:00.000000')
1690
+ Fixture Insert (0.2ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2019-05-02 09:00:00.000000', '2019-06-28 08:00:00.000000')
1691
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2017-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
1692
+ Fixture Delete (0.2ms) DELETE FROM "has_many_fields"
1693
+ Fixture Insert (0.3ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
1694
+ Fixture Insert (0.2ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
1695
+ Fixture Insert (0.5ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
1696
+ Fixture Insert (0.3ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
1697
+ Fixture Insert (0.3ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
1698
+ Fixture Insert (0.2ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
1699
+ Fixture Insert (0.3ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
1700
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
1701
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
1702
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
1703
+ Fixture Delete (0.1ms) DELETE FROM "serialize_fields"
1704
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
1705
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')
1706
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
1707
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')
1708
+ Fixture Insert (0.1ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
1709
+  (2.1ms) commit transaction
1710
+  (0.1ms) begin transaction
1711
+ ---------------------------
1712
+ ForestLianaTest: test_truth
1713
+ ---------------------------
1714
+  (0.1ms) rollback transaction
1715
+  (0.1ms) begin transaction
1716
+ -----------------------------------------------------------------------------------------
1717
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
1718
+ -----------------------------------------------------------------------------------------
1719
+  (0.1ms) SELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC
1720
+  (0.1ms) rollback transaction
1721
+  (0.0ms) begin transaction
1722
+ ---------------------------------------------------------------------------------------
1723
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
1724
+ ---------------------------------------------------------------------------------------
1725
+  (0.6ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") AS count_id, belongs_to_fields.has_one_field_id AS belongs_to_fields_has_one_field_id FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" GROUP BY belongs_to_fields.has_one_field_id ORDER BY count_id DESC
1726
+  (0.0ms) rollback transaction
1727
+  (0.1ms) begin transaction
1728
+ -----------------------------------
1729
+ ForestLiana::RouteTest: test_Routes
1730
+ -----------------------------------
1731
+  (0.1ms) rollback transaction
1732
+  (0.0ms) begin transaction
1733
+ -----------------------------------------------------------------------------
1734
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
1735
+ -----------------------------------------------------------------------------
1736
+  (0.1ms) SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
1737
+  (0.0ms) rollback transaction
1738
+  (0.1ms) begin transaction
1739
+ ----------------------------------------------------------------------------------------------------
1740
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
1741
+ ----------------------------------------------------------------------------------------------------
1742
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')
1743
+  (0.1ms) rollback transaction
1744
+  (0.0ms) begin transaction
1745
+ -------------------------------------------------------------------------------------------------
1746
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
1747
+ -------------------------------------------------------------------------------------------------
1748
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."status" = '1')
1749
+  (0.0ms) rollback transaction
1750
+  (0.1ms) begin transaction
1751
+ ----------------------------------------------------------------------------------------------------
1752
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
1753
+ ----------------------------------------------------------------------------------------------------
1754
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."checked" = 0)
1755
+  (0.0ms) rollback transaction
1756
+  (0.0ms) begin transaction
1757
+ -----------------------------------------------------------------------
1758
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
1759
+ -----------------------------------------------------------------------
1760
+ SQL (0.2ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
1761
+  (0.2ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id"
1762
+  (0.1ms) rollback transaction
1763
+  (0.1ms) begin transaction
1764
+ --------------------------------------------------------------------
1765
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
1766
+ --------------------------------------------------------------------
1767
+ SQL (0.2ms) SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
1768
+  (0.1ms) SELECT COUNT(DISTINCT "has_one_fields"."id") FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id"
1769
+  (0.1ms) rollback transaction
1770
+  (0.0ms) begin transaction
1771
+ ----------------------------------------------------------
1772
+ ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
1773
+ ----------------------------------------------------------
1774
+ SQL (0.7ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" > '2019-02-26 13:41:35 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
1775
+  (0.2ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2019-02-26 13:41:35 UTC')
1776
+  (0.1ms) rollback transaction
1777
+  (0.0ms) begin transaction
1778
+ --------------------------------------------------------------------------------------------------------
1779
+ ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_of_an_associated_collection_that_does_not_exist
1780
+ --------------------------------------------------------------------------------------------------------
1781
+  (0.1ms) rollback transaction
1782
+  (0.0ms) begin transaction
1783
+ ----------------------------------------------------------------
1784
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
1785
+ ----------------------------------------------------------------
1786
+ SQL (0.3ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."field" DESC LIMIT 10 OFFSET 0
1787
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
1788
+  (0.1ms) rollback transaction
1789
+  (0.0ms) begin transaction
1790
+ -----------------------------------------------------------------
1791
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
1792
+ -----------------------------------------------------------------
1793
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."id" DESC LIMIT 10 OFFSET 10
1794
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
1795
+  (0.1ms) rollback transaction
1796
+  (0.0ms) begin transaction
1797
+ ------------------------------------------------------------------------------------------------
1798
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
1799
+ ------------------------------------------------------------------------------------------------
1800
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
1801
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC')
1802
+  (0.1ms) rollback transaction
1803
+  (0.0ms) begin transaction
1804
+ -----------------------------------------------------------------
1805
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
1806
+ -----------------------------------------------------------------
1807
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."id" DESC LIMIT 15 OFFSET 0
1808
+  (0.2ms) SELECT COUNT(*) FROM "string_fields"
1809
+  (0.1ms) rollback transaction
1810
+  (0.2ms) begin transaction
1811
+ ------------------------------------------------------------------------------------
1812
+ ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
1813
+ ------------------------------------------------------------------------------------
1814
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY "trees"."name" DESC LIMIT 10 OFFSET 0
1815
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
1816
+  (0.0ms) rollback transaction
1817
+  (0.0ms) begin transaction
1818
+ ----------------------------------------------------------------
1819
+ ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
1820
+ ----------------------------------------------------------------
1821
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
1822
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier')
1823
+  (0.0ms) rollback transaction
1824
+  (0.1ms) begin transaction
1825
+ -------------------------------------------------------------------------------------------
1826
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
1827
+ -------------------------------------------------------------------------------------------
1828
+ SQL (0.1ms) SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC') ORDER BY "owners"."created_at" DESC LIMIT 10 OFFSET 0
1829
+  (0.0ms) SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC')
1830
+  (0.0ms) rollback transaction
1831
+  (0.0ms) begin transaction
1832
+ -----------------------------------------------------------------------------
1833
+ ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_that_does_not_exists
1834
+ -----------------------------------------------------------------------------
1835
+  (0.1ms) rollback transaction
1836
+  (0.1ms) begin transaction
1837
+ ------------------------------------------------------------
1838
+ ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
1839
+ ------------------------------------------------------------
1840
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" < '2019-02-26 13:41:35 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
1841
+  (0.0ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2019-02-26 13:41:35 UTC')
1842
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 2]]
1843
+  (0.0ms) rollback transaction
1844
+  (0.0ms) begin transaction
1845
+ ------------------------------------------------------------------------------------------------------
1846
+ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
1847
+ ------------------------------------------------------------------------------------------------------
1848
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
1849
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
1850
+  (0.0ms) rollback transaction
1851
+  (0.0ms) begin transaction
1852
+ ------------------------------------------------------------------------
1853
+ ForestLiana::ResourcesGetterTest: test_on_a_model_having_a_reserved_name
1854
+ ------------------------------------------------------------------------
1855
+ SQL (0.1ms) SELECT "references"."id" AS t0_r0 FROM "references" ORDER BY "references"."id" DESC LIMIT 10 OFFSET 0
1856
+  (0.0ms) SELECT COUNT(*) FROM "references"
1857
+  (0.0ms) rollback transaction
1858
+  (0.0ms) begin transaction
1859
+ ------------------------------------------------------------------------------------------------------
1860
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
1861
+ ------------------------------------------------------------------------------------------------------
1862
+ SerializeField Load (0.2ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
1863
+  (0.1ms) SAVEPOINT active_record_1
1864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1865
+  (0.0ms) rollback transaction
1866
+  (0.0ms) begin transaction
1867
+ ---------------------------------------------------------------------------------------------------
1868
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
1869
+ ---------------------------------------------------------------------------------------------------
1870
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
1871
+  (0.1ms) SAVEPOINT active_record_1
1872
+ SQL (0.3ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
1873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1874
+  (0.8ms) rollback transaction
1875
+  (0.0ms) begin transaction
1876
+ ------------------------------------------------------------------------------------------------------------
1877
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
1878
+ ------------------------------------------------------------------------------------------------------------
1879
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
1880
+  (0.0ms) SAVEPOINT active_record_1
1881
+ SQL (0.2ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
1882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1883
+  (0.5ms) rollback transaction
1884
+  (0.1ms) begin transaction
1885
+ ---------------------------------------------------------------------------------------------------------
1886
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
1887
+ ---------------------------------------------------------------------------------------------------------
1888
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
1889
+  (0.1ms) rollback transaction
1890
+  (0.1ms) begin transaction
1891
+ -----------------------------------------------------------
1892
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
1893
+ -----------------------------------------------------------
1894
+  (0.1ms) rollback transaction
1895
+  (0.1ms) begin transaction
1896
+ ---------------------------------------------------------------------
1897
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
1898
+ ---------------------------------------------------------------------
1899
+  (0.1ms) rollback transaction
1900
+  (0.1ms) begin transaction
1901
+ ------------------------------------------------------------------------------------
1902
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
1903
+ ------------------------------------------------------------------------------------
1904
+  (0.1ms) rollback transaction
1905
+  (0.1ms) begin transaction
1906
+ -------------------------------------------------------------------------
1907
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
1908
+ -------------------------------------------------------------------------
1909
+  (0.1ms) rollback transaction
1910
+  (0.1ms) begin transaction
1911
+ --------------------------------------------------------
1912
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
1913
+ --------------------------------------------------------
1914
+  (0.1ms) rollback transaction
1915
+  (0.1ms) begin transaction
1916
+ ------------------------------------------------------------------------
1917
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
1918
+ ------------------------------------------------------------------------
1919
+  (0.1ms) rollback transaction
1920
+  (0.0ms) begin transaction
1921
+ ---------------------------------------------------------
1922
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
1923
+ ---------------------------------------------------------
1924
+  (0.1ms) rollback transaction
1925
+  (0.1ms) begin transaction
1926
+ -------------------------------------------------------------------------
1927
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
1928
+ -------------------------------------------------------------------------
1929
+  (0.1ms) rollback transaction
1930
+  (0.1ms) begin transaction
1931
+ ---------------------------------------------------------------------------
1932
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
1933
+ ---------------------------------------------------------------------------
1934
+  (0.1ms) rollback transaction
1935
+  (0.1ms) begin transaction
1936
+ ----------------------------------------------------------------------------------
1937
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
1938
+ ----------------------------------------------------------------------------------
1939
+  (0.1ms) rollback transaction
1940
+  (0.1ms) begin transaction
1941
+ --------------------------------------------------------------------------
1942
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
1943
+ --------------------------------------------------------------------------
1944
+  (0.1ms) rollback transaction
1945
+  (0.1ms) begin transaction
1946
+ --------------------------------------------------------------------------
1947
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
1948
+ --------------------------------------------------------------------------
1949
+  (0.1ms) rollback transaction
1950
+  (0.1ms) begin transaction
1951
+ ------------------------------------------------------------------
1952
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
1953
+ ------------------------------------------------------------------
1954
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
1955
+  (0.3ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
1956
+  (0.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
1957
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
1958
+  (0.1ms) rollback transaction
1959
+  (0.0ms) begin transaction
1960
+ -------------------------------------------------------------------------
1961
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
1962
+ -------------------------------------------------------------------------
1963
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
1964
+  (0.5ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') [["owner_id", 1]]
1965
+  (0.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
1966
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
1967
+  (0.1ms) rollback transaction
1968
+  (0.0ms) begin transaction
1969
+ -----------------------------------------------------------------------
1970
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
1971
+ -----------------------------------------------------------------------
1972
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
1973
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
1974
+  (0.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
1975
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0 [["owner_id", 1]]
1976
+  (0.0ms) rollback transaction
1977
+  (6.6ms) CREATE TABLE "belongs_to_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer) 
1978
+  (0.1ms) select sqlite_version(*)
1979
+  (1.2ms) CREATE INDEX "index_belongs_to_class_name_fields_on_foo_id" ON "belongs_to_class_name_fields" ("foo_id")
1980
+  (1.2ms) CREATE TABLE "belongs_to_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer, "has_many_class_name_field_id" integer, "has_many_field_id" integer)
1981
+  (1.1ms) CREATE INDEX "index_belongs_to_fields_on_has_many_class_name_field_id" ON "belongs_to_fields" ("has_many_class_name_field_id")
1982
+  (0.1ms) SELECT sql
1983
+ FROM sqlite_master
1984
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1985
+ UNION ALL
1986
+ SELECT sql
1987
+ FROM sqlite_temp_master
1988
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
1989
+
1990
+  (1.0ms) CREATE INDEX "index_belongs_to_fields_on_has_many_field_id" ON "belongs_to_fields" ("has_many_field_id")
1991
+  (0.1ms) SELECT sql
1992
+ FROM sqlite_master
1993
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1994
+ UNION ALL
1995
+ SELECT sql
1996
+ FROM sqlite_temp_master
1997
+ WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
1998
+
1999
+  (0.1ms)  SELECT sql
2000
+ FROM sqlite_master
2001
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
2002
+ UNION ALL
2003
+ SELECT sql
2004
+ FROM sqlite_temp_master
2005
+ WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
2006
+ 
2007
+  (1.3ms) CREATE INDEX "index_belongs_to_fields_on_has_one_field_id" ON "belongs_to_fields" ("has_one_field_id")
2008
+  (1.1ms) CREATE TABLE "boolean_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" boolean) 
2009
+  (1.3ms) CREATE TABLE "date_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" date)
2010
+  (1.2ms) CREATE TABLE "decimal_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" decimal) 
2011
+  (1.2ms) CREATE TABLE "float_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" float)
2012
+  (1.3ms) CREATE TABLE "has_and_belongs_to_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
2013
+  (1.1ms) CREATE TABLE "has_many_class_name_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
2014
+  (1.0ms) CREATE TABLE "has_many_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_many_through_field_id" integer) 
2015
+  (0.9ms) CREATE INDEX "index_has_many_fields_on_has_many_through_field_id" ON "has_many_fields" ("has_many_through_field_id")
2016
+  (0.8ms) CREATE TABLE "has_many_through_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
2017
+  (2.2ms) CREATE TABLE "has_one_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "checked" boolean, "status" integer DEFAULT 0)
2018
+  (1.5ms) CREATE TABLE "integer_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" integer) 
2019
+  (3.5ms) CREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime)
2020
+  (2.2ms) CREATE TABLE "polymorphic_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "has_one_field_id" integer) 
2021
+  (3.6ms) CREATE INDEX "index_polymorphic_fields_on_has_one_field_id" ON "polymorphic_fields" ("has_one_field_id")
2022
+  (1.9ms) CREATE TABLE "references" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
2023
+  (3.6ms) CREATE TABLE "serialize_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar)
2024
+  (1.9ms) CREATE TABLE "string_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field" varchar) 
2025
+  (1.9ms) CREATE TABLE "trees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "owner_id" integer, "created_at" datetime, "updated_at" datetime)
2026
+  (1.3ms) CREATE INDEX "index_trees_on_owner_id" ON "trees" ("owner_id")
2027
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2028
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2029
+  (0.1ms) SELECT version FROM "schema_migrations"
2030
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20181111162121')
2031
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608133038')
2032
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608130516')
2033
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160627172951')
2034
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608132621')
2035
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160627172810')
2036
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150612112520')
2037
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608132159')
2038
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160628173505')
2039
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608133044')
2040
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150814081918')
2041
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150609114636')
2042
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608150016')
2043
+  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131430')
2044
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20170614141921')
2045
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131610')
2046
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150608131603')
2047
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150623115554')
2048
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150616150629')
2049
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2050
+  (0.1ms) begin transaction
2051
+ Fixture Delete (0.3ms) DELETE FROM "has_many_through_fields"
2052
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
2053
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
2054
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
2055
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
2056
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
2057
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
2058
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
2059
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
2060
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
2061
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
2062
+ Fixture Delete (0.1ms) DELETE FROM "string_fields"
2063
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
2064
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
2065
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
2066
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
2067
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
2068
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
2069
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
2070
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
2071
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
2072
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
2073
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
2074
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
2075
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
2076
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
2077
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
2078
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
2079
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
2080
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
2081
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
2082
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
2083
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
2084
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
2085
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
2086
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
2087
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
2088
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
2089
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
2090
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
2091
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
2092
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
2093
+ Fixture Delete (0.1ms) DELETE FROM "belongs_to_fields"
2094
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
2095
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
2096
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
2097
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
2098
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
2099
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
2100
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
2101
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
2102
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
2103
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
2104
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
2105
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
2106
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
2107
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
2108
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
2109
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
2110
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
2111
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
2112
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
2113
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
2114
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
2115
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
2116
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
2117
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
2118
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
2119
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
2120
+ Fixture Insert (0.2ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
2121
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
2122
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
2123
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
2124
+ Fixture Delete (0.2ms) DELETE FROM "trees"
2125
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2012-02-11 11:00:00.000000', '2012-02-11 11:00:00.000000')
2126
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2012-02-15 21:00:00.000000', '2012-02-15 21:00:00.000000')
2127
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2014-04-11 12:00:00.000000', '2014-04-11 12:00:00.000000')
2128
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2017-06-18 09:00:00.000000', '2017-06-18 09:00:00.000000')
2129
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
2130
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2019-02-26 13:43:36.000000', '2019-02-26 13:43:36.000000')
2131
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2019-02-26 13:43:36.000000', '2019-02-26 13:43:36.000000')
2132
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2019-02-26 13:43:36.000000', '2019-02-26 13:43:36.000000')
2133
+ Fixture Delete (0.2ms) DELETE FROM "has_one_fields"
2134
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
2135
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
2136
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
2137
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
2138
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
2139
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
2140
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
2141
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
2142
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
2143
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
2144
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
2145
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
2146
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
2147
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
2148
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
2149
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
2150
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
2151
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
2152
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
2153
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
2154
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
2155
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
2156
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
2157
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
2158
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
2159
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
2160
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
2161
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
2162
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
2163
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
2164
+ Fixture Delete (0.1ms) DELETE FROM "references"
2165
+ Fixture Insert (0.0ms) INSERT INTO "references" ("id") VALUES (1)
2166
+ Fixture Delete (0.1ms) DELETE FROM "owners"
2167
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2018-05-30 09:00:00.000000', '2019-06-27 20:00:00.000000')
2168
+ Fixture Insert (0.1ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2019-05-02 09:00:00.000000', '2019-06-28 08:00:00.000000')
2169
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2017-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
2170
+ Fixture Delete (0.1ms) DELETE FROM "has_many_fields"
2171
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
2172
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
2173
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
2174
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
2175
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
2176
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
2177
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
2178
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
2179
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
2180
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
2181
+ Fixture Delete (0.1ms) DELETE FROM "serialize_fields"
2182
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
2183
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')
2184
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
2185
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')
2186
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
2187
+  (2.8ms) commit transaction
2188
+  (0.1ms) begin transaction
2189
+ -----------------------------------------------------------------------
2190
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
2191
+ -----------------------------------------------------------------------
2192
+ Owner Load (0.2ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
2193
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
2194
+  (0.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
2195
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0 [["owner_id", 1]]
2196
+  (0.1ms) rollback transaction
2197
+  (0.0ms) begin transaction
2198
+ ------------------------------------------------------------------
2199
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
2200
+ ------------------------------------------------------------------
2201
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
2202
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
2203
+  (0.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
2204
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
2205
+  (0.0ms) rollback transaction
2206
+  (0.0ms) begin transaction
2207
+ -------------------------------------------------------------------------
2208
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
2209
+ -------------------------------------------------------------------------
2210
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
2211
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') [["owner_id", 1]]
2212
+  (0.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
2213
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
2214
+  (0.1ms) rollback transaction
2215
+  (0.0ms) begin transaction
2216
+ ------------------------------------------------------------------------------------
2217
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
2218
+ ------------------------------------------------------------------------------------
2219
+  (0.1ms) rollback transaction
2220
+  (0.1ms) begin transaction
2221
+ ---------------------------------------------------------
2222
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
2223
+ ---------------------------------------------------------
2224
+  (0.0ms) rollback transaction
2225
+  (0.0ms) begin transaction
2226
+ --------------------------------------------------------------------------
2227
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
2228
+ --------------------------------------------------------------------------
2229
+  (0.0ms) rollback transaction
2230
+  (0.0ms) begin transaction
2231
+ ------------------------------------------------------------------------
2232
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
2233
+ ------------------------------------------------------------------------
2234
+  (0.0ms) rollback transaction
2235
+  (0.0ms) begin transaction
2236
+ --------------------------------------------------------------------------
2237
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
2238
+ --------------------------------------------------------------------------
2239
+  (0.0ms) rollback transaction
2240
+  (0.0ms) begin transaction
2241
+ ----------------------------------------------------------------------------------
2242
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
2243
+ ----------------------------------------------------------------------------------
2244
+  (0.0ms) rollback transaction
2245
+  (0.1ms) begin transaction
2246
+ ---------------------------------------------------------------------------
2247
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
2248
+ ---------------------------------------------------------------------------
2249
+  (0.2ms) rollback transaction
2250
+  (0.4ms) begin transaction
2251
+ -------------------------------------------------------------------------
2252
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
2253
+ -------------------------------------------------------------------------
2254
+  (0.0ms) rollback transaction
2255
+  (0.0ms) begin transaction
2256
+ -----------------------------------------------------------
2257
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
2258
+ -----------------------------------------------------------
2259
+  (0.0ms) rollback transaction
2260
+  (0.1ms) begin transaction
2261
+ --------------------------------------------------------
2262
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
2263
+ --------------------------------------------------------
2264
+  (0.0ms) rollback transaction
2265
+  (0.0ms) begin transaction
2266
+ ---------------------------------------------------------------------
2267
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
2268
+ ---------------------------------------------------------------------
2269
+  (0.0ms) rollback transaction
2270
+  (0.0ms) begin transaction
2271
+ -------------------------------------------------------------------------
2272
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
2273
+ -------------------------------------------------------------------------
2274
+  (0.0ms) rollback transaction
2275
+  (0.0ms) begin transaction
2276
+ ------------------------------------------------------------------------------------------------------------
2277
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
2278
+ ------------------------------------------------------------------------------------------------------------
2279
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2280
+  (0.0ms) SAVEPOINT active_record_1
2281
+ SQL (0.3ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
2282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2283
+  (5.5ms) rollback transaction
2284
+  (0.1ms) begin transaction
2285
+ ---------------------------------------------------------------------------------------------------------
2286
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
2287
+ ---------------------------------------------------------------------------------------------------------
2288
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2289
+  (0.1ms) rollback transaction
2290
+  (0.0ms) begin transaction
2291
+ ---------------------------------------------------------------------------------------------------
2292
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
2293
+ ---------------------------------------------------------------------------------------------------
2294
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2295
+  (0.1ms) SAVEPOINT active_record_1
2296
+ SQL (0.3ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
2297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2298
+  (0.4ms) rollback transaction
2299
+  (0.1ms) begin transaction
2300
+ ------------------------------------------------------------------------------------------------------
2301
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
2302
+ ------------------------------------------------------------------------------------------------------
2303
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2304
+  (0.1ms) SAVEPOINT active_record_1
2305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2306
+  (0.1ms) rollback transaction
2307
+  (0.1ms) begin transaction
2308
+ ---------------------------
2309
+ ForestLianaTest: test_truth
2310
+ ---------------------------
2311
+  (0.1ms) rollback transaction
2312
+  (0.1ms) begin transaction
2313
+ -----------------------------------
2314
+ ForestLiana::RouteTest: test_Routes
2315
+ -----------------------------------
2316
+  (0.1ms) rollback transaction
2317
+  (0.0ms) begin transaction
2318
+ ----------------------------------------------------------------------------------------------------
2319
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
2320
+ ----------------------------------------------------------------------------------------------------
2321
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."checked" = 0)
2322
+  (0.0ms) rollback transaction
2323
+  (0.0ms) begin transaction
2324
+ -------------------------------------------------------------------------------------------------
2325
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
2326
+ -------------------------------------------------------------------------------------------------
2327
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."status" = '1')
2328
+  (0.0ms) rollback transaction
2329
+  (0.0ms) begin transaction
2330
+ ----------------------------------------------------------------------------------------------------
2331
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
2332
+ ----------------------------------------------------------------------------------------------------
2333
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')
2334
+  (0.0ms) rollback transaction
2335
+  (0.0ms) begin transaction
2336
+ -----------------------------------------------------------------------------
2337
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
2338
+ -----------------------------------------------------------------------------
2339
+  (0.1ms) SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
2340
+  (0.0ms) rollback transaction
2341
+  (0.0ms) begin transaction
2342
+ ----------------------------------------------------------------
2343
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
2344
+ ----------------------------------------------------------------
2345
+ SQL (0.2ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."field" DESC LIMIT 10 OFFSET 0
2346
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
2347
+  (0.1ms) rollback transaction
2348
+  (0.0ms) begin transaction
2349
+ ------------------------------------------------------------------------------------------------
2350
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
2351
+ ------------------------------------------------------------------------------------------------
2352
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2353
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC')
2354
+  (0.0ms) rollback transaction
2355
+  (0.0ms) begin transaction
2356
+ ------------------------------------------------------------------------------------------------------
2357
+ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
2358
+ ------------------------------------------------------------------------------------------------------
2359
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2360
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
2361
+  (0.1ms) rollback transaction
2362
+  (0.1ms) begin transaction
2363
+ ----------------------------------------------------------------
2364
+ ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
2365
+ ----------------------------------------------------------------
2366
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2367
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier')
2368
+  (0.0ms) rollback transaction
2369
+  (0.0ms) begin transaction
2370
+ --------------------------------------------------------------------------------------------------------
2371
+ ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_of_an_associated_collection_that_does_not_exist
2372
+ --------------------------------------------------------------------------------------------------------
2373
+  (0.0ms) rollback transaction
2374
+  (0.0ms) begin transaction
2375
+ -----------------------------------------------------------------------------
2376
+ ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_that_does_not_exists
2377
+ -----------------------------------------------------------------------------
2378
+  (0.0ms) rollback transaction
2379
+  (0.0ms) begin transaction
2380
+ --------------------------------------------------------------------
2381
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
2382
+ --------------------------------------------------------------------
2383
+ SQL (0.2ms) SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
2384
+  (0.3ms) SELECT COUNT(DISTINCT "has_one_fields"."id") FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id"
2385
+  (0.2ms) rollback transaction
2386
+  (0.2ms) begin transaction
2387
+ ----------------------------------------------------------
2388
+ ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
2389
+ ----------------------------------------------------------
2390
+ SQL (0.3ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" > '2019-02-26 13:42:37 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2391
+  (0.1ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2019-02-26 13:42:37 UTC')
2392
+  (0.1ms) rollback transaction
2393
+  (0.1ms) begin transaction
2394
+ -----------------------------------------------------------------------
2395
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
2396
+ -----------------------------------------------------------------------
2397
+ SQL (0.2ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
2398
+  (0.2ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id"
2399
+  (0.0ms) rollback transaction
2400
+  (0.0ms) begin transaction
2401
+ -----------------------------------------------------------------
2402
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
2403
+ -----------------------------------------------------------------
2404
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."id" DESC LIMIT 10 OFFSET 10
2405
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
2406
+  (0.0ms) rollback transaction
2407
+  (0.0ms) begin transaction
2408
+ ------------------------------------------------------------
2409
+ ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
2410
+ ------------------------------------------------------------
2411
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" < '2019-02-26 13:42:37 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2412
+  (0.1ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2019-02-26 13:42:37 UTC')
2413
+ Owner Load (0.0ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 2]]
2414
+  (0.1ms) rollback transaction
2415
+  (0.0ms) begin transaction
2416
+ ------------------------------------------------------------------------
2417
+ ForestLiana::ResourcesGetterTest: test_on_a_model_having_a_reserved_name
2418
+ ------------------------------------------------------------------------
2419
+ SQL (0.1ms) SELECT "references"."id" AS t0_r0 FROM "references" ORDER BY "references"."id" DESC LIMIT 10 OFFSET 0
2420
+  (0.1ms) SELECT COUNT(*) FROM "references"
2421
+  (0.0ms) rollback transaction
2422
+  (0.0ms) begin transaction
2423
+ -----------------------------------------------------------------
2424
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
2425
+ -----------------------------------------------------------------
2426
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."id" DESC LIMIT 15 OFFSET 0
2427
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
2428
+  (0.1ms) rollback transaction
2429
+  (0.0ms) begin transaction
2430
+ ------------------------------------------------------------------------------------
2431
+ ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
2432
+ ------------------------------------------------------------------------------------
2433
+ SQL (0.4ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY "trees"."name" DESC LIMIT 10 OFFSET 0
2434
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
2435
+  (0.1ms) rollback transaction
2436
+  (0.0ms) begin transaction
2437
+ -------------------------------------------------------------------------------------------
2438
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
2439
+ -------------------------------------------------------------------------------------------
2440
+ SQL (0.2ms) SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC') ORDER BY "owners"."created_at" DESC LIMIT 10 OFFSET 0
2441
+  (0.1ms) SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC')
2442
+  (0.0ms) rollback transaction
2443
+  (0.0ms) begin transaction
2444
+ ---------------------------------------------------------------------------------------
2445
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
2446
+ ---------------------------------------------------------------------------------------
2447
+  (0.9ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") AS count_id, belongs_to_fields.has_one_field_id AS belongs_to_fields_has_one_field_id FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" GROUP BY belongs_to_fields.has_one_field_id ORDER BY count_id DESC
2448
+  (0.1ms) rollback transaction
2449
+  (0.0ms) begin transaction
2450
+ -----------------------------------------------------------------------------------------
2451
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
2452
+ -----------------------------------------------------------------------------------------
2453
+  (0.2ms) SELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC
2454
+  (0.1ms) rollback transaction
2455
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2456
+  (0.1ms) begin transaction
2457
+ Fixture Delete (0.5ms) DELETE FROM "has_many_through_fields"
2458
+ Fixture Insert (0.5ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
2459
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
2460
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
2461
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
2462
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
2463
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
2464
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
2465
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
2466
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
2467
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
2468
+ Fixture Delete (0.5ms) DELETE FROM "string_fields"
2469
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
2470
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
2471
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
2472
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
2473
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
2474
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
2475
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
2476
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
2477
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
2478
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
2479
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
2480
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
2481
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
2482
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
2483
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
2484
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
2485
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
2486
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
2487
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
2488
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
2489
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
2490
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
2491
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
2492
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
2493
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
2494
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
2495
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
2496
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
2497
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
2498
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
2499
+ Fixture Delete (1.4ms) DELETE FROM "belongs_to_fields"
2500
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
2501
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
2502
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
2503
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
2504
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
2505
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
2506
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
2507
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
2508
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
2509
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
2510
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
2511
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
2512
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
2513
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
2514
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
2515
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
2516
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
2517
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
2518
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
2519
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
2520
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
2521
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
2522
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
2523
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
2524
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
2525
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
2526
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
2527
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
2528
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
2529
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
2530
+ Fixture Delete (0.9ms) DELETE FROM "trees"
2531
+ Fixture Insert (0.3ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2012-02-11 11:00:00.000000', '2012-02-11 11:00:00.000000')
2532
+ Fixture Insert (0.1ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2012-02-15 21:00:00.000000', '2012-02-15 21:00:00.000000')
2533
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2014-04-11 12:00:00.000000', '2014-04-11 12:00:00.000000')
2534
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2017-06-18 09:00:00.000000', '2017-06-18 09:00:00.000000')
2535
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
2536
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2019-02-26 14:35:54.000000', '2019-02-26 14:35:54.000000')
2537
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2019-02-26 14:35:54.000000', '2019-02-26 14:35:54.000000')
2538
+ Fixture Insert (0.0ms) INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2019-02-26 14:35:54.000000', '2019-02-26 14:35:54.000000')
2539
+ Fixture Delete (0.6ms) DELETE FROM "has_one_fields"
2540
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
2541
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
2542
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
2543
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
2544
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
2545
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
2546
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
2547
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
2548
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
2549
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
2550
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
2551
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
2552
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
2553
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
2554
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
2555
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
2556
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
2557
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
2558
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
2559
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
2560
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
2561
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
2562
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
2563
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
2564
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
2565
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
2566
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
2567
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
2568
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
2569
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
2570
+ Fixture Delete (0.4ms) DELETE FROM "references"
2571
+ Fixture Insert (0.1ms) INSERT INTO "references" ("id") VALUES (1)
2572
+ Fixture Delete (0.4ms) DELETE FROM "owners"
2573
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2018-05-30 09:00:00.000000', '2019-06-27 20:00:00.000000')
2574
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2019-05-02 09:00:00.000000', '2019-06-28 08:00:00.000000')
2575
+ Fixture Insert (0.0ms) INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2017-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
2576
+ Fixture Delete (0.9ms) DELETE FROM "has_many_fields"
2577
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
2578
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
2579
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
2580
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
2581
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
2582
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
2583
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
2584
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
2585
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
2586
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
2587
+ Fixture Delete (0.5ms) DELETE FROM "serialize_fields"
2588
+ Fixture Insert (0.1ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
2589
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')
2590
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
2591
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')
2592
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
2593
+  (1.1ms) commit transaction
2594
+  (0.1ms) begin transaction
2595
+ -----------------------------------------------------------------------
2596
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
2597
+ -----------------------------------------------------------------------
2598
+ Owner Load (0.2ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
2599
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
2600
+  (0.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
2601
+ SQL (0.4ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0 [["owner_id", 1]]
2602
+  (0.2ms) rollback transaction
2603
+  (0.1ms) begin transaction
2604
+ -------------------------------------------------------------------------
2605
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
2606
+ -------------------------------------------------------------------------
2607
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
2608
+  (0.3ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') [["owner_id", 1]]
2609
+  (0.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
2610
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
2611
+  (0.1ms) rollback transaction
2612
+  (0.1ms) begin transaction
2613
+ ------------------------------------------------------------------
2614
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
2615
+ ------------------------------------------------------------------
2616
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
2617
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
2618
+  (0.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
2619
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
2620
+  (0.0ms) rollback transaction
2621
+  (0.0ms) begin transaction
2622
+ -----------------------------------
2623
+ ForestLiana::RouteTest: test_Routes
2624
+ -----------------------------------
2625
+  (0.1ms) rollback transaction
2626
+  (0.0ms) begin transaction
2627
+ ------------------------------------------------------------------------------------------------------
2628
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
2629
+ ------------------------------------------------------------------------------------------------------
2630
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2631
+  (0.1ms) SAVEPOINT active_record_1
2632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2633
+  (0.0ms) rollback transaction
2634
+  (0.1ms) begin transaction
2635
+ ------------------------------------------------------------------------------------------------------------
2636
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
2637
+ ------------------------------------------------------------------------------------------------------------
2638
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2639
+  (0.0ms) SAVEPOINT active_record_1
2640
+ SQL (0.3ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
2641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2642
+  (0.3ms) rollback transaction
2643
+  (0.1ms) begin transaction
2644
+ ---------------------------------------------------------------------------------------------------------
2645
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
2646
+ ---------------------------------------------------------------------------------------------------------
2647
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2648
+  (0.0ms) rollback transaction
2649
+  (0.0ms) begin transaction
2650
+ ---------------------------------------------------------------------------------------------------
2651
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
2652
+ ---------------------------------------------------------------------------------------------------
2653
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
2654
+  (0.0ms) SAVEPOINT active_record_1
2655
+ SQL (0.2ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
2656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2657
+  (0.3ms) rollback transaction
2658
+  (0.0ms) begin transaction
2659
+ ---------------------------
2660
+ ForestLianaTest: test_truth
2661
+ ---------------------------
2662
+  (0.0ms) rollback transaction
2663
+  (0.0ms) begin transaction
2664
+ --------------------------------------------------------------------------------------------------------
2665
+ ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_of_an_associated_collection_that_does_not_exist
2666
+ --------------------------------------------------------------------------------------------------------
2667
+  (0.1ms) rollback transaction
2668
+  (0.0ms) begin transaction
2669
+ ------------------------------------------------------------------------------------------------
2670
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
2671
+ ------------------------------------------------------------------------------------------------
2672
+ SQL (0.4ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2673
+  (0.2ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC')
2674
+  (0.1ms) rollback transaction
2675
+  (0.1ms) begin transaction
2676
+ -----------------------------------------------------------------------
2677
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
2678
+ -----------------------------------------------------------------------
2679
+ SQL (0.2ms) SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
2680
+  (0.2ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id"
2681
+  (0.1ms) rollback transaction
2682
+  (0.0ms) begin transaction
2683
+ ----------------------------------------------------------
2684
+ ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
2685
+ ----------------------------------------------------------
2686
+ SQL (0.3ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" > '2019-02-26 14:34:55 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2687
+  (0.1ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2019-02-26 14:34:55 UTC')
2688
+  (0.1ms) rollback transaction
2689
+  (0.1ms) begin transaction
2690
+ ------------------------------------------------------------------------
2691
+ ForestLiana::ResourcesGetterTest: test_on_a_model_having_a_reserved_name
2692
+ ------------------------------------------------------------------------
2693
+ SQL (0.1ms) SELECT "references"."id" AS t0_r0 FROM "references" ORDER BY "references"."id" DESC LIMIT 10 OFFSET 0
2694
+  (0.1ms) SELECT COUNT(*) FROM "references"
2695
+  (0.1ms) rollback transaction
2696
+  (0.0ms) begin transaction
2697
+ ------------------------------------------------------------
2698
+ ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
2699
+ ------------------------------------------------------------
2700
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" < '2019-02-26 14:34:55 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2701
+  (0.1ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2019-02-26 14:34:55 UTC')
2702
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 2]]
2703
+  (0.0ms) rollback transaction
2704
+  (0.0ms) begin transaction
2705
+ --------------------------------------------------------------------
2706
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
2707
+ --------------------------------------------------------------------
2708
+ SQL (0.7ms) SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
2709
+  (0.2ms) SELECT COUNT(DISTINCT "has_one_fields"."id") FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id"
2710
+  (0.1ms) rollback transaction
2711
+  (0.0ms) begin transaction
2712
+ ----------------------------------------------------------------
2713
+ ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
2714
+ ----------------------------------------------------------------
2715
+ SQL (0.3ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2716
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier')
2717
+  (0.0ms) rollback transaction
2718
+  (0.1ms) begin transaction
2719
+ ----------------------------------------------------------------
2720
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
2721
+ ----------------------------------------------------------------
2722
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."field" DESC LIMIT 10 OFFSET 0
2723
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
2724
+  (0.0ms) rollback transaction
2725
+  (0.0ms) begin transaction
2726
+ -----------------------------------------------------------------------------
2727
+ ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_that_does_not_exists
2728
+ -----------------------------------------------------------------------------
2729
+  (0.0ms) rollback transaction
2730
+  (0.0ms) begin transaction
2731
+ -----------------------------------------------------------------
2732
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
2733
+ -----------------------------------------------------------------
2734
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."id" DESC LIMIT 15 OFFSET 0
2735
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
2736
+  (0.0ms) rollback transaction
2737
+  (0.0ms) begin transaction
2738
+ -----------------------------------------------------------------
2739
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
2740
+ -----------------------------------------------------------------
2741
+ SQL (0.1ms) SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY "string_fields"."id" DESC LIMIT 10 OFFSET 10
2742
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
2743
+  (0.0ms) rollback transaction
2744
+  (0.0ms) begin transaction
2745
+ -------------------------------------------------------------------------------------------
2746
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
2747
+ -------------------------------------------------------------------------------------------
2748
+ SQL (0.1ms) SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC') ORDER BY "owners"."created_at" DESC LIMIT 10 OFFSET 0
2749
+  (0.0ms) SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2018-01-01 09:00:00 UTC' AND '2019-01-01 08:59:59 UTC')
2750
+  (0.0ms) rollback transaction
2751
+  (0.0ms) begin transaction
2752
+ ------------------------------------------------------------------------------------------------------
2753
+ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
2754
+ ------------------------------------------------------------------------------------------------------
2755
+ SQL (0.1ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0
2756
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
2757
+  (0.1ms) rollback transaction
2758
+  (0.0ms) begin transaction
2759
+ ------------------------------------------------------------------------------------
2760
+ ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
2761
+ ------------------------------------------------------------------------------------
2762
+ SQL (0.2ms) SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY "trees"."name" DESC LIMIT 10 OFFSET 0
2763
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
2764
+  (0.0ms) rollback transaction
2765
+  (0.0ms) begin transaction
2766
+ -----------------------------------------------------------------------------------------
2767
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
2768
+ -----------------------------------------------------------------------------------------
2769
+  (0.6ms) SELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC
2770
+  (0.1ms) rollback transaction
2771
+  (0.0ms) begin transaction
2772
+ ---------------------------------------------------------------------------------------
2773
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
2774
+ ---------------------------------------------------------------------------------------
2775
+  (1.1ms) SELECT COUNT(DISTINCT "belongs_to_fields"."id") AS count_id, belongs_to_fields.has_one_field_id AS belongs_to_fields_has_one_field_id FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" GROUP BY belongs_to_fields.has_one_field_id ORDER BY count_id DESC
2776
+  (0.1ms) rollback transaction
2777
+  (0.1ms) begin transaction
2778
+ ----------------------------------------------------------------------------------------------------
2779
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
2780
+ ----------------------------------------------------------------------------------------------------
2781
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."checked" = 0)
2782
+  (0.0ms) rollback transaction
2783
+  (0.0ms) begin transaction
2784
+ -------------------------------------------------------------------------------------------------
2785
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
2786
+ -------------------------------------------------------------------------------------------------
2787
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."status" = '1')
2788
+  (0.0ms) rollback transaction
2789
+  (0.0ms) begin transaction
2790
+ ----------------------------------------------------------------------------------------------------
2791
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
2792
+ ----------------------------------------------------------------------------------------------------
2793
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')
2794
+  (0.0ms) rollback transaction
2795
+  (0.1ms) begin transaction
2796
+ -----------------------------------------------------------------------------
2797
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
2798
+ -----------------------------------------------------------------------------
2799
+  (0.1ms) SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
2800
+  (0.0ms) rollback transaction
2801
+  (0.0ms) begin transaction
2802
+ --------------------------------------------------------------------------
2803
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
2804
+ --------------------------------------------------------------------------
2805
+  (0.1ms) rollback transaction
2806
+  (0.0ms) begin transaction
2807
+ -------------------------------------------------------------------------
2808
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
2809
+ -------------------------------------------------------------------------
2810
+  (0.0ms) rollback transaction
2811
+  (0.0ms) begin transaction
2812
+ -------------------------------------------------------------------------
2813
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
2814
+ -------------------------------------------------------------------------
2815
+  (0.0ms) rollback transaction
2816
+  (0.0ms) begin transaction
2817
+ --------------------------------------------------------
2818
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
2819
+ --------------------------------------------------------
2820
+  (0.0ms) rollback transaction
2821
+  (0.0ms) begin transaction
2822
+ ------------------------------------------------------------------------------------
2823
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
2824
+ ------------------------------------------------------------------------------------
2825
+  (0.0ms) rollback transaction
2826
+  (0.0ms) begin transaction
2827
+ ---------------------------------------------------------------------
2828
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
2829
+ ---------------------------------------------------------------------
2830
+  (0.0ms) rollback transaction
2831
+  (0.0ms) begin transaction
2832
+ ---------------------------------------------------------------------------
2833
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
2834
+ ---------------------------------------------------------------------------
2835
+  (0.0ms) rollback transaction
2836
+  (0.0ms) begin transaction
2837
+ -----------------------------------------------------------
2838
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
2839
+ -----------------------------------------------------------
2840
+  (0.0ms) rollback transaction
2841
+  (0.0ms) begin transaction
2842
+ ----------------------------------------------------------------------------------
2843
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
2844
+ ----------------------------------------------------------------------------------
2845
+  (0.0ms) rollback transaction
2846
+  (0.0ms) begin transaction
2847
+ --------------------------------------------------------------------------
2848
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
2849
+ --------------------------------------------------------------------------
2850
+  (0.0ms) rollback transaction
2851
+  (0.0ms) begin transaction
2852
+ ---------------------------------------------------------
2853
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
2854
+ ---------------------------------------------------------
2855
+  (0.1ms) rollback transaction
2856
+  (0.0ms) begin transaction
2857
+ ------------------------------------------------------------------------
2858
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
2859
+ ------------------------------------------------------------------------
2860
+  (0.3ms) rollback transaction