forest_liana 1.9.5 → 1.9.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/application_controller.rb +1 -1
- data/app/controllers/forest_liana/intercom_controller.rb +11 -2
- data/app/serializers/forest_liana/intercom_attribute_serializer.rb +3 -3
- data/app/serializers/forest_liana/intercom_conversation_serializer.rb +1 -1
- data/app/services/forest_liana/intercom_attributes_getter.rb +5 -10
- data/app/services/forest_liana/intercom_conversation_getter.rb +22 -0
- data/app/services/forest_liana/intercom_conversations_getter.rb +5 -11
- data/config/routes.rb +2 -1
- data/lib/forest_liana/bootstraper.rb +8 -23
- data/lib/forest_liana/collection.rb +11 -1
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2628 -0
- data/test/routing/route_test.rb +7 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a14d17a9fa93b1d17ed718b9857abf32c3a977
|
4
|
+
data.tar.gz: ebf1a64c8bcdbe84e8f77155dc44d597b1986066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5022613891ffe3069cc68f161f562bdca5fb6c6cab1c29f2829e4d1e7867f9fe5753030f851f08186d2d5dec43cc18a9c06a3a2897ee96876892888e912d7768
|
7
|
+
data.tar.gz: 161c7ebcf85d78f330de3263f69dbbd0c1af2b1d517866b51cf94ff7c7effee0adb6a6c5c78a00b87d4828eed4f7249207cfc4176908583c088c5857b6d2497c
|
@@ -92,7 +92,7 @@ module ForestLiana
|
|
92
92
|
json['data'].each { |record| force_utf8_attributes_encoding(record) }
|
93
93
|
else
|
94
94
|
# NOTICE: Single record case
|
95
|
-
force_utf8_attributes_encoding(json['data'])
|
95
|
+
force_utf8_attributes_encoding(json['data']) if json['data']
|
96
96
|
end
|
97
97
|
|
98
98
|
json['included'].try(:each) do |association|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ForestLiana
|
2
2
|
class IntercomController < ForestLiana::ApplicationController
|
3
|
-
def
|
3
|
+
def conversations
|
4
4
|
getter = IntercomConversationsGetter.new(params)
|
5
5
|
getter.perform
|
6
6
|
|
@@ -10,11 +10,20 @@ module ForestLiana
|
|
10
10
|
})
|
11
11
|
end
|
12
12
|
|
13
|
+
def conversation
|
14
|
+
getter = IntercomConversationGetter.new(params)
|
15
|
+
getter.perform
|
16
|
+
|
17
|
+
render serializer: nil, json: serialize_model(getter.record, {
|
18
|
+
context: { type: get_serializer_type('intercom_conversations') }
|
19
|
+
})
|
20
|
+
end
|
21
|
+
|
13
22
|
def attributes
|
14
23
|
getter = IntercomAttributesGetter.new(params)
|
15
24
|
getter.perform
|
16
25
|
|
17
|
-
render serializer: nil, json: serialize_model(getter.
|
26
|
+
render serializer: nil, json: serialize_model(getter.record, {
|
18
27
|
context: { type: get_serializer_type('intercom_attributes') }
|
19
28
|
})
|
20
29
|
end
|
@@ -22,11 +22,11 @@ module ForestLiana
|
|
22
22
|
end
|
23
23
|
|
24
24
|
attribute :country do
|
25
|
-
object.location_data.country_name
|
25
|
+
object.location_data.try(:country_name)
|
26
26
|
end
|
27
27
|
|
28
28
|
attribute :city do
|
29
|
-
object.location_data.city_name
|
29
|
+
object.location_data.try(:city_name)
|
30
30
|
end
|
31
31
|
|
32
32
|
attribute :user_agent do
|
@@ -55,7 +55,7 @@ module ForestLiana
|
|
55
55
|
end
|
56
56
|
|
57
57
|
attribute :geoloc do
|
58
|
-
[object.location_data.latitude, object.location_data.longitude]
|
58
|
+
[object.location_data.try(:latitude), object.location_data.try(:longitude)]
|
59
59
|
end
|
60
60
|
|
61
61
|
def self_link
|
@@ -1,16 +1,10 @@
|
|
1
1
|
module ForestLiana
|
2
2
|
class IntercomAttributesGetter
|
3
|
-
attr_accessor :
|
3
|
+
attr_accessor :record
|
4
4
|
|
5
5
|
def initialize(params)
|
6
6
|
@params = params
|
7
|
-
@intercom = ::Intercom::Client.new(
|
8
|
-
app_id: ForestLiana.integrations[:intercom][:app_id],
|
9
|
-
api_key: ForestLiana.integrations[:intercom][:api_key])
|
10
|
-
end
|
11
|
-
|
12
|
-
def count
|
13
|
-
@records.count
|
7
|
+
@intercom = ::Intercom::Client.new(token: ForestLiana.integrations[:intercom][:access_token])
|
14
8
|
end
|
15
9
|
|
16
10
|
def perform
|
@@ -21,9 +15,10 @@ module ForestLiana
|
|
21
15
|
user.segments = user.segments.map do |segment|
|
22
16
|
@intercom.segments.find(id: segment.id)
|
23
17
|
end
|
24
|
-
|
25
|
-
@records = user
|
18
|
+
@record = user
|
26
19
|
rescue Intercom::ResourceNotFound
|
20
|
+
rescue Intercom::UnexpectedError => exception
|
21
|
+
FOREST_LOGGER.error "Cannot retrieve the Intercom attributes: #{exception.message}"
|
27
22
|
end
|
28
23
|
end
|
29
24
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module ForestLiana
|
2
|
+
class IntercomConversationGetter
|
3
|
+
attr_accessor :record
|
4
|
+
|
5
|
+
def initialize(params)
|
6
|
+
@params = params
|
7
|
+
@access_token = ForestLiana.integrations[:intercom][:access_token]
|
8
|
+
@intercom = ::Intercom::Client.new(token: @access_token)
|
9
|
+
end
|
10
|
+
|
11
|
+
def perform
|
12
|
+
begin
|
13
|
+
@record = @intercom.conversations.find(id: @params[:conversation_id])
|
14
|
+
rescue Intercom::ResourceNotFound
|
15
|
+
@record = nil
|
16
|
+
rescue Intercom::UnexpectedError => exception
|
17
|
+
FOREST_LOGGER.error "Cannot retrieve the Intercom conversation: #{exception.message}"
|
18
|
+
@record = nil
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -2,10 +2,8 @@ module ForestLiana
|
|
2
2
|
class IntercomConversationsGetter
|
3
3
|
def initialize(params)
|
4
4
|
@params = params
|
5
|
-
@
|
6
|
-
@
|
7
|
-
|
8
|
-
@intercom = ::Intercom::Client.new(app_id: @app_id, api_key: @api_key)
|
5
|
+
@access_token = ForestLiana.integrations[:intercom][:access_token]
|
6
|
+
@intercom = ::Intercom::Client.new(token: @access_token)
|
9
7
|
end
|
10
8
|
|
11
9
|
def count
|
@@ -18,9 +16,6 @@ module ForestLiana
|
|
18
16
|
admins = @intercom.admins.all.detect(id: conversation.assignee.id)
|
19
17
|
conversation.assignee = admins.first
|
20
18
|
end
|
21
|
-
|
22
|
-
conversation.link = link(conversation)
|
23
|
-
|
24
19
|
conversation
|
25
20
|
end
|
26
21
|
end
|
@@ -35,6 +30,9 @@ module ForestLiana
|
|
35
30
|
).entries
|
36
31
|
rescue Intercom::ResourceNotFound
|
37
32
|
@records = []
|
33
|
+
rescue Intercom::UnexpectedError => exception
|
34
|
+
FOREST_LOGGER.error "Cannot retrieve the Intercom conversations: #{exception.message}"
|
35
|
+
@records = []
|
38
36
|
end
|
39
37
|
end
|
40
38
|
|
@@ -44,10 +42,6 @@ module ForestLiana
|
|
44
42
|
@params[:collection].singularize.camelize.constantize
|
45
43
|
end
|
46
44
|
|
47
|
-
def link(conversation)
|
48
|
-
"#{@intercom.base_url}/a/apps/#{@app_id}/inbox/all/conversations/#{conversation.id}"
|
49
|
-
end
|
50
|
-
|
51
45
|
def pagination
|
52
46
|
offset..(offset + limit - 1)
|
53
47
|
end
|
data/config/routes.rb
CHANGED
@@ -28,8 +28,9 @@ ForestLiana::Engine.routes.draw do
|
|
28
28
|
get ':collection/:id/stripe_bank_accounts' => 'stripe#bank_accounts'
|
29
29
|
|
30
30
|
# Intercom Integration
|
31
|
-
get ':collection/:id/intercom_conversations' => 'intercom#
|
31
|
+
get ':collection/:id/intercom_conversations' => 'intercom#conversations'
|
32
32
|
get ':collection/:id/intercom_attributes' => 'intercom#attributes'
|
33
|
+
get '(*collection)_intercom_conversations/:conversation_id' => 'intercom#conversation'
|
33
34
|
|
34
35
|
# Devise support
|
35
36
|
post '/actions/change-password' => 'devise#change_password'
|
@@ -86,17 +86,19 @@ module ForestLiana
|
|
86
86
|
cast_to_array(ForestLiana.integrations[:stripe][:mapping])
|
87
87
|
@integration_stripe_valid = true
|
88
88
|
else
|
89
|
-
FOREST_LOGGER.error 'Cannot setup properly your Stripe integration.'
|
89
|
+
FOREST_LOGGER.error 'Cannot setup properly your Stripe integration.' \
|
90
|
+
'Please go to https://doc.forestadmin.com for more information.'
|
90
91
|
end
|
91
92
|
end
|
92
93
|
|
93
94
|
if intercom_integration?
|
94
|
-
if intercom_integration_valid?
|
95
|
+
if intercom_integration_valid?
|
95
96
|
ForestLiana.integrations[:intercom][:mapping] =
|
96
97
|
cast_to_array(ForestLiana.integrations[:intercom][:mapping])
|
97
98
|
@integration_intercom_valid = true
|
98
99
|
else
|
99
|
-
FOREST_LOGGER.error 'Cannot setup properly your Intercom integration.'
|
100
|
+
FOREST_LOGGER.error 'Cannot setup properly your Intercom integration. ' \
|
101
|
+
'Please go to https://doc.forestadmin.com for more information.'
|
100
102
|
end
|
101
103
|
end
|
102
104
|
end
|
@@ -203,7 +205,7 @@ module ForestLiana
|
|
203
205
|
end
|
204
206
|
|
205
207
|
def setup_intercom_integration(collection_name)
|
206
|
-
model_name = collection_name.constantize
|
208
|
+
model_name = ForestLiana.name_for(collection_name.constantize)
|
207
209
|
collection_display_name = collection_name.capitalize
|
208
210
|
|
209
211
|
ForestLiana.apimap << ForestLiana::Model::Collection.new({
|
@@ -216,7 +218,7 @@ module ForestLiana
|
|
216
218
|
is_searchable: false,
|
217
219
|
fields: [
|
218
220
|
{ field: :subject, type: 'String' },
|
219
|
-
{ field: :body, type: ['String']
|
221
|
+
{ field: :body, type: ['String'] },
|
220
222
|
{ field: :open, type: 'Boolean'},
|
221
223
|
{ field: :read, type: 'Boolean'},
|
222
224
|
{ field: :assignee, type: 'String' }
|
@@ -262,24 +264,7 @@ module ForestLiana
|
|
262
264
|
|
263
265
|
def intercom_integration_valid?
|
264
266
|
integration = ForestLiana.integrations.try(:[], :intercom)
|
265
|
-
integration.present? && integration.has_key?(:
|
266
|
-
integration.has_key?(:app_id) && integration.has_key?(:mapping)
|
267
|
-
end
|
268
|
-
|
269
|
-
def intercom_integration_deprecated?
|
270
|
-
integration = ForestLiana.integrations.try(:[], :intercom)
|
271
|
-
|
272
|
-
is_deprecated = integration.present? && integration.has_key?(:api_key) &&
|
273
|
-
integration.has_key?(:app_id) && integration.has_key?(:user_collection)
|
274
|
-
|
275
|
-
if is_deprecated
|
276
|
-
integration[:mapping] = integration[:user_collection]
|
277
|
-
|
278
|
-
FOREST_LOGGER.warn "Intercom integration attribute \"user_collection\"" \
|
279
|
-
"is now deprecated, please use \"mapping\" attribute."
|
280
|
-
end
|
281
|
-
|
282
|
-
is_deprecated
|
267
|
+
integration.present? && integration.has_key?(:access_token) && integration.has_key?(:mapping)
|
283
268
|
end
|
284
269
|
|
285
270
|
def setup_stripe_integration(collection_name_and_field)
|
@@ -56,7 +56,17 @@ module ForestLiana::Collection
|
|
56
56
|
if serializer_name && ForestLiana::UserSpace.const_defined?(
|
57
57
|
serializer_name)
|
58
58
|
ForestLiana::UserSpace.const_get(serializer_name).class_eval do
|
59
|
-
|
59
|
+
compute_value = lambda do |object|
|
60
|
+
begin
|
61
|
+
object.instance_eval(&block)
|
62
|
+
rescue => exception
|
63
|
+
FOREST_LOGGER.error "Cannot retrieve the " + name.to_s + " value because of an " \
|
64
|
+
"internal error in the getter implementation: " + exception.message
|
65
|
+
nil
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
attribute(name, &compute_value)
|
60
70
|
end
|
61
71
|
end
|
62
72
|
end
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -105624,3 +105624,2631 @@ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an
|
|
105624
105624
|
[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 (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
105625
105625
|
[1m[36m (0.2ms)[0m [1mSELECT 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)')[0m
|
105626
105626
|
[1m[35m (0.1ms)[0m rollback transaction
|
105627
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
105628
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
105629
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
105630
|
+
FROM sqlite_master
|
105631
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
105632
|
+
UNION ALL
|
105633
|
+
SELECT sql
|
105634
|
+
FROM sqlite_temp_master
|
105635
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
105636
|
+
[0m
|
105637
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
105638
|
+
FROM sqlite_master
|
105639
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
105640
|
+
UNION ALL
|
105641
|
+
SELECT sql
|
105642
|
+
FROM sqlite_temp_master
|
105643
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
105644
|
+
|
105645
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
105646
|
+
FROM sqlite_master
|
105647
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
105648
|
+
UNION ALL
|
105649
|
+
SELECT sql
|
105650
|
+
FROM sqlite_temp_master
|
105651
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
105652
|
+
[0m
|
105653
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
105654
|
+
FROM sqlite_master
|
105655
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
105656
|
+
UNION ALL
|
105657
|
+
SELECT sql
|
105658
|
+
FROM sqlite_temp_master
|
105659
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
105660
|
+
|
105661
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
105662
|
+
FROM sqlite_master
|
105663
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
105664
|
+
UNION ALL
|
105665
|
+
SELECT sql
|
105666
|
+
FROM sqlite_temp_master
|
105667
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
105668
|
+
[0m
|
105669
|
+
[1m[35m (1.9ms)[0m SELECT sql
|
105670
|
+
FROM sqlite_master
|
105671
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
105672
|
+
UNION ALL
|
105673
|
+
SELECT sql
|
105674
|
+
FROM sqlite_temp_master
|
105675
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
105676
|
+
|
105677
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
105678
|
+
FROM sqlite_master
|
105679
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
105680
|
+
UNION ALL
|
105681
|
+
SELECT sql
|
105682
|
+
FROM sqlite_temp_master
|
105683
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
105684
|
+
[0m
|
105685
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
105686
|
+
[1m[35m (0.2ms)[0m begin transaction
|
105687
|
+
[1m[36mFixture Delete (1.9ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
105688
|
+
[1m[35mFixture Insert (1.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
105689
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)[0m
|
105690
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
105691
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
105692
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
105693
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
105694
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
105695
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
105696
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
105697
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
105698
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
105699
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
105700
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
105701
|
+
[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
|
105702
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
105703
|
+
[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
|
105704
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
105705
|
+
[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
|
105706
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
105707
|
+
[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
|
105708
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
105709
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
105710
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
105711
|
+
[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
|
105712
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
105713
|
+
[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
|
105714
|
+
[1m[35mFixture Insert (1.3ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
105715
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
105716
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
105717
|
+
[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
|
105718
|
+
[1m[35mFixture Delete (1.7ms)[0m DELETE FROM "has_many_fields"
|
105719
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
105720
|
+
[1m[35mFixture Insert (14.4ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
105721
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
105722
|
+
[1m[35mFixture Insert (6.5ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
105723
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
105724
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
105725
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
105726
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
105727
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
105728
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
105729
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
105730
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
105731
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
105732
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
105733
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
105734
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
105735
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
105736
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
105737
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
105738
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
105739
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
105740
|
+
[1m[35mFixture Delete (2.6ms)[0m DELETE FROM "has_one_fields"
|
105741
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
105742
|
+
[1m[35mFixture Insert (1.8ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
105743
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
105744
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
105745
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
105746
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
105747
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
105748
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
105749
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
105750
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
105751
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
105752
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
105753
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
105754
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
105755
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
105756
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
105757
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
105758
|
+
[1m[35mFixture Insert (1.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
105759
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
105760
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
105761
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
105762
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
105763
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
105764
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
105765
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
105766
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
105767
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
105768
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
105769
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
105770
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
105771
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "owners"[0m
|
105772
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
105773
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
105774
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
105775
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
105776
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
105777
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
105778
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
105779
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
105780
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
105781
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "string_fields"[0m
|
105782
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
105783
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
105784
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
105785
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
105786
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
105787
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
105788
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
105789
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
105790
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
105791
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
105792
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
105793
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
105794
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
105795
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
105796
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
105797
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
105798
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
105799
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
105800
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
105801
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
105802
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
105803
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
105804
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
105805
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
105806
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
105807
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
105808
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
105809
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
105810
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
105811
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
105812
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "trees"
|
105813
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
105814
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
105815
|
+
[1m[36mFixture Insert (1.3ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
105816
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
105817
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
105818
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-10-23 20:52:31.000000', '2017-10-23 20:52:31.000000')
|
105819
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-10-23 20:52:31.000000', '2017-10-23 20:52:31.000000')[0m
|
105820
|
+
[1m[35mFixture Insert (1.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-10-23 20:52:31.000000', '2017-10-23 20:52:31.000000')
|
105821
|
+
[1m[36m (29.3ms)[0m [1mcommit transaction[0m
|
105822
|
+
[1m[35m (0.4ms)[0m begin transaction
|
105823
|
+
------------------------------------------------------------------------------------------------
|
105824
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
105825
|
+
------------------------------------------------------------------------------------------------
|
105826
|
+
[1m[36mSQL (0.7ms)[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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
105827
|
+
[1m[35m (8.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
105828
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
105829
|
+
[1m[35m (0.3ms)[0m begin transaction
|
105830
|
+
-----------------------------------------------------------------
|
105831
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
105832
|
+
-----------------------------------------------------------------
|
105833
|
+
[1m[36mSQL (0.6ms)[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
|
105834
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "string_fields"
|
105835
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
105836
|
+
[1m[35m (0.4ms)[0m begin transaction
|
105837
|
+
-----------------------------------------------------------------
|
105838
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
105839
|
+
-----------------------------------------------------------------
|
105840
|
+
[1m[36mSQL (22.5ms)[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
|
105841
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
105842
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
105843
|
+
[1m[35m (0.2ms)[0m begin transaction
|
105844
|
+
---------------------------------------------------------------------------
|
105845
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
105846
|
+
---------------------------------------------------------------------------
|
105847
|
+
[1m[36mOwner Load (0.4ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
105848
|
+
[1m[35mSQL (0.9ms)[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%') [["owner_id", 1]]
|
105849
|
+
[1m[36m (1.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]]
|
105850
|
+
[1m[35mSQL (3.9ms)[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]]
|
105851
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
105852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
105853
|
+
--------------------------------------------------------------------
|
105854
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
105855
|
+
--------------------------------------------------------------------
|
105856
|
+
[1m[36mSQL (4.8ms)[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
|
105857
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "has_one_fields"
|
105858
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
105859
|
+
[1m[35m (0.2ms)[0m begin transaction
|
105860
|
+
-----------------------------------------------------------
|
105861
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
105862
|
+
-----------------------------------------------------------
|
105863
|
+
[1m[36mSQL (0.3ms)[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" < '2017-10-23 20:51:33 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
105864
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-10-23 20:51:33 UTC')
|
105865
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
105866
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
105867
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105868
|
+
------------------------------------------------------------------------------------
|
105869
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
105870
|
+
------------------------------------------------------------------------------------
|
105871
|
+
[1m[35mSQL (0.5ms)[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 (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
|
105872
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')[0m
|
105873
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105875
|
+
----------------------------------------------------------------
|
105876
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
105877
|
+
----------------------------------------------------------------
|
105878
|
+
[1m[35mSQL (0.4ms)[0m SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.field DESC LIMIT 10 OFFSET 0
|
105879
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
105880
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
105881
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
105882
|
+
------------------------------------------------------------------------------------------------------
|
105883
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
105884
|
+
------------------------------------------------------------------------------------------------------
|
105885
|
+
[1m[35mSQL (1.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 (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
105886
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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)')[0m
|
105887
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105889
|
+
-----------------------------------------------------------------------
|
105890
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
105891
|
+
-----------------------------------------------------------------------
|
105892
|
+
[1m[35mSQL (0.4ms)[0m SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
|
105893
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "belongs_to_fields"[0m
|
105894
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105895
|
+
[1m[36m (1.3ms)[0m [1mbegin transaction[0m
|
105896
|
+
-------------------------------------------------------------------------
|
105897
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
105898
|
+
-------------------------------------------------------------------------
|
105899
|
+
[1m[35mOwner Load (0.2ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
105900
|
+
[1m[36mSQL (0.3ms)[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"."owner_id" = ? ORDER BY trees.id DESC[0m [["owner_id", 1]]
|
105901
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
105902
|
+
[1m[36mSQL (0.3ms)[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"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
105903
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
105904
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105905
|
+
--------------------------------------------------------------------
|
105906
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
105907
|
+
--------------------------------------------------------------------
|
105908
|
+
[1m[35mOwner Load (0.2ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
105909
|
+
[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"."owner_id" = ?[0m [["owner_id", 1]]
|
105910
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
105911
|
+
[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"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
105912
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
105913
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105914
|
+
----------------------------------------------------------------
|
105915
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
105916
|
+
----------------------------------------------------------------
|
105917
|
+
[1m[35mSQL (0.3ms)[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"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
105918
|
+
[1m[36m (0.4ms)[0m [1mSELECT 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')[0m
|
105919
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
105920
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105921
|
+
-------------------------------------------------------------------------------------------
|
105922
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
105923
|
+
-------------------------------------------------------------------------------------------
|
105924
|
+
[1m[35mSQL (0.3ms)[0m SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0
|
105925
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
105926
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
105927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105928
|
+
--------------------------------------------------------
|
105929
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
105930
|
+
--------------------------------------------------------
|
105931
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105932
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105933
|
+
--------------------------------------------------------------------------
|
105934
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
105935
|
+
--------------------------------------------------------------------------
|
105936
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
105937
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105938
|
+
--------------------------------------------------------------------------
|
105939
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
105940
|
+
--------------------------------------------------------------------------
|
105941
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105942
|
+
[1m[36m (1.8ms)[0m [1mbegin transaction[0m
|
105943
|
+
-------------------------------------------------------------------------
|
105944
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
105945
|
+
-------------------------------------------------------------------------
|
105946
|
+
[1m[35m (2.2ms)[0m rollback transaction
|
105947
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
105948
|
+
---------------------------------------------------------------------------
|
105949
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
105950
|
+
---------------------------------------------------------------------------
|
105951
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
105952
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
105953
|
+
----------------------------------------------------------------------------------
|
105954
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
105955
|
+
----------------------------------------------------------------------------------
|
105956
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105957
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
105958
|
+
------------------------------------------------------------------------------------
|
105959
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
105960
|
+
------------------------------------------------------------------------------------
|
105961
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105962
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
105963
|
+
-------------------------------------------------------------------------
|
105964
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
105965
|
+
-------------------------------------------------------------------------
|
105966
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
105967
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
105968
|
+
-----------------------------------------------------------
|
105969
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
105970
|
+
-----------------------------------------------------------
|
105971
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105972
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105973
|
+
---------------------------------------------------------------------
|
105974
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
105975
|
+
---------------------------------------------------------------------
|
105976
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
105977
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105978
|
+
---------------------------------------------------------
|
105979
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
105980
|
+
---------------------------------------------------------
|
105981
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
105982
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
105983
|
+
------------------------------------------------------------------------
|
105984
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
105985
|
+
------------------------------------------------------------------------
|
105986
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
105987
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105988
|
+
---------------------------
|
105989
|
+
ForestLianaTest: test_truth
|
105990
|
+
---------------------------
|
105991
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
105992
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105993
|
+
-------------------------------------------------------------------------------------------------
|
105994
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
105995
|
+
-------------------------------------------------------------------------------------------------
|
105996
|
+
[1m[35m (9.0ms)[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"."status" = '1')
|
105997
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
105998
|
+
[1m[35m (0.1ms)[0m begin transaction
|
105999
|
+
----------------------------------------------------------------------------------------------------
|
106000
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
106001
|
+
----------------------------------------------------------------------------------------------------
|
106002
|
+
[1m[36m (0.8ms)[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
|
106003
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106004
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106005
|
+
-----------------------------------------------------------------------------
|
106006
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
106007
|
+
-----------------------------------------------------------------------------
|
106008
|
+
[1m[35m (0.8ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
106009
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
106010
|
+
[1m[35m (0.4ms)[0m begin transaction
|
106011
|
+
----------------------------------------------------------------------------------------------------
|
106012
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
106013
|
+
----------------------------------------------------------------------------------------------------
|
106014
|
+
[1m[36m (10.0ms)[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
|
106015
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
106016
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106017
|
+
------------------------------------------------------------------------------------------------------------
|
106018
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
106019
|
+
------------------------------------------------------------------------------------------------------------
|
106020
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
106021
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
106022
|
+
[1m[35mSQL (11.7ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
106023
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
106024
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
106025
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106026
|
+
---------------------------------------------------------------------------------------------------------
|
106027
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
106028
|
+
---------------------------------------------------------------------------------------------------------
|
106029
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
106030
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106031
|
+
[1m[35m (0.2ms)[0m begin transaction
|
106032
|
+
------------------------------------------------------------------------------------------------------
|
106033
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
106034
|
+
------------------------------------------------------------------------------------------------------
|
106035
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106036
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
106037
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
106038
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106039
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106040
|
+
---------------------------------------------------------------------------------------------------
|
106041
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
106042
|
+
---------------------------------------------------------------------------------------------------
|
106043
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
106044
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
106045
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
|
106046
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
106047
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
106048
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
106049
|
+
-----------------------------------------------------------------------------------------
|
106050
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
106051
|
+
-----------------------------------------------------------------------------------------
|
106052
|
+
[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
|
106053
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
106054
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106055
|
+
---------------------------------------------------------------------------------------
|
106056
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
106057
|
+
---------------------------------------------------------------------------------------
|
106058
|
+
[1m[36m (106.6ms)[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
|
106059
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
106060
|
+
[1m[36m (5.2ms)[0m [1mbegin transaction[0m
|
106061
|
+
-----------------------------------
|
106062
|
+
ForestLiana::RouteTest: test_Routes
|
106063
|
+
-----------------------------------
|
106064
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
106065
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106066
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
106067
|
+
[1m[36m (0.5ms)[0m [1m SELECT sql
|
106068
|
+
FROM sqlite_master
|
106069
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
106070
|
+
UNION ALL
|
106071
|
+
SELECT sql
|
106072
|
+
FROM sqlite_temp_master
|
106073
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
106074
|
+
[0m
|
106075
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
106076
|
+
FROM sqlite_master
|
106077
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
106078
|
+
UNION ALL
|
106079
|
+
SELECT sql
|
106080
|
+
FROM sqlite_temp_master
|
106081
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
106082
|
+
|
106083
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106084
|
+
FROM sqlite_master
|
106085
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
106086
|
+
UNION ALL
|
106087
|
+
SELECT sql
|
106088
|
+
FROM sqlite_temp_master
|
106089
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
106090
|
+
[0m
|
106091
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
106092
|
+
FROM sqlite_master
|
106093
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
106094
|
+
UNION ALL
|
106095
|
+
SELECT sql
|
106096
|
+
FROM sqlite_temp_master
|
106097
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
106098
|
+
|
106099
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106100
|
+
FROM sqlite_master
|
106101
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
106102
|
+
UNION ALL
|
106103
|
+
SELECT sql
|
106104
|
+
FROM sqlite_temp_master
|
106105
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
106106
|
+
[0m
|
106107
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
106108
|
+
FROM sqlite_master
|
106109
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
106110
|
+
UNION ALL
|
106111
|
+
SELECT sql
|
106112
|
+
FROM sqlite_temp_master
|
106113
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
106114
|
+
|
106115
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106116
|
+
FROM sqlite_master
|
106117
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
106118
|
+
UNION ALL
|
106119
|
+
SELECT sql
|
106120
|
+
FROM sqlite_temp_master
|
106121
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
106122
|
+
[0m
|
106123
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106125
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
106126
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
106127
|
+
[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
|
106128
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
106129
|
+
[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
|
106130
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
106131
|
+
[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
|
106132
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
106133
|
+
[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
|
106134
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
106135
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
106136
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
106137
|
+
[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
|
106138
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
106139
|
+
[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
|
106140
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
106141
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)[0m
|
106142
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
106143
|
+
[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
|
106144
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
106145
|
+
[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
|
106146
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
106147
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
106148
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
106149
|
+
[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
|
106150
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
106151
|
+
[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
|
106152
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
106153
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
106154
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
106155
|
+
[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
|
106156
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "has_many_fields"
|
106157
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
106158
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
106159
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
106160
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
106161
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
106162
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
106163
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
106164
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
106165
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
106166
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
106167
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
106168
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
106169
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
106170
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
106171
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
106172
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
106173
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
106174
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
106175
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
106176
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
106177
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
106178
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "has_one_fields"
|
106179
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
106180
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
106181
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
106182
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
106183
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
106184
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
106185
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
106186
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
106187
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
106188
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
106189
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
106190
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
106191
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
106192
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
106193
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
106194
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
106195
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
106196
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
106197
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
106198
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
106199
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
106200
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
106201
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
106202
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
106203
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
106204
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
106205
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
106206
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
106207
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
106208
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
106209
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "owners"[0m
|
106210
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
106211
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
106212
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
106213
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
106214
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
106215
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
106216
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
106217
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
106218
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
106219
|
+
[1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "string_fields"[0m
|
106220
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
106221
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
106222
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
106223
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
106224
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
106225
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
106226
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
106227
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
106228
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
106229
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
106230
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
106231
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
106232
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
106233
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
106234
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
106235
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
106236
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
106237
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
106238
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
106239
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
106240
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
106241
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
106242
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
106243
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
106244
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
106245
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
106246
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
106247
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
106248
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
106249
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
106250
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "trees"
|
106251
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
106252
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
106253
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
106254
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
106255
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
106256
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-10-25 17:07:41.000000', '2017-10-25 17:07:41.000000')
|
106257
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-10-25 17:07:41.000000', '2017-10-25 17:07:41.000000')[0m
|
106258
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-10-25 17:07:41.000000', '2017-10-25 17:07:41.000000')
|
106259
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
106260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106261
|
+
------------------------------------------------------------------------------------------------------------
|
106262
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
106263
|
+
------------------------------------------------------------------------------------------------------------
|
106264
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106265
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
106266
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
106267
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106268
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
106269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106270
|
+
---------------------------------------------------------------------------------------------------------
|
106271
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
106272
|
+
---------------------------------------------------------------------------------------------------------
|
106273
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106274
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
106275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106276
|
+
------------------------------------------------------------------------------------------------------
|
106277
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
106278
|
+
------------------------------------------------------------------------------------------------------
|
106279
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
106280
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
106281
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106282
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106284
|
+
---------------------------------------------------------------------------------------------------
|
106285
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
106286
|
+
---------------------------------------------------------------------------------------------------
|
106287
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
106289
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
106290
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106291
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
106292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106293
|
+
---------------------------------------------------------
|
106294
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
106295
|
+
---------------------------------------------------------
|
106296
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106297
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106298
|
+
----------------------------------------------------------------------------------
|
106299
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
106300
|
+
----------------------------------------------------------------------------------
|
106301
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106303
|
+
-----------------------------------------------------------
|
106304
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
106305
|
+
-----------------------------------------------------------
|
106306
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106308
|
+
---------------------------------------------------------------------------
|
106309
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
106310
|
+
---------------------------------------------------------------------------
|
106311
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
106313
|
+
--------------------------------------------------------------------------
|
106314
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
106315
|
+
--------------------------------------------------------------------------
|
106316
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106317
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106318
|
+
--------------------------------------------------------------------------
|
106319
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
106320
|
+
--------------------------------------------------------------------------
|
106321
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106323
|
+
--------------------------------------------------------
|
106324
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
106325
|
+
--------------------------------------------------------
|
106326
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106327
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106328
|
+
------------------------------------------------------------------------
|
106329
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
106330
|
+
------------------------------------------------------------------------
|
106331
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106332
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106333
|
+
-------------------------------------------------------------------------
|
106334
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
106335
|
+
-------------------------------------------------------------------------
|
106336
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106337
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106338
|
+
-------------------------------------------------------------------------
|
106339
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
106340
|
+
-------------------------------------------------------------------------
|
106341
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
106342
|
+
[1m[35m (0.4ms)[0m begin transaction
|
106343
|
+
---------------------------------------------------------------------
|
106344
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
106345
|
+
---------------------------------------------------------------------
|
106346
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106347
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106348
|
+
------------------------------------------------------------------------------------
|
106349
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
106350
|
+
------------------------------------------------------------------------------------
|
106351
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
106352
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106353
|
+
---------------------------
|
106354
|
+
ForestLianaTest: test_truth
|
106355
|
+
---------------------------
|
106356
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
106357
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106358
|
+
-----------------------------------------------------------------------------------------
|
106359
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
106360
|
+
-----------------------------------------------------------------------------------------
|
106361
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC[0m
|
106362
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106364
|
+
---------------------------------------------------------------------------------------
|
106365
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
106366
|
+
---------------------------------------------------------------------------------------
|
106367
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(DISTINCT "belongs_to_fields"."id") AS count_id, belongs_to_fields.has_one_field_id AS belongs_to_fields_has_one_field_id FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" GROUP BY belongs_to_fields.has_one_field_id ORDER BY count_id DESC
|
106368
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106369
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106370
|
+
-----------------------------------
|
106371
|
+
ForestLiana::RouteTest: test_Routes
|
106372
|
+
-----------------------------------
|
106373
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
106374
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106375
|
+
----------------------------------------------------------------------------------------------------
|
106376
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
106377
|
+
----------------------------------------------------------------------------------------------------
|
106378
|
+
[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"."checked" = 0)[0m
|
106379
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106380
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106381
|
+
-------------------------------------------------------------------------------------------------
|
106382
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
106383
|
+
-------------------------------------------------------------------------------------------------
|
106384
|
+
[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"."status" = '1')
|
106385
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106386
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106387
|
+
----------------------------------------------------------------------------------------------------
|
106388
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
106389
|
+
----------------------------------------------------------------------------------------------------
|
106390
|
+
[1m[36m (0.4ms)[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
|
106391
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106392
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106393
|
+
-----------------------------------------------------------------------------
|
106394
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
106395
|
+
-----------------------------------------------------------------------------
|
106396
|
+
[1m[35m (0.3ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
106397
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106399
|
+
-----------------------------------------------------------------
|
106400
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
106401
|
+
-----------------------------------------------------------------
|
106402
|
+
[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.id DESC LIMIT 15 OFFSET 0[0m
|
106403
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
106404
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106406
|
+
-----------------------------------------------------------
|
106407
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
106408
|
+
-----------------------------------------------------------
|
106409
|
+
[1m[36mSQL (0.3ms)[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" < '2017-10-25 17:06:42 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
106410
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-10-25 17:06:42 UTC')
|
106411
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
106412
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106413
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106414
|
+
-------------------------------------------------------------------------------------------
|
106415
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
106416
|
+
-------------------------------------------------------------------------------------------
|
106417
|
+
[1m[35mSQL (0.3ms)[0m SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0
|
106418
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
106419
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106420
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106421
|
+
------------------------------------------------------------------------------------
|
106422
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
106423
|
+
------------------------------------------------------------------------------------
|
106424
|
+
[1m[35mSQL (1.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 (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
|
106425
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')[0m
|
106426
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106427
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106428
|
+
------------------------------------------------------------------------------------------------------
|
106429
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
106430
|
+
------------------------------------------------------------------------------------------------------
|
106431
|
+
[1m[35mSQL (0.3ms)[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 (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
106432
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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)')[0m
|
106433
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106434
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106435
|
+
-----------------------------------------------------------------------
|
106436
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
106437
|
+
-----------------------------------------------------------------------
|
106438
|
+
[1m[35mSQL (0.5ms)[0m SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
|
106439
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "belongs_to_fields"[0m
|
106440
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106442
|
+
------------------------------------------------------------------------------------------------
|
106443
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
106444
|
+
------------------------------------------------------------------------------------------------
|
106445
|
+
[1m[35mSQL (0.6ms)[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 (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
106446
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
106447
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106449
|
+
--------------------------------------------------------------------
|
106450
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
106451
|
+
--------------------------------------------------------------------
|
106452
|
+
[1m[35mOwner Load (0.2ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
106453
|
+
[1m[36mSQL (0.3ms)[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"."owner_id" = ?[0m [["owner_id", 1]]
|
106454
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
106455
|
+
[1m[36mSQL (0.5ms)[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"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
106456
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106457
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106458
|
+
--------------------------------------------------------------------
|
106459
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
106460
|
+
--------------------------------------------------------------------
|
106461
|
+
[1m[35mSQL (0.7ms)[0m SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
|
106462
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "has_one_fields"[0m
|
106463
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106465
|
+
----------------------------------------------------------------
|
106466
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
106467
|
+
----------------------------------------------------------------
|
106468
|
+
[1m[35mSQL (0.3ms)[0m SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.field DESC LIMIT 10 OFFSET 0
|
106469
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
106470
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106471
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
106472
|
+
----------------------------------------------------------------
|
106473
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
106474
|
+
----------------------------------------------------------------
|
106475
|
+
[1m[35mSQL (0.4ms)[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"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
106476
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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')[0m
|
106477
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
106478
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106479
|
+
-------------------------------------------------------------------------
|
106480
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
106481
|
+
-------------------------------------------------------------------------
|
106482
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
106483
|
+
[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"."owner_id" = ? ORDER BY trees.id DESC[0m [["owner_id", 1]]
|
106484
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
106485
|
+
[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"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
106486
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106487
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106488
|
+
---------------------------------------------------------------------------
|
106489
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
106490
|
+
---------------------------------------------------------------------------
|
106491
|
+
[1m[35mOwner Load (0.5ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
106492
|
+
[1m[36mSQL (0.6ms)[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"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%')[0m [["owner_id", 1]]
|
106493
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
106494
|
+
[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"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
106495
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106496
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106497
|
+
-----------------------------------------------------------------
|
106498
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
106499
|
+
-----------------------------------------------------------------
|
106500
|
+
[1m[35mSQL (0.2ms)[0m SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10
|
106501
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
106502
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106503
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106504
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
106505
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
106506
|
+
FROM sqlite_master
|
106507
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
106508
|
+
UNION ALL
|
106509
|
+
SELECT sql
|
106510
|
+
FROM sqlite_temp_master
|
106511
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
106512
|
+
[0m
|
106513
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
106514
|
+
FROM sqlite_master
|
106515
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
106516
|
+
UNION ALL
|
106517
|
+
SELECT sql
|
106518
|
+
FROM sqlite_temp_master
|
106519
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
106520
|
+
|
106521
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
106522
|
+
FROM sqlite_master
|
106523
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
106524
|
+
UNION ALL
|
106525
|
+
SELECT sql
|
106526
|
+
FROM sqlite_temp_master
|
106527
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
106528
|
+
[0m
|
106529
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
106530
|
+
FROM sqlite_master
|
106531
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
106532
|
+
UNION ALL
|
106533
|
+
SELECT sql
|
106534
|
+
FROM sqlite_temp_master
|
106535
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
106536
|
+
|
106537
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106538
|
+
FROM sqlite_master
|
106539
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
106540
|
+
UNION ALL
|
106541
|
+
SELECT sql
|
106542
|
+
FROM sqlite_temp_master
|
106543
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
106544
|
+
[0m
|
106545
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
106546
|
+
FROM sqlite_master
|
106547
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
106548
|
+
UNION ALL
|
106549
|
+
SELECT sql
|
106550
|
+
FROM sqlite_temp_master
|
106551
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
106552
|
+
|
106553
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106554
|
+
FROM sqlite_master
|
106555
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
106556
|
+
UNION ALL
|
106557
|
+
SELECT sql
|
106558
|
+
FROM sqlite_temp_master
|
106559
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
106560
|
+
[0m
|
106561
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106562
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106563
|
+
[1m[36mFixture Delete (2.1ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
106564
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
106565
|
+
[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
|
106566
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
106567
|
+
[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
|
106568
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
106569
|
+
[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
|
106570
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
106571
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
106572
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
106573
|
+
[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
|
106574
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
106575
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
106576
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
106577
|
+
[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
|
106578
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
106579
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)[0m
|
106580
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
106581
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)[0m
|
106582
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
106583
|
+
[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
|
106584
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
106585
|
+
[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
|
106586
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
106587
|
+
[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
|
106588
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
106589
|
+
[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
|
106590
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
106591
|
+
[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
|
106592
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
106593
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
106594
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "has_many_fields"
|
106595
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
106596
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
106597
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
106598
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
106599
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
106600
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
106601
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
106602
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
106603
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
106604
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
106605
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
106606
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
106607
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
106608
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
106609
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
106610
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
106611
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
106612
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
106613
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
106614
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
106615
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
106616
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "has_one_fields"
|
106617
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
106618
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
106619
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
106620
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
106621
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
106622
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
106623
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
106624
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
106625
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
106626
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
106627
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
106628
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
106629
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
106630
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
106631
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
106632
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
106633
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
106634
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
106635
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
106636
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
106637
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
106638
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
106639
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
106640
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
106641
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
106642
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
106643
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
106644
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
106645
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
106646
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
106647
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "owners"[0m
|
106648
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
106649
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
106650
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
106651
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
106652
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
106653
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
106654
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
106655
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
106656
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
106657
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "string_fields"[0m
|
106658
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
106659
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
106660
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
106661
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
106662
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
106663
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
106664
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
106665
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
106666
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
106667
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
106668
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
106669
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
106670
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
106671
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
106672
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
106673
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
106674
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
106675
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
106676
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
106677
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
106678
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
106679
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
106680
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
106681
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
106682
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
106683
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
106684
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
106685
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
106686
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
106687
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
106688
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "trees"
|
106689
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
106690
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
106691
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
106692
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
106693
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
106694
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-10-25 17:08:34.000000', '2017-10-25 17:08:34.000000')
|
106695
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-10-25 17:08:34.000000', '2017-10-25 17:08:34.000000')[0m
|
106696
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-10-25 17:08:34.000000', '2017-10-25 17:08:34.000000')
|
106697
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
106698
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106699
|
+
------------------------------------------------------------------------------------------------------------
|
106700
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
106701
|
+
------------------------------------------------------------------------------------------------------------
|
106702
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106703
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
106704
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
106705
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106706
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
106707
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106708
|
+
---------------------------------------------------------------------------------------------------------
|
106709
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
106710
|
+
---------------------------------------------------------------------------------------------------------
|
106711
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106712
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106713
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106714
|
+
------------------------------------------------------------------------------------------------------
|
106715
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
106716
|
+
------------------------------------------------------------------------------------------------------
|
106717
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
106718
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
106719
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106720
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106721
|
+
[1m[35m (0.0ms)[0m begin transaction
|
106722
|
+
---------------------------------------------------------------------------------------------------
|
106723
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
106724
|
+
---------------------------------------------------------------------------------------------------
|
106725
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
106726
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
106727
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
106728
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
106729
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
106730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106731
|
+
-----------------------------------
|
106732
|
+
ForestLiana::RouteTest: test_Routes
|
106733
|
+
-----------------------------------
|
106734
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106735
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106736
|
+
---------------------------
|
106737
|
+
ForestLianaTest: test_truth
|
106738
|
+
---------------------------
|
106739
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
106740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106741
|
+
---------------------------------------------------------------------------
|
106742
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
106743
|
+
---------------------------------------------------------------------------
|
106744
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
106745
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106746
|
+
-----------------------------------------------------------
|
106747
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
106748
|
+
-----------------------------------------------------------
|
106749
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106751
|
+
--------------------------------------------------------
|
106752
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
106753
|
+
--------------------------------------------------------
|
106754
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106755
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106756
|
+
----------------------------------------------------------------------------------
|
106757
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
106758
|
+
----------------------------------------------------------------------------------
|
106759
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106760
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106761
|
+
---------------------------------------------------------
|
106762
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
106763
|
+
---------------------------------------------------------
|
106764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106765
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106766
|
+
--------------------------------------------------------------------------
|
106767
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
106768
|
+
--------------------------------------------------------------------------
|
106769
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106770
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106771
|
+
-------------------------------------------------------------------------
|
106772
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
106773
|
+
-------------------------------------------------------------------------
|
106774
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
106775
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106776
|
+
------------------------------------------------------------------------------------
|
106777
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
106778
|
+
------------------------------------------------------------------------------------
|
106779
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106781
|
+
------------------------------------------------------------------------
|
106782
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
106783
|
+
------------------------------------------------------------------------
|
106784
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106785
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106786
|
+
--------------------------------------------------------------------------
|
106787
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
106788
|
+
--------------------------------------------------------------------------
|
106789
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106790
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106791
|
+
-------------------------------------------------------------------------
|
106792
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
106793
|
+
-------------------------------------------------------------------------
|
106794
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106795
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106796
|
+
---------------------------------------------------------------------
|
106797
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
106798
|
+
---------------------------------------------------------------------
|
106799
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106800
|
+
[1m[35m (0.2ms)[0m begin transaction
|
106801
|
+
-------------------------------------------------------------------------------------------------
|
106802
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
106803
|
+
-------------------------------------------------------------------------------------------------
|
106804
|
+
[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
|
106805
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106806
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106807
|
+
-----------------------------------------------------------------------------
|
106808
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
106809
|
+
-----------------------------------------------------------------------------
|
106810
|
+
[1m[35m (0.4ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
106811
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106812
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106813
|
+
----------------------------------------------------------------------------------------------------
|
106814
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
106815
|
+
----------------------------------------------------------------------------------------------------
|
106816
|
+
[1m[36m (0.6ms)[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
|
106817
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106818
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106819
|
+
----------------------------------------------------------------------------------------------------
|
106820
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
106821
|
+
----------------------------------------------------------------------------------------------------
|
106822
|
+
[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)
|
106823
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106824
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106825
|
+
-----------------------------------------------------------------
|
106826
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
106827
|
+
-----------------------------------------------------------------
|
106828
|
+
[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.id DESC LIMIT 15 OFFSET 0[0m
|
106829
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
106830
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106832
|
+
---------------------------------------------------------------------------
|
106833
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
106834
|
+
---------------------------------------------------------------------------
|
106835
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
106836
|
+
[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" = ? AND (LOWER("trees"."name") LIKE '%fir%') [["owner_id", 1]]
|
106837
|
+
[1m[36m (0.3ms)[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]]
|
106838
|
+
[1m[35mSQL (0.3ms)[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]]
|
106839
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106840
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106841
|
+
------------------------------------------------------------------------------------------------
|
106842
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
106843
|
+
------------------------------------------------------------------------------------------------
|
106844
|
+
[1m[36mSQL (0.3ms)[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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
106845
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
106846
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106847
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106848
|
+
------------------------------------------------------------------------------------
|
106849
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
106850
|
+
------------------------------------------------------------------------------------
|
106851
|
+
[1m[36mSQL (0.4ms)[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
|
106852
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
106853
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106854
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106855
|
+
-----------------------------------------------------------------
|
106856
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
106857
|
+
-----------------------------------------------------------------
|
106858
|
+
[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.id DESC LIMIT 10 OFFSET 10[0m
|
106859
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
106860
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106862
|
+
-------------------------------------------------------------------------------------------
|
106863
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
106864
|
+
-------------------------------------------------------------------------------------------
|
106865
|
+
[1m[36mSQL (0.2ms)[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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0[0m
|
106866
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
106867
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106868
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106869
|
+
----------------------------------------------------------------
|
106870
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
106871
|
+
----------------------------------------------------------------
|
106872
|
+
[1m[36mSQL (0.3ms)[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
|
106873
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
106874
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106875
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106876
|
+
-----------------------------------------------------------------------
|
106877
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
106878
|
+
-----------------------------------------------------------------------
|
106879
|
+
[1m[36mSQL (0.3ms)[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
|
106880
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
106881
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106883
|
+
-------------------------------------------------------------------------
|
106884
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
106885
|
+
-------------------------------------------------------------------------
|
106886
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
106887
|
+
[1m[35mSQL (0.3ms)[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 [["owner_id", 1]]
|
106888
|
+
[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]]
|
106889
|
+
[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]]
|
106890
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106891
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106892
|
+
--------------------------------------------------------------------
|
106893
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
106894
|
+
--------------------------------------------------------------------
|
106895
|
+
[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
|
106896
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "has_one_fields"
|
106897
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106898
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106899
|
+
----------------------------------------------------------------
|
106900
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
106901
|
+
----------------------------------------------------------------
|
106902
|
+
[1m[36mSQL (0.3ms)[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
|
106903
|
+
[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')
|
106904
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106905
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106906
|
+
--------------------------------------------------------------------
|
106907
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
106908
|
+
--------------------------------------------------------------------
|
106909
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
106910
|
+
[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" = ? [["owner_id", 1]]
|
106911
|
+
[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]]
|
106912
|
+
[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]]
|
106913
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106914
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106915
|
+
------------------------------------------------------------------------------------------------------
|
106916
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
106917
|
+
------------------------------------------------------------------------------------------------------
|
106918
|
+
[1m[36mSQL (0.3ms)[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
|
106919
|
+
[1m[35m (0.2ms)[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)')
|
106920
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106921
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106922
|
+
-----------------------------------------------------------
|
106923
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
106924
|
+
-----------------------------------------------------------
|
106925
|
+
[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" < '2017-10-25 17:07:34 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
106926
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-10-25 17:07:34 UTC')
|
106927
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
106928
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106929
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106930
|
+
-----------------------------------------------------------------------------------------
|
106931
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
106932
|
+
-----------------------------------------------------------------------------------------
|
106933
|
+
[1m[35m (0.2ms)[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
|
106934
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
106935
|
+
[1m[35m (0.1ms)[0m begin transaction
|
106936
|
+
---------------------------------------------------------------------------------------
|
106937
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
106938
|
+
---------------------------------------------------------------------------------------
|
106939
|
+
[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
|
106940
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106941
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106942
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
106943
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
106944
|
+
FROM sqlite_master
|
106945
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
106946
|
+
UNION ALL
|
106947
|
+
SELECT sql
|
106948
|
+
FROM sqlite_temp_master
|
106949
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
106950
|
+
[0m
|
106951
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
106952
|
+
FROM sqlite_master
|
106953
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
106954
|
+
UNION ALL
|
106955
|
+
SELECT sql
|
106956
|
+
FROM sqlite_temp_master
|
106957
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
106958
|
+
|
106959
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106960
|
+
FROM sqlite_master
|
106961
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
106962
|
+
UNION ALL
|
106963
|
+
SELECT sql
|
106964
|
+
FROM sqlite_temp_master
|
106965
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
106966
|
+
[0m
|
106967
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
106968
|
+
FROM sqlite_master
|
106969
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
106970
|
+
UNION ALL
|
106971
|
+
SELECT sql
|
106972
|
+
FROM sqlite_temp_master
|
106973
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
106974
|
+
|
106975
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106976
|
+
FROM sqlite_master
|
106977
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
106978
|
+
UNION ALL
|
106979
|
+
SELECT sql
|
106980
|
+
FROM sqlite_temp_master
|
106981
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
106982
|
+
[0m
|
106983
|
+
[1m[35m (1.1ms)[0m SELECT sql
|
106984
|
+
FROM sqlite_master
|
106985
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
106986
|
+
UNION ALL
|
106987
|
+
SELECT sql
|
106988
|
+
FROM sqlite_temp_master
|
106989
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
106990
|
+
|
106991
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
106992
|
+
FROM sqlite_master
|
106993
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
106994
|
+
UNION ALL
|
106995
|
+
SELECT sql
|
106996
|
+
FROM sqlite_temp_master
|
106997
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
106998
|
+
[0m
|
106999
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107000
|
+
[1m[35m (0.4ms)[0m begin transaction
|
107001
|
+
[1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
107002
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
107003
|
+
[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
|
107004
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
107005
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
107006
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
107007
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
107008
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
107009
|
+
[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
|
107010
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
107011
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
107012
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
107013
|
+
[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
|
107014
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
107015
|
+
[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
|
107016
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
107017
|
+
[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
|
107018
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
107019
|
+
[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
|
107020
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
107021
|
+
[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
|
107022
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
107023
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
107024
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
107025
|
+
[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
|
107026
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
107027
|
+
[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
|
107028
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
107029
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
107030
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
107031
|
+
[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
|
107032
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "has_many_fields"
|
107033
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
107034
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
107035
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
107036
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
107037
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
107038
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
107039
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
107040
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
107041
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
107042
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
107043
|
+
[1m[36mFixture Delete (3.0ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
107044
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
107045
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
107046
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
107047
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
107048
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
107049
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
107050
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
107051
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
107052
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
107053
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
107054
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "has_one_fields"
|
107055
|
+
[1m[36mFixture Insert (0.9ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
107056
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
107057
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
107058
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
107059
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
107060
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
107061
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
107062
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
107063
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
107064
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
107065
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
107066
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
107067
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
107068
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
107069
|
+
[1m[36mFixture Insert (3.5ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
107070
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
107071
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
107072
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
107073
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
107074
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
107075
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
107076
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
107077
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
107078
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
107079
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
107080
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
107081
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
107082
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
107083
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
107084
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
107085
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "owners"[0m
|
107086
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
107087
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
107088
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
107089
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
107090
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
107091
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
107092
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
107093
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
107094
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
107095
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "string_fields"[0m
|
107096
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
107097
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
107098
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
107099
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
107100
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
107101
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
107102
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
107103
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
107104
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
107105
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
107106
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
107107
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
107108
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
107109
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
107110
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
107111
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
107112
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
107113
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
107114
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
107115
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
107116
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
107117
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
107118
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
107119
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
107120
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
107121
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
107122
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
107123
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
107124
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
107125
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
107126
|
+
[1m[35mFixture Delete (1.8ms)[0m DELETE FROM "trees"
|
107127
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
107128
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
107129
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
107130
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
107131
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
107132
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-10-25 17:20:26.000000', '2017-10-25 17:20:26.000000')
|
107133
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-10-25 17:20:26.000000', '2017-10-25 17:20:26.000000')[0m
|
107134
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-10-25 17:20:26.000000', '2017-10-25 17:20:26.000000')
|
107135
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
107136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107137
|
+
------------------------------------------------------------------------------------------------------
|
107138
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
107139
|
+
------------------------------------------------------------------------------------------------------
|
107140
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
107141
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
107142
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
107143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107145
|
+
---------------------------------------------------------------------------------------------------
|
107146
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
107147
|
+
---------------------------------------------------------------------------------------------------
|
107148
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
107149
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
107150
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
|
107151
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
107152
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
107153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107154
|
+
---------------------------------------------------------------------------------------------------------
|
107155
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
107156
|
+
---------------------------------------------------------------------------------------------------------
|
107157
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
107158
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107159
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107160
|
+
------------------------------------------------------------------------------------------------------------
|
107161
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
107162
|
+
------------------------------------------------------------------------------------------------------------
|
107163
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
107164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
107165
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
107166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
107167
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
107168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107169
|
+
---------------------------------------------------------------------------
|
107170
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
107171
|
+
---------------------------------------------------------------------------
|
107172
|
+
[1m[36mOwner Load (0.3ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
107173
|
+
[1m[35mSQL (0.4ms)[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%') [["owner_id", 1]]
|
107174
|
+
[1m[36m (0.3ms)[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]]
|
107175
|
+
[1m[35mSQL (0.3ms)[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]]
|
107176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107178
|
+
-------------------------------------------------------------------------------------------
|
107179
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
107180
|
+
-------------------------------------------------------------------------------------------
|
107181
|
+
[1m[36mSQL (0.3ms)[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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0[0m
|
107182
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
107183
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107185
|
+
--------------------------------------------------------------------
|
107186
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
107187
|
+
--------------------------------------------------------------------
|
107188
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
107189
|
+
[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" = ? [["owner_id", 1]]
|
107190
|
+
[1m[36m (0.5ms)[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]]
|
107191
|
+
[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]]
|
107192
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107193
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107194
|
+
-----------------------------------------------------------------
|
107195
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
107196
|
+
-----------------------------------------------------------------
|
107197
|
+
[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.id DESC LIMIT 15 OFFSET 0[0m
|
107198
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
107199
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107200
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107201
|
+
-----------------------------------------------------------------
|
107202
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
107203
|
+
-----------------------------------------------------------------
|
107204
|
+
[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.id DESC LIMIT 10 OFFSET 10[0m
|
107205
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
107206
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107208
|
+
------------------------------------------------------------------------------------
|
107209
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
107210
|
+
------------------------------------------------------------------------------------
|
107211
|
+
[1m[36mSQL (0.3ms)[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
|
107212
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
107213
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107214
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107215
|
+
-----------------------------------------------------------------------
|
107216
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
107217
|
+
-----------------------------------------------------------------------
|
107218
|
+
[1m[36mSQL (0.3ms)[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
|
107219
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
107220
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107221
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107222
|
+
----------------------------------------------------------------
|
107223
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
107224
|
+
----------------------------------------------------------------
|
107225
|
+
[1m[36mSQL (0.3ms)[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
|
107226
|
+
[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')
|
107227
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107228
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107229
|
+
-----------------------------------------------------------
|
107230
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
107231
|
+
-----------------------------------------------------------
|
107232
|
+
[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" < '2017-10-25 17:19:26 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
107233
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-10-25 17:19:26 UTC')
|
107234
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
107235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107237
|
+
-------------------------------------------------------------------------
|
107238
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
107239
|
+
-------------------------------------------------------------------------
|
107240
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
107241
|
+
[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"."owner_id" = ? ORDER BY trees.id DESC[0m [["owner_id", 1]]
|
107242
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
107243
|
+
[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"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
107244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107246
|
+
----------------------------------------------------------------
|
107247
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
107248
|
+
----------------------------------------------------------------
|
107249
|
+
[1m[35mSQL (0.3ms)[0m SELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.field DESC LIMIT 10 OFFSET 0
|
107250
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
107251
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
107253
|
+
--------------------------------------------------------------------
|
107254
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
107255
|
+
--------------------------------------------------------------------
|
107256
|
+
[1m[35mSQL (0.5ms)[0m SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
|
107257
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "has_one_fields"[0m
|
107258
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107260
|
+
------------------------------------------------------------------------------------------------
|
107261
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
107262
|
+
------------------------------------------------------------------------------------------------
|
107263
|
+
[1m[35mSQL (0.3ms)[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 (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
107264
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
107265
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107267
|
+
------------------------------------------------------------------------------------------------------
|
107268
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
107269
|
+
------------------------------------------------------------------------------------------------------
|
107270
|
+
[1m[35mSQL (0.3ms)[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 (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
107271
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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)')[0m
|
107272
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107273
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
107274
|
+
---------------------------
|
107275
|
+
ForestLianaTest: test_truth
|
107276
|
+
---------------------------
|
107277
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
107278
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107279
|
+
-----------------------------------------------------------------------------------------
|
107280
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
107281
|
+
-----------------------------------------------------------------------------------------
|
107282
|
+
[1m[35m (0.4ms)[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
|
107283
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107285
|
+
---------------------------------------------------------------------------------------
|
107286
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
107287
|
+
---------------------------------------------------------------------------------------
|
107288
|
+
[1m[36m (0.9ms)[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
|
107289
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107290
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107291
|
+
-------------------------------------------------------------------------------------------------
|
107292
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
107293
|
+
-------------------------------------------------------------------------------------------------
|
107294
|
+
[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"."status" = '1')
|
107295
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107296
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107297
|
+
-----------------------------------------------------------------------------
|
107298
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
107299
|
+
-----------------------------------------------------------------------------
|
107300
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)[0m
|
107301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107303
|
+
----------------------------------------------------------------------------------------------------
|
107304
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
107305
|
+
----------------------------------------------------------------------------------------------------
|
107306
|
+
[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"."id" = '3')
|
107307
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
107309
|
+
----------------------------------------------------------------------------------------------------
|
107310
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
107311
|
+
----------------------------------------------------------------------------------------------------
|
107312
|
+
[1m[36m (0.5ms)[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
|
107313
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
107314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107315
|
+
------------------------------------------------------------------------------------
|
107316
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
107317
|
+
------------------------------------------------------------------------------------
|
107318
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107319
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107320
|
+
--------------------------------------------------------------------------
|
107321
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
107322
|
+
--------------------------------------------------------------------------
|
107323
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
107325
|
+
---------------------------------------------------------
|
107326
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
107327
|
+
---------------------------------------------------------
|
107328
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
107329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107330
|
+
--------------------------------------------------------------------------
|
107331
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
107332
|
+
--------------------------------------------------------------------------
|
107333
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
107334
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107335
|
+
-------------------------------------------------------------------------
|
107336
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
107337
|
+
-------------------------------------------------------------------------
|
107338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107340
|
+
---------------------------------------------------------------------
|
107341
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
107342
|
+
---------------------------------------------------------------------
|
107343
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
107344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107345
|
+
-------------------------------------------------------------------------
|
107346
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
107347
|
+
-------------------------------------------------------------------------
|
107348
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107350
|
+
-----------------------------------------------------------
|
107351
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
107352
|
+
-----------------------------------------------------------
|
107353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107355
|
+
--------------------------------------------------------
|
107356
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
107357
|
+
--------------------------------------------------------
|
107358
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
107359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107360
|
+
------------------------------------------------------------------------
|
107361
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
107362
|
+
------------------------------------------------------------------------
|
107363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107365
|
+
----------------------------------------------------------------------------------
|
107366
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
107367
|
+
----------------------------------------------------------------------------------
|
107368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107370
|
+
---------------------------------------------------------------------------
|
107371
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
107372
|
+
---------------------------------------------------------------------------
|
107373
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
107374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107375
|
+
-----------------------------------
|
107376
|
+
ForestLiana::RouteTest: test_Routes
|
107377
|
+
-----------------------------------
|
107378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107379
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107380
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
107381
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
107382
|
+
FROM sqlite_master
|
107383
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
107384
|
+
UNION ALL
|
107385
|
+
SELECT sql
|
107386
|
+
FROM sqlite_temp_master
|
107387
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
107388
|
+
[0m
|
107389
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
107390
|
+
FROM sqlite_master
|
107391
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
107392
|
+
UNION ALL
|
107393
|
+
SELECT sql
|
107394
|
+
FROM sqlite_temp_master
|
107395
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
107396
|
+
|
107397
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
107398
|
+
FROM sqlite_master
|
107399
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
107400
|
+
UNION ALL
|
107401
|
+
SELECT sql
|
107402
|
+
FROM sqlite_temp_master
|
107403
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
107404
|
+
[0m
|
107405
|
+
[1m[35m (0.5ms)[0m SELECT sql
|
107406
|
+
FROM sqlite_master
|
107407
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
107408
|
+
UNION ALL
|
107409
|
+
SELECT sql
|
107410
|
+
FROM sqlite_temp_master
|
107411
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
107412
|
+
|
107413
|
+
[1m[36m (0.7ms)[0m [1m SELECT sql
|
107414
|
+
FROM sqlite_master
|
107415
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
107416
|
+
UNION ALL
|
107417
|
+
SELECT sql
|
107418
|
+
FROM sqlite_temp_master
|
107419
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
107420
|
+
[0m
|
107421
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
107422
|
+
FROM sqlite_master
|
107423
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
107424
|
+
UNION ALL
|
107425
|
+
SELECT sql
|
107426
|
+
FROM sqlite_temp_master
|
107427
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
107428
|
+
|
107429
|
+
[1m[36m (1.8ms)[0m [1m SELECT sql
|
107430
|
+
FROM sqlite_master
|
107431
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
107432
|
+
UNION ALL
|
107433
|
+
SELECT sql
|
107434
|
+
FROM sqlite_temp_master
|
107435
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
107436
|
+
[0m
|
107437
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107438
|
+
[1m[35m (0.2ms)[0m begin transaction
|
107439
|
+
[1m[36mFixture Delete (2.0ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
107440
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
107441
|
+
[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
|
107442
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
107443
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
107444
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
107445
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
107446
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
107447
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
107448
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
107449
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
107450
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
107451
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
107452
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
107453
|
+
[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
|
107454
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
107455
|
+
[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
|
107456
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
107457
|
+
[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
|
107458
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
107459
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)[0m
|
107460
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
107461
|
+
[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
|
107462
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
107463
|
+
[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
|
107464
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
107465
|
+
[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
|
107466
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
107467
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
107468
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
107469
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
107470
|
+
[1m[35mFixture Delete (1.0ms)[0m DELETE FROM "has_many_fields"
|
107471
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
107472
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
107473
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
107474
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
107475
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
107476
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
107477
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
107478
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
107479
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
107480
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
107481
|
+
[1m[36mFixture Delete (2.0ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
107482
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
107483
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
107484
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
107485
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
107486
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
107487
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
107488
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
107489
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
107490
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
107491
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
107492
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "has_one_fields"
|
107493
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
107494
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
107495
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
107496
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
107497
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
107498
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
107499
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
107500
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
107501
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
107502
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
107503
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
107504
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
107505
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
107506
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
107507
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
107508
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
107509
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
107510
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
107511
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
107512
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
107513
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
107514
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
107515
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
107516
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
107517
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
107518
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
107519
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
107520
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
107521
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
107522
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
107523
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "owners"[0m
|
107524
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
107525
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
107526
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
107527
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
107528
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
107529
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
107530
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
107531
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
107532
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
107533
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "string_fields"[0m
|
107534
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
107535
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
107536
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
107537
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
107538
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
107539
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
107540
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
107541
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
107542
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
107543
|
+
[1m[36mFixture Insert (3.8ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
107544
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
107545
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
107546
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
107547
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
107548
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
107549
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
107550
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
107551
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
107552
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
107553
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
107554
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
107555
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
107556
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
107557
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
107558
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
107559
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
107560
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
107561
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
107562
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
107563
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
107564
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "trees"
|
107565
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
107566
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
107567
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
107568
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
107569
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
107570
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-10-25 17:21:19.000000', '2017-10-25 17:21:19.000000')
|
107571
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-10-25 17:21:19.000000', '2017-10-25 17:21:19.000000')[0m
|
107572
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-10-25 17:21:19.000000', '2017-10-25 17:21:19.000000')
|
107573
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
107574
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107575
|
+
----------------------------------------------------------------------------------------------------
|
107576
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
107577
|
+
----------------------------------------------------------------------------------------------------
|
107578
|
+
[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"."id" = '3')[0m
|
107579
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107580
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107581
|
+
-------------------------------------------------------------------------------------------------
|
107582
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
107583
|
+
-------------------------------------------------------------------------------------------------
|
107584
|
+
[1m[35m (0.4ms)[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"."status" = '1')
|
107585
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107586
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107587
|
+
-----------------------------------------------------------------------------
|
107588
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
107589
|
+
-----------------------------------------------------------------------------
|
107590
|
+
[1m[36m (0.5ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)[0m
|
107591
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107592
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107593
|
+
----------------------------------------------------------------------------------------------------
|
107594
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
107595
|
+
----------------------------------------------------------------------------------------------------
|
107596
|
+
[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)
|
107597
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107598
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107599
|
+
---------------------------
|
107600
|
+
ForestLianaTest: test_truth
|
107601
|
+
---------------------------
|
107602
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107604
|
+
---------------------------------------------------------------------------
|
107605
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
107606
|
+
---------------------------------------------------------------------------
|
107607
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107608
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107609
|
+
-----------------------------------------------------------
|
107610
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
107611
|
+
-----------------------------------------------------------
|
107612
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107613
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107614
|
+
--------------------------------------------------------
|
107615
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
107616
|
+
--------------------------------------------------------
|
107617
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107618
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107619
|
+
-------------------------------------------------------------------------
|
107620
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
107621
|
+
-------------------------------------------------------------------------
|
107622
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107623
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107624
|
+
------------------------------------------------------------------------------------
|
107625
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
107626
|
+
------------------------------------------------------------------------------------
|
107627
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107628
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107629
|
+
---------------------------------------------------------------------
|
107630
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
107631
|
+
---------------------------------------------------------------------
|
107632
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107633
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107634
|
+
--------------------------------------------------------------------------
|
107635
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
107636
|
+
--------------------------------------------------------------------------
|
107637
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107638
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107639
|
+
-------------------------------------------------------------------------
|
107640
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
107641
|
+
-------------------------------------------------------------------------
|
107642
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
107643
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107644
|
+
---------------------------------------------------------
|
107645
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
107646
|
+
---------------------------------------------------------
|
107647
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
107648
|
+
[1m[35m (0.2ms)[0m begin transaction
|
107649
|
+
------------------------------------------------------------------------
|
107650
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
107651
|
+
------------------------------------------------------------------------
|
107652
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107654
|
+
--------------------------------------------------------------------------
|
107655
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
107656
|
+
--------------------------------------------------------------------------
|
107657
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107658
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107659
|
+
----------------------------------------------------------------------------------
|
107660
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
107661
|
+
----------------------------------------------------------------------------------
|
107662
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107663
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107664
|
+
---------------------------------------------------------------------------------------------------------
|
107665
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
107666
|
+
---------------------------------------------------------------------------------------------------------
|
107667
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
107668
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107669
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107670
|
+
---------------------------------------------------------------------------------------------------
|
107671
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
107672
|
+
---------------------------------------------------------------------------------------------------
|
107673
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
107674
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
107675
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
|
107676
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
107677
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
107678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107679
|
+
------------------------------------------------------------------------------------------------------------
|
107680
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
107681
|
+
------------------------------------------------------------------------------------------------------------
|
107682
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
107683
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
107684
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
107685
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
107686
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
107687
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107688
|
+
------------------------------------------------------------------------------------------------------
|
107689
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
107690
|
+
------------------------------------------------------------------------------------------------------
|
107691
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
107692
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
107693
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
107694
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107695
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107696
|
+
------------------------------------------------------------------------------------------------------
|
107697
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
107698
|
+
------------------------------------------------------------------------------------------------------
|
107699
|
+
[1m[36mSQL (0.4ms)[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
|
107700
|
+
[1m[35m (0.3ms)[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)')
|
107701
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107703
|
+
--------------------------------------------------------------------
|
107704
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
107705
|
+
--------------------------------------------------------------------
|
107706
|
+
[1m[36mSQL (0.7ms)[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
|
107707
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "has_one_fields"
|
107708
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107709
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107710
|
+
--------------------------------------------------------------------
|
107711
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
107712
|
+
--------------------------------------------------------------------
|
107713
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
107714
|
+
[1m[35mSQL (0.3ms)[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" = ? [["owner_id", 1]]
|
107715
|
+
[1m[36m (0.3ms)[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]]
|
107716
|
+
[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]]
|
107717
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107718
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107719
|
+
----------------------------------------------------------------
|
107720
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
107721
|
+
----------------------------------------------------------------
|
107722
|
+
[1m[36mSQL (0.4ms)[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
|
107723
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
107724
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107726
|
+
-----------------------------------------------------------------
|
107727
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
107728
|
+
-----------------------------------------------------------------
|
107729
|
+
[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.id DESC LIMIT 10 OFFSET 10[0m
|
107730
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
107731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107732
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107733
|
+
-----------------------------------------------------------------
|
107734
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
107735
|
+
-----------------------------------------------------------------
|
107736
|
+
[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.id DESC LIMIT 15 OFFSET 0[0m
|
107737
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
107738
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107739
|
+
[1m[35m (0.0ms)[0m begin transaction
|
107740
|
+
-----------------------------------------------------------
|
107741
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
107742
|
+
-----------------------------------------------------------
|
107743
|
+
[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" < '2017-10-25 17:20:20 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
107744
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-10-25 17:20:20 UTC')
|
107745
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
107746
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107747
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107748
|
+
-----------------------------------------------------------------------
|
107749
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
107750
|
+
-----------------------------------------------------------------------
|
107751
|
+
[1m[35mSQL (0.3ms)[0m SELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0
|
107752
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "belongs_to_fields"[0m
|
107753
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107755
|
+
-------------------------------------------------------------------------------------------
|
107756
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
107757
|
+
-------------------------------------------------------------------------------------------
|
107758
|
+
[1m[35mSQL (0.2ms)[0m SELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0
|
107759
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
107760
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107761
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107762
|
+
------------------------------------------------------------------------------------------------
|
107763
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
107764
|
+
------------------------------------------------------------------------------------------------
|
107765
|
+
[1m[35mSQL (0.3ms)[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 (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
107766
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
107767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
107768
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107769
|
+
----------------------------------------------------------------
|
107770
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
107771
|
+
----------------------------------------------------------------
|
107772
|
+
[1m[35mSQL (0.3ms)[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"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
107773
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
107774
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107775
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107776
|
+
-------------------------------------------------------------------------
|
107777
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
107778
|
+
-------------------------------------------------------------------------
|
107779
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
107780
|
+
[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"."owner_id" = ? ORDER BY trees.id DESC[0m [["owner_id", 1]]
|
107781
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
107782
|
+
[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"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
107783
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107784
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107785
|
+
------------------------------------------------------------------------------------
|
107786
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
107787
|
+
------------------------------------------------------------------------------------
|
107788
|
+
[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 (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
|
107789
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')[0m
|
107790
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107792
|
+
---------------------------------------------------------------------------
|
107793
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
107794
|
+
---------------------------------------------------------------------------
|
107795
|
+
[1m[35mOwner Load (0.2ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
107796
|
+
[1m[36mSQL (0.3ms)[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"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%')[0m [["owner_id", 1]]
|
107797
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
107798
|
+
[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"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
107799
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107800
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107801
|
+
-----------------------------------------------------------------------------------------
|
107802
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
107803
|
+
-----------------------------------------------------------------------------------------
|
107804
|
+
[1m[35m (0.2ms)[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
|
107805
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
107806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107807
|
+
---------------------------------------------------------------------------------------
|
107808
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
107809
|
+
---------------------------------------------------------------------------------------
|
107810
|
+
[1m[36m (0.7ms)[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
|
107811
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107813
|
+
-----------------------------------
|
107814
|
+
ForestLiana::RouteTest: test_Routes
|
107815
|
+
-----------------------------------
|
107816
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
107817
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107818
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
107819
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
107820
|
+
FROM sqlite_master
|
107821
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
107822
|
+
UNION ALL
|
107823
|
+
SELECT sql
|
107824
|
+
FROM sqlite_temp_master
|
107825
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
107826
|
+
[0m
|
107827
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
107828
|
+
FROM sqlite_master
|
107829
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
107830
|
+
UNION ALL
|
107831
|
+
SELECT sql
|
107832
|
+
FROM sqlite_temp_master
|
107833
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
107834
|
+
|
107835
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
107836
|
+
FROM sqlite_master
|
107837
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
107838
|
+
UNION ALL
|
107839
|
+
SELECT sql
|
107840
|
+
FROM sqlite_temp_master
|
107841
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
107842
|
+
[0m
|
107843
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
107844
|
+
FROM sqlite_master
|
107845
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
107846
|
+
UNION ALL
|
107847
|
+
SELECT sql
|
107848
|
+
FROM sqlite_temp_master
|
107849
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
107850
|
+
|
107851
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
107852
|
+
FROM sqlite_master
|
107853
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
107854
|
+
UNION ALL
|
107855
|
+
SELECT sql
|
107856
|
+
FROM sqlite_temp_master
|
107857
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
107858
|
+
[0m
|
107859
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
107860
|
+
FROM sqlite_master
|
107861
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
107862
|
+
UNION ALL
|
107863
|
+
SELECT sql
|
107864
|
+
FROM sqlite_temp_master
|
107865
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
107866
|
+
|
107867
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
107868
|
+
FROM sqlite_master
|
107869
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
107870
|
+
UNION ALL
|
107871
|
+
SELECT sql
|
107872
|
+
FROM sqlite_temp_master
|
107873
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
107874
|
+
[0m
|
107875
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107877
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
107878
|
+
[1m[35mFixture Insert (2.5ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
107879
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)[0m
|
107880
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
107881
|
+
[1m[36mFixture Insert (1.7ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
107882
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
107883
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
107884
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
107885
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
107886
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
107887
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
107888
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
107889
|
+
[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
|
107890
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
107891
|
+
[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
|
107892
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
107893
|
+
[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
|
107894
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
107895
|
+
[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
|
107896
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
107897
|
+
[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
|
107898
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
107899
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
107900
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
107901
|
+
[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
|
107902
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
107903
|
+
[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
|
107904
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
107905
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
107906
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
107907
|
+
[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
|
107908
|
+
[1m[35mFixture Delete (6.0ms)[0m DELETE FROM "has_many_fields"
|
107909
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
107910
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
107911
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
107912
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
107913
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
107914
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
107915
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
107916
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
107917
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
107918
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
107919
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
107920
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
107921
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
107922
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
107923
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
107924
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
107925
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
107926
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
107927
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
107928
|
+
[1m[35mFixture Insert (5.7ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
107929
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
107930
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "has_one_fields"
|
107931
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)[0m
|
107932
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
|
107933
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)[0m
|
107934
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
|
107935
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)[0m
|
107936
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
|
107937
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)[0m
|
107938
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
|
107939
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)[0m
|
107940
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
|
107941
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)[0m
|
107942
|
+
[1m[35mFixture Insert (1.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
|
107943
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)[0m
|
107944
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
|
107945
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)[0m
|
107946
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
|
107947
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)[0m
|
107948
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
|
107949
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)[0m
|
107950
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
|
107951
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)[0m
|
107952
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
|
107953
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)[0m
|
107954
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
|
107955
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)[0m
|
107956
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
|
107957
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)[0m
|
107958
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
|
107959
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)[0m
|
107960
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
|
107961
|
+
[1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "owners"[0m
|
107962
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2016-05-30 09:00:00.000000', '2017-06-27 20:00:00.000000')
|
107963
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2017-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
107964
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2015-05-02 09:00:00.000000', '2016-06-28 08:00:00.000000')
|
107965
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
107966
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
107967
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
107968
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
107969
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
107970
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
107971
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "string_fields"[0m
|
107972
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
107973
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
107974
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
107975
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
107976
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
107977
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
107978
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
107979
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
107980
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
107981
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
107982
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
107983
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
107984
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
107985
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
107986
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
107987
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
107988
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
107989
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
107990
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
107991
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
107992
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
107993
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
107994
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
107995
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
107996
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
107997
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
107998
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
107999
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
108000
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
108001
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
108002
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "trees"
|
108003
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2010-02-11 11:00:00.000000', '2010-02-11 11:00:00.000000')[0m
|
108004
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2010-02-15 21:00:00.000000', '2010-02-15 21:00:00.000000')
|
108005
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2012-04-11 12:00:00.000000', '2012-04-11 12:00:00.000000')[0m
|
108006
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')
|
108007
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2014-06-18 09:00:00.000000', '2014-06-18 09:00:00.000000')[0m
|
108008
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-10-25 17:21:52.000000', '2017-10-25 17:21:52.000000')
|
108009
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-10-25 17:21:52.000000', '2017-10-25 17:21:52.000000')[0m
|
108010
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-10-25 17:21:52.000000', '2017-10-25 17:21:52.000000')
|
108011
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
108012
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108013
|
+
--------------------------------------------------------------------
|
108014
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
108015
|
+
--------------------------------------------------------------------
|
108016
|
+
[1m[36mOwner Load (0.3ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
108017
|
+
[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" = ? [["owner_id", 1]]
|
108018
|
+
[1m[36m (0.3ms)[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]]
|
108019
|
+
[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]]
|
108020
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108021
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108022
|
+
-----------------------------------------------------------------
|
108023
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
108024
|
+
-----------------------------------------------------------------
|
108025
|
+
[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.id DESC LIMIT 10 OFFSET 10[0m
|
108026
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
108027
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108029
|
+
-----------------------------------------------------------------
|
108030
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
108031
|
+
-----------------------------------------------------------------
|
108032
|
+
[1m[36mSQL (0.3ms)[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
|
108033
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
108034
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108035
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108036
|
+
------------------------------------------------------------------------------------------------
|
108037
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
108038
|
+
------------------------------------------------------------------------------------------------
|
108039
|
+
[1m[36mSQL (0.3ms)[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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
108040
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
108041
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108042
|
+
[1m[35m (0.0ms)[0m begin transaction
|
108043
|
+
-------------------------------------------------------------------------------------------
|
108044
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
108045
|
+
-------------------------------------------------------------------------------------------
|
108046
|
+
[1m[36mSQL (0.4ms)[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 '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0[0m
|
108047
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')
|
108048
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
108049
|
+
[1m[35m (0.2ms)[0m begin transaction
|
108050
|
+
----------------------------------------------------------------
|
108051
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
108052
|
+
----------------------------------------------------------------
|
108053
|
+
[1m[36mSQL (0.5ms)[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
|
108054
|
+
[1m[35m (0.3ms)[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')
|
108055
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108056
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108057
|
+
---------------------------------------------------------------------------
|
108058
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
108059
|
+
---------------------------------------------------------------------------
|
108060
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
108061
|
+
[1m[35mSQL (0.3ms)[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%') [["owner_id", 1]]
|
108062
|
+
[1m[36m (0.3ms)[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]]
|
108063
|
+
[1m[35mSQL (0.7ms)[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]]
|
108064
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108065
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108066
|
+
------------------------------------------------------------------------------------------------------
|
108067
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
108068
|
+
------------------------------------------------------------------------------------------------------
|
108069
|
+
[1m[36mSQL (0.3ms)[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
|
108070
|
+
[1m[35m (0.2ms)[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)')
|
108071
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108072
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108073
|
+
-----------------------------------------------------------------------
|
108074
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
108075
|
+
-----------------------------------------------------------------------
|
108076
|
+
[1m[36mSQL (0.4ms)[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
|
108077
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
108078
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108079
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108080
|
+
----------------------------------------------------------------
|
108081
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
108082
|
+
----------------------------------------------------------------
|
108083
|
+
[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
|
108084
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "string_fields"
|
108085
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
108086
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108087
|
+
--------------------------------------------------------------------
|
108088
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
108089
|
+
--------------------------------------------------------------------
|
108090
|
+
[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
|
108091
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "has_one_fields"
|
108092
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108093
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108094
|
+
------------------------------------------------------------------------------------
|
108095
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
108096
|
+
------------------------------------------------------------------------------------
|
108097
|
+
[1m[36mSQL (0.5ms)[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
|
108098
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
108099
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
108100
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108101
|
+
-------------------------------------------------------------------------
|
108102
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
108103
|
+
-------------------------------------------------------------------------
|
108104
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
108105
|
+
[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 [["owner_id", 1]]
|
108106
|
+
[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]]
|
108107
|
+
[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]]
|
108108
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
108109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108110
|
+
-----------------------------------------------------------
|
108111
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
108112
|
+
-----------------------------------------------------------
|
108113
|
+
[1m[36mSQL (0.3ms)[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" < '2017-10-25 17:20:53 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
108114
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-10-25 17:20:53 UTC')
|
108115
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
108116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108118
|
+
-----------------------------------
|
108119
|
+
ForestLiana::RouteTest: test_Routes
|
108120
|
+
-----------------------------------
|
108121
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
108122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108123
|
+
---------------------------
|
108124
|
+
ForestLianaTest: test_truth
|
108125
|
+
---------------------------
|
108126
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
108127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108128
|
+
---------------------------------------------------------------------------
|
108129
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
108130
|
+
---------------------------------------------------------------------------
|
108131
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108132
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
108133
|
+
----------------------------------------------------------------------------------
|
108134
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
108135
|
+
----------------------------------------------------------------------------------
|
108136
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108137
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108138
|
+
--------------------------------------------------------
|
108139
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
108140
|
+
--------------------------------------------------------
|
108141
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108143
|
+
-----------------------------------------------------------
|
108144
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
108145
|
+
-----------------------------------------------------------
|
108146
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108147
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108148
|
+
-------------------------------------------------------------------------
|
108149
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
108150
|
+
-------------------------------------------------------------------------
|
108151
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108152
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108153
|
+
--------------------------------------------------------------------------
|
108154
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
108155
|
+
--------------------------------------------------------------------------
|
108156
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
108158
|
+
------------------------------------------------------------------------
|
108159
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
108160
|
+
------------------------------------------------------------------------
|
108161
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108162
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108163
|
+
---------------------------------------------------------
|
108164
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
108165
|
+
---------------------------------------------------------
|
108166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108167
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108168
|
+
---------------------------------------------------------------------
|
108169
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
108170
|
+
---------------------------------------------------------------------
|
108171
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108172
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108173
|
+
------------------------------------------------------------------------------------
|
108174
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
108175
|
+
------------------------------------------------------------------------------------
|
108176
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108178
|
+
-------------------------------------------------------------------------
|
108179
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
108180
|
+
-------------------------------------------------------------------------
|
108181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
108182
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
108183
|
+
--------------------------------------------------------------------------
|
108184
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
108185
|
+
--------------------------------------------------------------------------
|
108186
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108187
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
108188
|
+
-----------------------------------------------------------------------------------------
|
108189
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
108190
|
+
-----------------------------------------------------------------------------------------
|
108191
|
+
[1m[35m (0.9ms)[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
|
108192
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108193
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108194
|
+
---------------------------------------------------------------------------------------
|
108195
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
108196
|
+
---------------------------------------------------------------------------------------
|
108197
|
+
[1m[36m (1.1ms)[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
|
108198
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
108199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108200
|
+
------------------------------------------------------------------------------------------------------
|
108201
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
108202
|
+
------------------------------------------------------------------------------------------------------
|
108203
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
108204
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
108205
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
108206
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
108207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108208
|
+
---------------------------------------------------------------------------------------------------
|
108209
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
108210
|
+
---------------------------------------------------------------------------------------------------
|
108211
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
108212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
108213
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
108214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
108215
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
108216
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108217
|
+
------------------------------------------------------------------------------------------------------------
|
108218
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
108219
|
+
------------------------------------------------------------------------------------------------------------
|
108220
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
108221
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
108222
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
108223
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
108224
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
108225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108226
|
+
---------------------------------------------------------------------------------------------------------
|
108227
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
108228
|
+
---------------------------------------------------------------------------------------------------------
|
108229
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
108230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108232
|
+
----------------------------------------------------------------------------------------------------
|
108233
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
108234
|
+
----------------------------------------------------------------------------------------------------
|
108235
|
+
[1m[35m (0.4ms)[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)
|
108236
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
108237
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108238
|
+
-------------------------------------------------------------------------------------------------
|
108239
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
108240
|
+
-------------------------------------------------------------------------------------------------
|
108241
|
+
[1m[36m (0.4ms)[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
|
108242
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
108243
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
108244
|
+
----------------------------------------------------------------------------------------------------
|
108245
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
108246
|
+
----------------------------------------------------------------------------------------------------
|
108247
|
+
[1m[35m (0.6ms)[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')
|
108248
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
108249
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108250
|
+
-----------------------------------------------------------------------------
|
108251
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
108252
|
+
-----------------------------------------------------------------------------
|
108253
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)[0m
|
108254
|
+
[1m[35m (0.1ms)[0m rollback transaction
|