forest_liana 2.14.5 → 2.14.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/router.rb +31 -25
- data/app/services/forest_liana/schema_utils.rb +5 -1
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +926 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49dc785070b23f4721de5f2b0535a624dd9b8c4b
|
4
|
+
data.tar.gz: 5be39efb342454a1f07abaa332f0d46e25a411c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 717edf3df09aabbe5f56dec3cce9157d01f359388cc041a9d8f788b2d710f11d1dfca9cfd538714f3f11c75941254816f87f76bb6f9909bf3df40d6012cae3aa
|
7
|
+
data.tar.gz: e1e89b1a269d41f66d55d36b945bd2dceb8bc24ea1add701584ab1a314940fb41560d5e17bb81e9b2ab6784d734082db0357e8a61b8241dee9e6329fb8ce73c7
|
@@ -2,36 +2,42 @@ class ForestLiana::Router
|
|
2
2
|
def call(env)
|
3
3
|
params = env['action_dispatch.request.path_parameters']
|
4
4
|
collection_name = params[:collection]
|
5
|
-
resource = ForestLiana::SchemaUtils.find_model_from_collection_name(collection_name)
|
5
|
+
resource = ForestLiana::SchemaUtils.find_model_from_collection_name(collection_name, true)
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
if resource.nil?
|
8
|
+
FOREST_LOGGER.error "Routing error: Resource not found for collection #{collection_name}."
|
9
|
+
FOREST_LOGGER.error "If this is a Smart Collection, please ensure your Smart Collection routes are defined before the mounted ForestLiana::Engine?"
|
10
|
+
ForestLiana::ApplicationController.action(:route_not_found).call(env)
|
11
|
+
else
|
12
|
+
begin
|
13
|
+
component_prefix = ForestLiana.component_prefix(resource)
|
14
|
+
controller_name = "#{component_prefix}Controller"
|
10
15
|
|
11
|
-
|
12
|
-
|
16
|
+
controller = "ForestLiana::UserSpace::#{controller_name}".constantize
|
17
|
+
action = nil
|
13
18
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
case env['REQUEST_METHOD']
|
20
|
+
when 'GET'
|
21
|
+
if params[:id]
|
22
|
+
action = 'show'
|
23
|
+
elsif env['PATH_INFO'] == "/#{collection_name}/count"
|
24
|
+
action = 'count'
|
25
|
+
else
|
26
|
+
action = 'index'
|
27
|
+
end
|
28
|
+
when 'PUT'
|
29
|
+
action = 'update'
|
30
|
+
when 'POST'
|
31
|
+
action = 'create'
|
32
|
+
when 'DELETE'
|
33
|
+
action = 'destroy'
|
22
34
|
end
|
23
|
-
when 'PUT'
|
24
|
-
action = 'update'
|
25
|
-
when 'POST'
|
26
|
-
action = 'create'
|
27
|
-
when 'DELETE'
|
28
|
-
action = 'destroy'
|
29
|
-
end
|
30
35
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
36
|
+
controller.action(action.to_sym).call(env)
|
37
|
+
rescue NoMethodError => exception
|
38
|
+
FOREST_LOGGER.error "Routing error: #{exception}\n#{exception.backtrace.join("\n\t")}"
|
39
|
+
ForestLiana::ApplicationController.action(:route_not_found).call(env)
|
40
|
+
end
|
35
41
|
end
|
36
42
|
end
|
37
43
|
end
|
@@ -19,7 +19,7 @@ module ForestLiana
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def self.find_model_from_collection_name(collection_name)
|
22
|
+
def self.find_model_from_collection_name(collection_name, logs = false)
|
23
23
|
model_found = nil
|
24
24
|
|
25
25
|
ForestLiana.models.each do |model|
|
@@ -36,6 +36,10 @@ module ForestLiana
|
|
36
36
|
break if model_found
|
37
37
|
end
|
38
38
|
|
39
|
+
if logs && model_found.nil?
|
40
|
+
FOREST_LOGGER.warn "No model found for collection #{collection_name}"
|
41
|
+
end
|
42
|
+
|
39
43
|
model_found
|
40
44
|
end
|
41
45
|
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -89697,3 +89697,929 @@ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribut
|
|
89697
89697
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89698
89698
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
89699
89699
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89700
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
89701
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
89702
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
89703
|
+
FROM sqlite_master
|
89704
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
89705
|
+
UNION ALL
|
89706
|
+
SELECT sql
|
89707
|
+
FROM sqlite_temp_master
|
89708
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
89709
|
+
[0m
|
89710
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
89711
|
+
FROM sqlite_master
|
89712
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
89713
|
+
UNION ALL
|
89714
|
+
SELECT sql
|
89715
|
+
FROM sqlite_temp_master
|
89716
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
89717
|
+
|
89718
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
89719
|
+
FROM sqlite_master
|
89720
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
89721
|
+
UNION ALL
|
89722
|
+
SELECT sql
|
89723
|
+
FROM sqlite_temp_master
|
89724
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
89725
|
+
[0m
|
89726
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
89727
|
+
FROM sqlite_master
|
89728
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
89729
|
+
UNION ALL
|
89730
|
+
SELECT sql
|
89731
|
+
FROM sqlite_temp_master
|
89732
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
89733
|
+
|
89734
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
89735
|
+
FROM sqlite_master
|
89736
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
89737
|
+
UNION ALL
|
89738
|
+
SELECT sql
|
89739
|
+
FROM sqlite_temp_master
|
89740
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
89741
|
+
[0m
|
89742
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
89743
|
+
FROM sqlite_master
|
89744
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
89745
|
+
UNION ALL
|
89746
|
+
SELECT sql
|
89747
|
+
FROM sqlite_temp_master
|
89748
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
89749
|
+
|
89750
|
+
[1m[36m (0.4ms)[0m [1m SELECT sql
|
89751
|
+
FROM sqlite_master
|
89752
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
89753
|
+
UNION ALL
|
89754
|
+
SELECT sql
|
89755
|
+
FROM sqlite_temp_master
|
89756
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
89757
|
+
[0m
|
89758
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
89759
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89760
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
89761
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
89762
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
89763
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
89764
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
89765
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
89766
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
89767
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
89768
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
89769
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
89770
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
89771
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "string_fields"
|
89772
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')[0m
|
89773
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
|
89774
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')[0m
|
89775
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
|
89776
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')[0m
|
89777
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
|
89778
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')[0m
|
89779
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
|
89780
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')[0m
|
89781
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
|
89782
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')[0m
|
89783
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
|
89784
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')[0m
|
89785
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
|
89786
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')[0m
|
89787
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
|
89788
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')[0m
|
89789
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
|
89790
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')[0m
|
89791
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
|
89792
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')[0m
|
89793
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
|
89794
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')[0m
|
89795
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
|
89796
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')[0m
|
89797
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
|
89798
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')[0m
|
89799
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
|
89800
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')[0m
|
89801
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
|
89802
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
89803
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
89804
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)[0m
|
89805
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
89806
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
89807
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
89808
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
89809
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
89810
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
89811
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
89812
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
89813
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
89814
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
89815
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
89816
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)[0m
|
89817
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
89818
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)[0m
|
89819
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
89820
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)[0m
|
89821
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
89822
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)[0m
|
89823
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
89824
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
89825
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
89826
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)[0m
|
89827
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
89828
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)[0m
|
89829
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
89830
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
89831
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
89832
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
89833
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "trees"
|
89834
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2011-02-11 11:00:00.000000', '2011-02-11 11:00:00.000000')[0m
|
89835
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2011-02-15 21:00:00.000000', '2011-02-15 21:00:00.000000')
|
89836
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2013-04-11 12:00:00.000000', '2013-04-11 12:00:00.000000')[0m
|
89837
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
|
89838
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')[0m
|
89839
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2018-12-14 15:01:50.000000', '2018-12-14 15:01:50.000000')
|
89840
|
+
[1m[36mFixture Insert (1.5ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2018-12-14 15:01:50.000000', '2018-12-14 15:01:50.000000')[0m
|
89841
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2018-12-14 15:01:50.000000', '2018-12-14 15:01:50.000000')
|
89842
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "has_one_fields"[0m
|
89843
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
|
89844
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)[0m
|
89845
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
|
89846
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)[0m
|
89847
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
|
89848
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)[0m
|
89849
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
|
89850
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)[0m
|
89851
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
|
89852
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)[0m
|
89853
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
|
89854
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)[0m
|
89855
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
|
89856
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)[0m
|
89857
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
|
89858
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)[0m
|
89859
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
|
89860
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)[0m
|
89861
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
|
89862
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)[0m
|
89863
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
|
89864
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)[0m
|
89865
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
|
89866
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)[0m
|
89867
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
|
89868
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)[0m
|
89869
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
|
89870
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)[0m
|
89871
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
|
89872
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)[0m
|
89873
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "references"
|
89874
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "references" ("id") VALUES (1)[0m
|
89875
|
+
[1m[35mFixture Delete (9.2ms)[0m DELETE FROM "owners"
|
89876
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2017-05-30 09:00:00.000000', '2018-06-27 20:00:00.000000')[0m
|
89877
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2018-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
|
89878
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2016-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
89879
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "has_many_fields"
|
89880
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
89881
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
89882
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
89883
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
89884
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
89885
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
89886
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
89887
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
89888
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
89889
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
89890
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
89891
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
89892
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
89893
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
89894
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
89895
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
89896
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
89897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89898
|
+
------------------------------------------------------------------
|
89899
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
|
89900
|
+
------------------------------------------------------------------
|
89901
|
+
[1m[36mOwner Load (0.4ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
89902
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
|
89903
|
+
[1m[36m (0.4ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
89904
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
89905
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89906
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89907
|
+
-------------------------------------------------------------------------
|
89908
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
|
89909
|
+
-------------------------------------------------------------------------
|
89910
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
89911
|
+
[1m[35m (0.6ms)[0m 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]]
|
89912
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
89913
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
89914
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89916
|
+
-----------------------------------------------------------------------
|
89917
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
|
89918
|
+
-----------------------------------------------------------------------
|
89919
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
89920
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
|
89921
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
89922
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
89923
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89924
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89925
|
+
-------------------------------------------------------------------------------------------------
|
89926
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
89927
|
+
-------------------------------------------------------------------------------------------------
|
89928
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
89929
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
89930
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89931
|
+
-----------------------------------------------------------------------------
|
89932
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
89933
|
+
-----------------------------------------------------------------------------
|
89934
|
+
[1m[35m (0.4ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
89935
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89936
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89937
|
+
----------------------------------------------------------------------------------------------------
|
89938
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
89939
|
+
----------------------------------------------------------------------------------------------------
|
89940
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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)[0m
|
89941
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
89942
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89943
|
+
----------------------------------------------------------------------------------------------------
|
89944
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
89945
|
+
----------------------------------------------------------------------------------------------------
|
89946
|
+
[1m[35m (0.2ms)[0m 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')
|
89947
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89949
|
+
----------------------------------------------------------
|
89950
|
+
ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
|
89951
|
+
----------------------------------------------------------
|
89952
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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" > '2018-12-14 16:00:50 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
89953
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-12-14 16:00:50 UTC')
|
89954
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89955
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89956
|
+
--------------------------------------------------------------------
|
89957
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
89958
|
+
--------------------------------------------------------------------
|
89959
|
+
[1m[36mSQL (0.5ms)[0m [1mSELECT "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[0m
|
89960
|
+
[1m[35m (0.2ms)[0m 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"
|
89961
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89962
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89963
|
+
----------------------------------------------------------------
|
89964
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
89965
|
+
----------------------------------------------------------------
|
89966
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
89967
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
89968
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89969
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89970
|
+
------------------------------------------------------------------------
|
89971
|
+
ForestLiana::ResourcesGetterTest: test_on_a_model_having_a_reserved_name
|
89972
|
+
------------------------------------------------------------------------
|
89973
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "references"."id" AS t0_r0 FROM "references" ORDER BY "references"."id" DESC LIMIT 10 OFFSET 0[0m
|
89974
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "references"
|
89975
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89976
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89977
|
+
------------------------------------------------------------------------------------------------
|
89978
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
89979
|
+
------------------------------------------------------------------------------------------------
|
89980
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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 '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
89981
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC')
|
89982
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89983
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89984
|
+
-----------------------------------------------------------------
|
89985
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
89986
|
+
-----------------------------------------------------------------
|
89987
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
89988
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
89989
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89990
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89991
|
+
-----------------------------------------------------------------
|
89992
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
89993
|
+
-----------------------------------------------------------------
|
89994
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
89995
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
89996
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89997
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89998
|
+
-----------------------------------------------------------------------------
|
89999
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_that_does_not_exists
|
90000
|
+
-----------------------------------------------------------------------------
|
90001
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90002
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90003
|
+
------------------------------------------------------------
|
90004
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
|
90005
|
+
------------------------------------------------------------
|
90006
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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" < '2018-12-14 16:00:50 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
90007
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-12-14 16:00:50 UTC')
|
90008
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90009
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90010
|
+
-----------------------------------------------------------------------
|
90011
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
90012
|
+
-----------------------------------------------------------------------
|
90013
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
90014
|
+
[1m[35m (0.1ms)[0m 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"
|
90015
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90016
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90017
|
+
------------------------------------------------------------------------------------
|
90018
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
90019
|
+
------------------------------------------------------------------------------------
|
90020
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
90021
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
90022
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90023
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90024
|
+
----------------------------------------------------------------
|
90025
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
90026
|
+
----------------------------------------------------------------
|
90027
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
90028
|
+
[1m[35m (0.2ms)[0m 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')
|
90029
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90030
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90031
|
+
------------------------------------------------------------------------------------------------------
|
90032
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
90033
|
+
------------------------------------------------------------------------------------------------------
|
90034
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
90035
|
+
[1m[35m (0.1ms)[0m 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)')
|
90036
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90037
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90038
|
+
-------------------------------------------------------------------------------------------
|
90039
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
90040
|
+
-------------------------------------------------------------------------------------------
|
90041
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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 '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC') ORDER BY "owners"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
90042
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC')
|
90043
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90044
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90045
|
+
--------------------------------------------------------------------------------------------------------
|
90046
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_of_an_associated_collection_that_does_not_exist
|
90047
|
+
--------------------------------------------------------------------------------------------------------
|
90048
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90049
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90050
|
+
------------------------------------------------------------------------------------
|
90051
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
90052
|
+
------------------------------------------------------------------------------------
|
90053
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90054
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90055
|
+
-------------------------------------------------------------------------
|
90056
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
90057
|
+
-------------------------------------------------------------------------
|
90058
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90059
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90060
|
+
---------------------------------------------------------------------
|
90061
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
90062
|
+
---------------------------------------------------------------------
|
90063
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90064
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90065
|
+
----------------------------------------------------------------------------------
|
90066
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
90067
|
+
----------------------------------------------------------------------------------
|
90068
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90069
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90070
|
+
--------------------------------------------------------------------------
|
90071
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
90072
|
+
--------------------------------------------------------------------------
|
90073
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90074
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90075
|
+
-------------------------------------------------------------------------
|
90076
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
90077
|
+
-------------------------------------------------------------------------
|
90078
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90079
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90080
|
+
-----------------------------------------------------------
|
90081
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
90082
|
+
-----------------------------------------------------------
|
90083
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90084
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90085
|
+
------------------------------------------------------------------------
|
90086
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
90087
|
+
------------------------------------------------------------------------
|
90088
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90090
|
+
--------------------------------------------------------------------------
|
90091
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
90092
|
+
--------------------------------------------------------------------------
|
90093
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90094
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90095
|
+
--------------------------------------------------------
|
90096
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
90097
|
+
--------------------------------------------------------
|
90098
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90099
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90100
|
+
---------------------------------------------------------
|
90101
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
90102
|
+
---------------------------------------------------------
|
90103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90105
|
+
---------------------------------------------------------------------------
|
90106
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
90107
|
+
---------------------------------------------------------------------------
|
90108
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90110
|
+
---------------------------------------------------------------------------------------
|
90111
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
90112
|
+
---------------------------------------------------------------------------------------
|
90113
|
+
[1m[36m (0.8ms)[0m [1mSELECT 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[0m
|
90114
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90115
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
90116
|
+
-----------------------------------------------------------------------------------------
|
90117
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
90118
|
+
-----------------------------------------------------------------------------------------
|
90119
|
+
[1m[35m (0.1ms)[0m 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
|
90120
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90122
|
+
---------------------------
|
90123
|
+
ForestLianaTest: test_truth
|
90124
|
+
---------------------------
|
90125
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90126
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90127
|
+
------------------------------------------------------------------------------------------------------------
|
90128
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
90129
|
+
------------------------------------------------------------------------------------------------------------
|
90130
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
90131
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
90132
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
90133
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
90134
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
90135
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90136
|
+
---------------------------------------------------------------------------------------------------------
|
90137
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
90138
|
+
---------------------------------------------------------------------------------------------------------
|
90139
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
90140
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90142
|
+
------------------------------------------------------------------------------------------------------
|
90143
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
90144
|
+
------------------------------------------------------------------------------------------------------
|
90145
|
+
[1m[35mSerializeField Load (0.5ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
90146
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
90147
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
90148
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90149
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90150
|
+
---------------------------------------------------------------------------------------------------
|
90151
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
90152
|
+
---------------------------------------------------------------------------------------------------
|
90153
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
90154
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
90155
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
90156
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
90157
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
90158
|
+
[1m[35m (0.2ms)[0m begin transaction
|
90159
|
+
-----------------------------------
|
90160
|
+
ForestLiana::RouteTest: test_Routes
|
90161
|
+
-----------------------------------
|
90162
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90163
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
90164
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
90165
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
90166
|
+
FROM sqlite_master
|
90167
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
90168
|
+
UNION ALL
|
90169
|
+
SELECT sql
|
90170
|
+
FROM sqlite_temp_master
|
90171
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
90172
|
+
[0m
|
90173
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
90174
|
+
FROM sqlite_master
|
90175
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
90176
|
+
UNION ALL
|
90177
|
+
SELECT sql
|
90178
|
+
FROM sqlite_temp_master
|
90179
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
90180
|
+
|
90181
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
90182
|
+
FROM sqlite_master
|
90183
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
90184
|
+
UNION ALL
|
90185
|
+
SELECT sql
|
90186
|
+
FROM sqlite_temp_master
|
90187
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
90188
|
+
[0m
|
90189
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
90190
|
+
FROM sqlite_master
|
90191
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
90192
|
+
UNION ALL
|
90193
|
+
SELECT sql
|
90194
|
+
FROM sqlite_temp_master
|
90195
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
90196
|
+
|
90197
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
90198
|
+
FROM sqlite_master
|
90199
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
90200
|
+
UNION ALL
|
90201
|
+
SELECT sql
|
90202
|
+
FROM sqlite_temp_master
|
90203
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
90204
|
+
[0m
|
90205
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
90206
|
+
FROM sqlite_master
|
90207
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
90208
|
+
UNION ALL
|
90209
|
+
SELECT sql
|
90210
|
+
FROM sqlite_temp_master
|
90211
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
90212
|
+
|
90213
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
90214
|
+
FROM sqlite_master
|
90215
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
90216
|
+
UNION ALL
|
90217
|
+
SELECT sql
|
90218
|
+
FROM sqlite_temp_master
|
90219
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
90220
|
+
[0m
|
90221
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
90222
|
+
[1m[35m (0.3ms)[0m begin transaction
|
90223
|
+
[1m[36mFixture Delete (1.6ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
90224
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
90225
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
90226
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
90227
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
90228
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
90229
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
90230
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
90231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
90232
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
90233
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
90234
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "string_fields"
|
90235
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')[0m
|
90236
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
|
90237
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')[0m
|
90238
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
|
90239
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')[0m
|
90240
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
|
90241
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')[0m
|
90242
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
|
90243
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')[0m
|
90244
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
|
90245
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')[0m
|
90246
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
|
90247
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')[0m
|
90248
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
|
90249
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')[0m
|
90250
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
|
90251
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')[0m
|
90252
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
|
90253
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')[0m
|
90254
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
|
90255
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')[0m
|
90256
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
|
90257
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')[0m
|
90258
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
|
90259
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')[0m
|
90260
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
|
90261
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')[0m
|
90262
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
|
90263
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')[0m
|
90264
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
|
90265
|
+
[1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
90266
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
90267
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)[0m
|
90268
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
90269
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
90270
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
90271
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
90272
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
90273
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
90274
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
90275
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
90276
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
90277
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
90278
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
90279
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)[0m
|
90280
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
90281
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)[0m
|
90282
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
90283
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)[0m
|
90284
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
90285
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)[0m
|
90286
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
90287
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
90288
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
90289
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)[0m
|
90290
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
90291
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)[0m
|
90292
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
90293
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
90294
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
90295
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
90296
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "trees"
|
90297
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2011-02-11 11:00:00.000000', '2011-02-11 11:00:00.000000')[0m
|
90298
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2011-02-15 21:00:00.000000', '2011-02-15 21:00:00.000000')
|
90299
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2013-04-11 12:00:00.000000', '2013-04-11 12:00:00.000000')[0m
|
90300
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
|
90301
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')[0m
|
90302
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2018-12-14 15:02:36.000000', '2018-12-14 15:02:36.000000')
|
90303
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2018-12-14 15:02:36.000000', '2018-12-14 15:02:36.000000')[0m
|
90304
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2018-12-14 15:02:36.000000', '2018-12-14 15:02:36.000000')
|
90305
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "has_one_fields"[0m
|
90306
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
|
90307
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)[0m
|
90308
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
|
90309
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)[0m
|
90310
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
|
90311
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)[0m
|
90312
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
|
90313
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)[0m
|
90314
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
|
90315
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)[0m
|
90316
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
|
90317
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)[0m
|
90318
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
|
90319
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)[0m
|
90320
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
|
90321
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)[0m
|
90322
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
|
90323
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)[0m
|
90324
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
|
90325
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)[0m
|
90326
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
|
90327
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)[0m
|
90328
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
|
90329
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)[0m
|
90330
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
|
90331
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)[0m
|
90332
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
|
90333
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)[0m
|
90334
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
|
90335
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)[0m
|
90336
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "references"
|
90337
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "references" ("id") VALUES (1)[0m
|
90338
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "owners"
|
90339
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2017-05-30 09:00:00.000000', '2018-06-27 20:00:00.000000')[0m
|
90340
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2018-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
|
90341
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2016-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
90342
|
+
[1m[35mFixture Delete (1.1ms)[0m DELETE FROM "has_many_fields"
|
90343
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
90344
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
90345
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
90346
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
90347
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
90348
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
90349
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
90350
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
90351
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
90352
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
90353
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
90354
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
90355
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
90356
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
90357
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
90358
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
90359
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
90360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90361
|
+
---------------------------------------------------------------------------------------
|
90362
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
90363
|
+
---------------------------------------------------------------------------------------
|
90364
|
+
[1m[36m (2.3ms)[0m [1mSELECT 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[0m
|
90365
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90366
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90367
|
+
-----------------------------------------------------------------------------------------
|
90368
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
90369
|
+
-----------------------------------------------------------------------------------------
|
90370
|
+
[1m[35m (0.5ms)[0m 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
|
90371
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90372
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90373
|
+
---------------------------
|
90374
|
+
ForestLianaTest: test_truth
|
90375
|
+
---------------------------
|
90376
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90377
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90378
|
+
-------------------------------------------------------------------------
|
90379
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
90380
|
+
-------------------------------------------------------------------------
|
90381
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90382
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90383
|
+
-------------------------------------------------------------------------
|
90384
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
90385
|
+
-------------------------------------------------------------------------
|
90386
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90387
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90388
|
+
------------------------------------------------------------------------
|
90389
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
90390
|
+
------------------------------------------------------------------------
|
90391
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90392
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90393
|
+
---------------------------------------------------------------------
|
90394
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
90395
|
+
---------------------------------------------------------------------
|
90396
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90397
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90398
|
+
---------------------------------------------------------
|
90399
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
90400
|
+
---------------------------------------------------------
|
90401
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90402
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90403
|
+
-----------------------------------------------------------
|
90404
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
90405
|
+
-----------------------------------------------------------
|
90406
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90407
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90408
|
+
--------------------------------------------------------
|
90409
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
90410
|
+
--------------------------------------------------------
|
90411
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90412
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90413
|
+
------------------------------------------------------------------------------------
|
90414
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
90415
|
+
------------------------------------------------------------------------------------
|
90416
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90417
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90418
|
+
---------------------------------------------------------------------------
|
90419
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
90420
|
+
---------------------------------------------------------------------------
|
90421
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90423
|
+
--------------------------------------------------------------------------
|
90424
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
90425
|
+
--------------------------------------------------------------------------
|
90426
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90427
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90428
|
+
--------------------------------------------------------------------------
|
90429
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
90430
|
+
--------------------------------------------------------------------------
|
90431
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90432
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90433
|
+
----------------------------------------------------------------------------------
|
90434
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
90435
|
+
----------------------------------------------------------------------------------
|
90436
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90437
|
+
[1m[35m (0.2ms)[0m begin transaction
|
90438
|
+
-----------------------------------
|
90439
|
+
ForestLiana::RouteTest: test_Routes
|
90440
|
+
-----------------------------------
|
90441
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90442
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90443
|
+
--------------------------------------------------------------------------------------------------------
|
90444
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_of_an_associated_collection_that_does_not_exist
|
90445
|
+
--------------------------------------------------------------------------------------------------------
|
90446
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90448
|
+
------------------------------------------------------------------------------------------------
|
90449
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
90450
|
+
------------------------------------------------------------------------------------------------
|
90451
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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 '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
90452
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC')
|
90453
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90454
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90455
|
+
-------------------------------------------------------------------------------------------
|
90456
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
90457
|
+
-------------------------------------------------------------------------------------------
|
90458
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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 '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC') ORDER BY "owners"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
90459
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 09:00:00 UTC' AND '2018-01-01 08:59:59 UTC')
|
90460
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90461
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90462
|
+
-----------------------------------------------------------------------------
|
90463
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_a_field_that_does_not_exists
|
90464
|
+
-----------------------------------------------------------------------------
|
90465
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90466
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90467
|
+
-----------------------------------------------------------------
|
90468
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
90469
|
+
-----------------------------------------------------------------
|
90470
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
90471
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
90472
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90473
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90474
|
+
----------------------------------------------------------------
|
90475
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
90476
|
+
----------------------------------------------------------------
|
90477
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
90478
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
90479
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90480
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90481
|
+
------------------------------------------------------------------------------------
|
90482
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
90483
|
+
------------------------------------------------------------------------------------
|
90484
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
90485
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
90486
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90487
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90488
|
+
-----------------------------------------------------------------
|
90489
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
90490
|
+
-----------------------------------------------------------------
|
90491
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
90492
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
90493
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90494
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90495
|
+
-----------------------------------------------------------------------
|
90496
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
90497
|
+
-----------------------------------------------------------------------
|
90498
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
90499
|
+
[1m[35m (0.1ms)[0m 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"
|
90500
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90501
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90502
|
+
------------------------------------------------------------
|
90503
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
|
90504
|
+
------------------------------------------------------------
|
90505
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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" < '2018-12-14 16:01:36 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
90506
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-12-14 16:01:36 UTC')
|
90507
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90508
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90509
|
+
------------------------------------------------------------------------
|
90510
|
+
ForestLiana::ResourcesGetterTest: test_on_a_model_having_a_reserved_name
|
90511
|
+
------------------------------------------------------------------------
|
90512
|
+
[1m[36mSQL (0.3ms)[0m [1mSELECT "references"."id" AS t0_r0 FROM "references" ORDER BY "references"."id" DESC LIMIT 10 OFFSET 0[0m
|
90513
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "references"
|
90514
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90515
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90516
|
+
----------------------------------------------------------------
|
90517
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
90518
|
+
----------------------------------------------------------------
|
90519
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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[0m
|
90520
|
+
[1m[35m (0.1ms)[0m 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')
|
90521
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90523
|
+
------------------------------------------------------------------------------------------------------
|
90524
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
90525
|
+
------------------------------------------------------------------------------------------------------
|
90526
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "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[0m
|
90527
|
+
[1m[35m (0.1ms)[0m 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)')
|
90528
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90529
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90530
|
+
----------------------------------------------------------
|
90531
|
+
ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
|
90532
|
+
----------------------------------------------------------
|
90533
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "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" > '2018-12-14 16:01:36 UTC') ORDER BY "trees"."created_at" DESC LIMIT 10 OFFSET 0[0m
|
90534
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-12-14 16:01:36 UTC')
|
90535
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90536
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90537
|
+
--------------------------------------------------------------------
|
90538
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
90539
|
+
--------------------------------------------------------------------
|
90540
|
+
[1m[36mSQL (0.6ms)[0m [1mSELECT "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[0m
|
90541
|
+
[1m[35m (0.1ms)[0m 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"
|
90542
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90543
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90544
|
+
------------------------------------------------------------------
|
90545
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
|
90546
|
+
------------------------------------------------------------------
|
90547
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
90548
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
|
90549
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
90550
|
+
[1m[35mSQL (0.2ms)[0m 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]]
|
90551
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
90552
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90553
|
+
-----------------------------------------------------------------------
|
90554
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
|
90555
|
+
-----------------------------------------------------------------------
|
90556
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
90557
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? [["owner_id", 1]]
|
90558
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
90559
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
90560
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
90561
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90562
|
+
-------------------------------------------------------------------------
|
90563
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
|
90564
|
+
-------------------------------------------------------------------------
|
90565
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
90566
|
+
[1m[35m (0.3ms)[0m 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]]
|
90567
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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[0m [["owner_id", 1]]
|
90568
|
+
[1m[35mSQL (0.1ms)[0m 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]]
|
90569
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90570
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90571
|
+
-------------------------------------------------------------------------------------------------
|
90572
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
90573
|
+
-------------------------------------------------------------------------------------------------
|
90574
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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')[0m
|
90575
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
90576
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90577
|
+
----------------------------------------------------------------------------------------------------
|
90578
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
90579
|
+
----------------------------------------------------------------------------------------------------
|
90580
|
+
[1m[35m (0.3ms)[0m 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)
|
90581
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90582
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90583
|
+
----------------------------------------------------------------------------------------------------
|
90584
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
90585
|
+
----------------------------------------------------------------------------------------------------
|
90586
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
90587
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
90588
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90589
|
+
-----------------------------------------------------------------------------
|
90590
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
90591
|
+
-----------------------------------------------------------------------------
|
90592
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
90593
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90594
|
+
[1m[35m (0.0ms)[0m begin transaction
|
90595
|
+
------------------------------------------------------------------------------------------------------
|
90596
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
90597
|
+
------------------------------------------------------------------------------------------------------
|
90598
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
90599
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
90600
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
90601
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90602
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90603
|
+
---------------------------------------------------------------------------------------------------
|
90604
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
90605
|
+
---------------------------------------------------------------------------------------------------
|
90606
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
90607
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
90608
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
|
90609
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
90610
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
90611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
90612
|
+
------------------------------------------------------------------------------------------------------------
|
90613
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
90614
|
+
------------------------------------------------------------------------------------------------------------
|
90615
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
90616
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
90617
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
90618
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
90619
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
90620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90621
|
+
---------------------------------------------------------------------------------------------------------
|
90622
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
90623
|
+
---------------------------------------------------------------------------------------------------------
|
90624
|
+
[1m[35mSerializeField Load (0.3ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
90625
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|