forest_liana 1.6.17 → 1.7.0
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 +71 -14
- data/app/controllers/forest_liana/associations_controller.rb +9 -4
- data/app/controllers/forest_liana/resources_controller.rb +9 -4
- data/app/services/forest_liana/has_many_getter.rb +4 -0
- data/app/services/forest_liana/resources_getter.rb +4 -0
- data/app/services/forest_liana/search_query_builder.rb +12 -10
- data/lib/forest_liana/collection.rb +4 -4
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1263 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9c4175130715d2b94ce035c8c1444c11a8fc16d
|
4
|
+
data.tar.gz: 42c1c042c4ba295b62315922d09e7e7bd8aa17c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88aaba58eab164c9d661f5e6c5c9631b79a2b33655aa546d3b1a3a674fb86bfa1f86b741ef67641832e47408dd76de611d2ad2aac721716d839f9971b2923c48
|
7
|
+
data.tar.gz: 573f9b64e52bf2497524c2c7de6a306d9ba4a050b3213103c333fad8703600d7013bbb4eff500d273ab704083ee2c67917f8cba2982ecafbd6fc2e658f582882
|
@@ -33,16 +33,16 @@ module ForestLiana
|
|
33
33
|
@jwt_decoded_token
|
34
34
|
end
|
35
35
|
|
36
|
-
def serialize_model(
|
36
|
+
def serialize_model(record, options = {})
|
37
37
|
options[:is_collection] = false
|
38
|
-
json = JSONAPI::Serializer.serialize(
|
38
|
+
json = JSONAPI::Serializer.serialize(record, options)
|
39
39
|
|
40
40
|
force_utf8_encoding(json)
|
41
41
|
end
|
42
42
|
|
43
|
-
def serialize_models(
|
43
|
+
def serialize_models(records, options = {})
|
44
44
|
options[:is_collection] = true
|
45
|
-
json = JSONAPI::Serializer.serialize(
|
45
|
+
json = JSONAPI::Serializer.serialize(records, options)
|
46
46
|
|
47
47
|
if options[:count]
|
48
48
|
json[:meta] = {} unless json[:meta]
|
@@ -58,17 +58,23 @@ module ForestLiana
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def authenticate_user_from_jwt
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
61
|
+
begin
|
62
|
+
if request.headers['Authorization'] || cookies['liana_auth:session']
|
63
|
+
if request.headers['Authorization']
|
64
|
+
token = request.headers['Authorization'].split.second
|
65
|
+
else
|
66
|
+
token = eval(cookies["liana_auth:session"])[:token]
|
67
|
+
end
|
68
|
+
|
69
|
+
@jwt_decoded_token = JWT.decode(token, ForestLiana.auth_secret, true,
|
70
|
+
{ algorithm: 'HS256', leeway: 30 }).try(:first)
|
71
|
+
else
|
72
|
+
head :unauthorized
|
70
73
|
end
|
71
|
-
|
74
|
+
rescue JWT::ExpiredSignature, JWT::VerificationError
|
75
|
+
render json: { error: 'expired_token' }, status: :unauthorized,
|
76
|
+
serializer: nil
|
77
|
+
rescue
|
72
78
|
head :unauthorized
|
73
79
|
end
|
74
80
|
end
|
@@ -108,5 +114,56 @@ module ForestLiana
|
|
108
114
|
end
|
109
115
|
end
|
110
116
|
|
117
|
+
def render_csv getter, table_name
|
118
|
+
set_headers_file
|
119
|
+
set_headers_streaming
|
120
|
+
|
121
|
+
response.status = 200
|
122
|
+
csv_header = params[:header].split(',')
|
123
|
+
field_names_requested = params[:fields][table_name]
|
124
|
+
.split(',').map { |name| name.to_s }
|
125
|
+
|
126
|
+
self.response_body = Enumerator.new do |content|
|
127
|
+
content << CSV::Row.new(field_names_requested, csv_header, true).to_s
|
128
|
+
getter.query_for_batch.find_in_batches() do |records|
|
129
|
+
records.each do |record|
|
130
|
+
json = serialize_model(record, {
|
131
|
+
include: getter.includes.map(&:to_s)
|
132
|
+
})
|
133
|
+
record_attributes = json['data']['attributes']
|
134
|
+
record_relationships = json['data']['relationships']
|
135
|
+
included = json['included']
|
136
|
+
|
137
|
+
values = field_names_requested.map do |field_name|
|
138
|
+
if record_attributes[field_name]
|
139
|
+
record_attributes[field_name]
|
140
|
+
elsif record_relationships[field_name]
|
141
|
+
relationship_id = record_relationships[field_name]['data']['id']
|
142
|
+
relationship_type = record_relationships[field_name]['data']['type']
|
143
|
+
relationship_object = included.select do |record|
|
144
|
+
record['id'] == relationship_id && record['type'] == relationship_type
|
145
|
+
end
|
146
|
+
relationship_object.first['attributes'][params[:fields][field_name]]
|
147
|
+
end
|
148
|
+
end
|
149
|
+
content << CSV::Row.new(field_names_requested, values).to_s
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
def set_headers_file
|
156
|
+
csv_filename = "#{params[:filename]}.csv"
|
157
|
+
headers["Content-Type"] = "text/csv; charset=utf-8"
|
158
|
+
headers["Content-disposition"] = %{attachment; filename="#{csv_filename}"}
|
159
|
+
headers['Last-Modified'] = Time.now.ctime.to_s
|
160
|
+
end
|
161
|
+
|
162
|
+
def set_headers_streaming
|
163
|
+
# NOTICE: From nginx doc: Setting this to "no" will allow unbuffered
|
164
|
+
# responses suitable for Comet and HTTP streaming applications
|
165
|
+
headers['X-Accel-Buffering'] = 'no'
|
166
|
+
headers["Cache-Control"] = "no-cache"
|
167
|
+
end
|
111
168
|
end
|
112
169
|
end
|
@@ -12,10 +12,10 @@ module ForestLiana
|
|
12
12
|
getter = HasManyGetter.new(@resource, @association, params)
|
13
13
|
getter.perform
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
respond_to do |format|
|
16
|
+
format.json { render_jsonapi(getter) }
|
17
|
+
format.csv { render_csv(getter, @association.table_name) }
|
18
|
+
end
|
19
19
|
end
|
20
20
|
|
21
21
|
def update
|
@@ -70,5 +70,10 @@ module ForestLiana
|
|
70
70
|
def resource_params
|
71
71
|
ResourceDeserializer.new(@resource, params[:resource], true).perform
|
72
72
|
end
|
73
|
+
|
74
|
+
def render_jsonapi getter
|
75
|
+
render serializer: nil, json: serialize_models(getter.records,
|
76
|
+
include: getter.includes, count: getter.count, params: params)
|
77
|
+
end
|
73
78
|
end
|
74
79
|
end
|
@@ -17,10 +17,10 @@ module ForestLiana
|
|
17
17
|
getter = ForestLiana::ResourcesGetter.new(@resource, params)
|
18
18
|
getter.perform
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
respond_to do |format|
|
21
|
+
format.json { render_jsonapi(getter) }
|
22
|
+
format.csv { render_csv(getter, @resource.table_name) }
|
23
|
+
end
|
24
24
|
end
|
25
25
|
|
26
26
|
def show
|
@@ -93,5 +93,10 @@ module ForestLiana
|
|
93
93
|
def record_not_found
|
94
94
|
head :not_found
|
95
95
|
end
|
96
|
+
|
97
|
+
def render_jsonapi getter
|
98
|
+
render serializer: nil, json: serialize_models(getter.records,
|
99
|
+
include: includes(getter), count: getter.count, params: params)
|
100
|
+
end
|
96
101
|
end
|
97
102
|
end
|
@@ -79,16 +79,18 @@ module ForestLiana
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
(column.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
"
|
82
|
+
if (@params['searchExtended'].to_i == 1)
|
83
|
+
SchemaUtils.one_associations(@resource).map(&:name).each do |association|
|
84
|
+
if @includes.include? association.to_sym
|
85
|
+
resource = @resource.reflect_on_association(association.to_sym)
|
86
|
+
resource.klass.columns.each do |column|
|
87
|
+
if !(column.respond_to?(:array) && column.array) &&
|
88
|
+
(column.type == :string || column.type == :text)
|
89
|
+
column_name = format_column_name(resource.table_name,
|
90
|
+
column.name)
|
91
|
+
conditions << "LOWER(#{column_name}) LIKE " +
|
92
|
+
"'%#{@params[:search].downcase}%'"
|
93
|
+
end
|
92
94
|
end
|
93
95
|
end
|
94
96
|
end
|
@@ -39,8 +39,8 @@ module ForestLiana::Collection
|
|
39
39
|
:'is-virtual' => true
|
40
40
|
})
|
41
41
|
|
42
|
-
if serializer_name &&
|
43
|
-
|
42
|
+
if serializer_name &&
|
43
|
+
ForestLiana::UserSpace.const_defined?(serializer_name)
|
44
44
|
ForestLiana::UserSpace.const_get(serializer_name).class_eval do
|
45
45
|
attribute(name, &block)
|
46
46
|
end
|
@@ -54,8 +54,8 @@ module ForestLiana::Collection
|
|
54
54
|
type: ['String']
|
55
55
|
})
|
56
56
|
|
57
|
-
if serializer_name &&
|
58
|
-
|
57
|
+
if serializer_name &&
|
58
|
+
ForestLiana::UserSpace.const_defined?(serializer_name)
|
59
59
|
ForestLiana::UserSpace.const_get(serializer_name).class_eval do
|
60
60
|
has_many(name, name: name)
|
61
61
|
end
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -70134,3 +70134,1266 @@ ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_fi
|
|
70134
70134
|
[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.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
|
70135
70135
|
[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
|
70136
70136
|
[1m[35m (0.1ms)[0m rollback transaction
|
70137
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70138
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
70139
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
70140
|
+
FROM sqlite_master
|
70141
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
70142
|
+
UNION ALL
|
70143
|
+
SELECT sql
|
70144
|
+
FROM sqlite_temp_master
|
70145
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
70146
|
+
[0m
|
70147
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
70148
|
+
FROM sqlite_master
|
70149
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
70150
|
+
UNION ALL
|
70151
|
+
SELECT sql
|
70152
|
+
FROM sqlite_temp_master
|
70153
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
70154
|
+
|
70155
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
70156
|
+
FROM sqlite_master
|
70157
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
70158
|
+
UNION ALL
|
70159
|
+
SELECT sql
|
70160
|
+
FROM sqlite_temp_master
|
70161
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
70162
|
+
[0m
|
70163
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
70164
|
+
FROM sqlite_master
|
70165
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
70166
|
+
UNION ALL
|
70167
|
+
SELECT sql
|
70168
|
+
FROM sqlite_temp_master
|
70169
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
70170
|
+
|
70171
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
70172
|
+
FROM sqlite_master
|
70173
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
70174
|
+
UNION ALL
|
70175
|
+
SELECT sql
|
70176
|
+
FROM sqlite_temp_master
|
70177
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
70178
|
+
[0m
|
70179
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
70180
|
+
FROM sqlite_master
|
70181
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
70182
|
+
UNION ALL
|
70183
|
+
SELECT sql
|
70184
|
+
FROM sqlite_temp_master
|
70185
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
70186
|
+
|
70187
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
70188
|
+
FROM sqlite_master
|
70189
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
70190
|
+
UNION ALL
|
70191
|
+
SELECT sql
|
70192
|
+
FROM sqlite_temp_master
|
70193
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
70194
|
+
[0m
|
70195
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70196
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70197
|
+
[1m[36mFixture Delete (1.3ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
70198
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
70199
|
+
[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
|
70200
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
70201
|
+
[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
|
70202
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
70203
|
+
[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
|
70204
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
70205
|
+
[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
|
70206
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
70207
|
+
[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
|
70208
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
70209
|
+
[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
|
70210
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
70211
|
+
[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
|
70212
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
70213
|
+
[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
|
70214
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
70215
|
+
[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
|
70216
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
70217
|
+
[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
|
70218
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
70219
|
+
[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
|
70220
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
70221
|
+
[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
|
70222
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
70223
|
+
[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
|
70224
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
70225
|
+
[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
|
70226
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
70227
|
+
[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
|
70228
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "has_many_fields"
|
70229
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
70230
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
70231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
70232
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
70233
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
70234
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
70235
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
70236
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
70237
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
70238
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
70239
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
70240
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
70241
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
70242
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
70243
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
70244
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
70245
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
70246
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
70247
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
70248
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
70249
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
70250
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "has_one_fields"
|
70251
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (1)[0m
|
70252
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (2)
|
70253
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (3)[0m
|
70254
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (4)
|
70255
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (5)[0m
|
70256
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (6)
|
70257
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (7)[0m
|
70258
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (8)
|
70259
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (9)[0m
|
70260
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (10)
|
70261
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (11)[0m
|
70262
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (12)
|
70263
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (13)[0m
|
70264
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (14)
|
70265
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (15)[0m
|
70266
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (16)
|
70267
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (17)[0m
|
70268
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (18)
|
70269
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (19)[0m
|
70270
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (20)
|
70271
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (21)[0m
|
70272
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (22)
|
70273
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (23)[0m
|
70274
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (24)
|
70275
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (25)[0m
|
70276
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (26)
|
70277
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (27)[0m
|
70278
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (28)
|
70279
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (29)[0m
|
70280
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (30)
|
70281
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "owners"[0m
|
70282
|
+
[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')
|
70283
|
+
[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
|
70284
|
+
[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')
|
70285
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
70286
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
70287
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
70288
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
70289
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
70290
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
70291
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "string_fields"[0m
|
70292
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
70293
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
70294
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
70295
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
70296
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
70297
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
70298
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
70299
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
70300
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
70301
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
70302
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
70303
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
70304
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
70305
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
70306
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
70307
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
70308
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
70309
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
70310
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
70311
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
70312
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
70313
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
70314
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
70315
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
70316
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
70317
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
70318
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
70319
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
70320
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
70321
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
70322
|
+
[1m[35mFixture Delete (1.7ms)[0m DELETE FROM "trees"
|
70323
|
+
[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
|
70324
|
+
[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')
|
70325
|
+
[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
|
70326
|
+
[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')
|
70327
|
+
[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
|
70328
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-08-09 21:35:09.000000', '2017-08-09 21:35:09.000000')
|
70329
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-08-09 21:35:09.000000', '2017-08-09 21:35:09.000000')[0m
|
70330
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-08-09 21:35:09.000000', '2017-08-09 21:35:09.000000')
|
70331
|
+
[1m[36m (7.3ms)[0m [1mcommit transaction[0m
|
70332
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70333
|
+
------------------------------------------------------------------------------------------------------
|
70334
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
70335
|
+
------------------------------------------------------------------------------------------------------
|
70336
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
70337
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
70338
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
70339
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70340
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70341
|
+
---------------------------------------------------------------------------------------------------------
|
70342
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
70343
|
+
---------------------------------------------------------------------------------------------------------
|
70344
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
70345
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70347
|
+
---------------------------------------------------------------------------------------------------
|
70348
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
70349
|
+
---------------------------------------------------------------------------------------------------
|
70350
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
70351
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
70352
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
70353
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
70354
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
70355
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70356
|
+
------------------------------------------------------------------------------------------------------------
|
70357
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
70358
|
+
------------------------------------------------------------------------------------------------------------
|
70359
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
70360
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
70361
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
70362
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
70363
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
70364
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70365
|
+
-----------------------------------------------------------------------------------------
|
70366
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
70367
|
+
-----------------------------------------------------------------------------------------
|
70368
|
+
[1m[36m (0.4ms)[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
|
70369
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
70370
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70371
|
+
---------------------------------------------------------------------------------------
|
70372
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
70373
|
+
---------------------------------------------------------------------------------------
|
70374
|
+
[1m[35m (0.6ms)[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
|
70375
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70377
|
+
-----------------------------------------------------------------
|
70378
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
70379
|
+
-----------------------------------------------------------------
|
70380
|
+
[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 10 OFFSET 10[0m
|
70381
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
70382
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70383
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70384
|
+
-------------------------------------------------------------------------------------------
|
70385
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
70386
|
+
-------------------------------------------------------------------------------------------
|
70387
|
+
[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
|
70388
|
+
[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')
|
70389
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70390
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70391
|
+
----------------------------------------------------------------
|
70392
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
70393
|
+
----------------------------------------------------------------
|
70394
|
+
[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
|
70395
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
70396
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70398
|
+
---------------------------------------------------------------------------
|
70399
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
70400
|
+
---------------------------------------------------------------------------
|
70401
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
70402
|
+
[1m[35mSQL (8.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%' OR LOWER("owners"."name") LIKE '%fir%') [["owner_id", 1]]
|
70403
|
+
[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%' OR LOWER("owners"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count[0m [["owner_id", 1]]
|
70404
|
+
[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%' OR LOWER("owners"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
|
70405
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
70406
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70407
|
+
-----------------------------------------------------------------------
|
70408
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
70409
|
+
-----------------------------------------------------------------------
|
70410
|
+
[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_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
|
70411
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
70412
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
70413
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70414
|
+
------------------------------------------------------------------------------------------------------
|
70415
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
70416
|
+
------------------------------------------------------------------------------------------------------
|
70417
|
+
[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
|
70418
|
+
[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)')
|
70419
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70420
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70421
|
+
-----------------------------------------------------------------
|
70422
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
70423
|
+
-----------------------------------------------------------------
|
70424
|
+
[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
|
70425
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "string_fields"
|
70426
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70428
|
+
----------------------------------------------------------------
|
70429
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
70430
|
+
----------------------------------------------------------------
|
70431
|
+
[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
|
70432
|
+
[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')
|
70433
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70434
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70435
|
+
--------------------------------------------------------------------
|
70436
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
70437
|
+
--------------------------------------------------------------------
|
70438
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
70439
|
+
[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]]
|
70440
|
+
[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]]
|
70441
|
+
[1m[35mSQL (0.1ms)[0m SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
|
70442
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
70444
|
+
------------------------------------------------------------------------------------
|
70445
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
70446
|
+
------------------------------------------------------------------------------------
|
70447
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0[0m
|
70448
|
+
[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')
|
70449
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70450
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70451
|
+
------------------------------------------------------------------------------------------------
|
70452
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
70453
|
+
------------------------------------------------------------------------------------------------
|
70454
|
+
[1m[36mSQL (1.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
|
70455
|
+
[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')
|
70456
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70457
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70458
|
+
-----------------------------------------------------------
|
70459
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
70460
|
+
-----------------------------------------------------------
|
70461
|
+
[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-08-09 21:34:10 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
70462
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-08-09 21:34:10 UTC')
|
70463
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
70464
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70465
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70466
|
+
--------------------------------------------------------------------
|
70467
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
70468
|
+
--------------------------------------------------------------------
|
70469
|
+
[1m[35mSQL (0.7ms)[0m SELECT "has_one_fields"."id" AS t0_r0, "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
|
70470
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "has_one_fields"[0m
|
70471
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70472
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70473
|
+
-------------------------------------------------------------------------
|
70474
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
70475
|
+
-------------------------------------------------------------------------
|
70476
|
+
[1m[35mOwner Load (0.2ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
70477
|
+
[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]]
|
70478
|
+
[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]]
|
70479
|
+
[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]]
|
70480
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
70481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70482
|
+
---------------------------------------------------------------------------
|
70483
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
70484
|
+
---------------------------------------------------------------------------
|
70485
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70486
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70487
|
+
-----------------------------------------------------------
|
70488
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
70489
|
+
-----------------------------------------------------------
|
70490
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70492
|
+
-------------------------------------------------------------------------
|
70493
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
70494
|
+
-------------------------------------------------------------------------
|
70495
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
70497
|
+
------------------------------------------------------------------------
|
70498
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
70499
|
+
------------------------------------------------------------------------
|
70500
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70501
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70502
|
+
-------------------------------------------------------------------------
|
70503
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
70504
|
+
-------------------------------------------------------------------------
|
70505
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
70506
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70507
|
+
---------------------------------------------------------
|
70508
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
70509
|
+
---------------------------------------------------------
|
70510
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70511
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70512
|
+
--------------------------------------------------------
|
70513
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
70514
|
+
--------------------------------------------------------
|
70515
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70516
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70517
|
+
----------------------------------------------------------------------------------
|
70518
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
70519
|
+
----------------------------------------------------------------------------------
|
70520
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70521
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70522
|
+
------------------------------------------------------------------------------------
|
70523
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
70524
|
+
------------------------------------------------------------------------------------
|
70525
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70526
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70527
|
+
--------------------------------------------------------------------------
|
70528
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
70529
|
+
--------------------------------------------------------------------------
|
70530
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70531
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70532
|
+
---------------------------------------------------------------------
|
70533
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
70534
|
+
---------------------------------------------------------------------
|
70535
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70537
|
+
--------------------------------------------------------------------------
|
70538
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
70539
|
+
--------------------------------------------------------------------------
|
70540
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70541
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70542
|
+
--------------------------------------------------------------------------------------------
|
70543
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_field
|
70544
|
+
--------------------------------------------------------------------------------------------
|
70545
|
+
[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"."id" = '3')
|
70546
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70547
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70548
|
+
-----------------------------------------------------------------------------
|
70549
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
70550
|
+
-----------------------------------------------------------------------------
|
70551
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)[0m
|
70552
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70553
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70554
|
+
---------------------------
|
70555
|
+
ForestLianaTest: test_truth
|
70556
|
+
---------------------------
|
70557
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70558
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70559
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
70560
|
+
[1m[36m (1.1ms)[0m [1m SELECT sql
|
70561
|
+
FROM sqlite_master
|
70562
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
70563
|
+
UNION ALL
|
70564
|
+
SELECT sql
|
70565
|
+
FROM sqlite_temp_master
|
70566
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
70567
|
+
[0m
|
70568
|
+
[1m[35m (0.3ms)[0m SELECT sql
|
70569
|
+
FROM sqlite_master
|
70570
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
70571
|
+
UNION ALL
|
70572
|
+
SELECT sql
|
70573
|
+
FROM sqlite_temp_master
|
70574
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
70575
|
+
|
70576
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
70577
|
+
FROM sqlite_master
|
70578
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
70579
|
+
UNION ALL
|
70580
|
+
SELECT sql
|
70581
|
+
FROM sqlite_temp_master
|
70582
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
70583
|
+
[0m
|
70584
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
70585
|
+
FROM sqlite_master
|
70586
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
70587
|
+
UNION ALL
|
70588
|
+
SELECT sql
|
70589
|
+
FROM sqlite_temp_master
|
70590
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
70591
|
+
|
70592
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
70593
|
+
FROM sqlite_master
|
70594
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
70595
|
+
UNION ALL
|
70596
|
+
SELECT sql
|
70597
|
+
FROM sqlite_temp_master
|
70598
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
70599
|
+
[0m
|
70600
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
70601
|
+
FROM sqlite_master
|
70602
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
70603
|
+
UNION ALL
|
70604
|
+
SELECT sql
|
70605
|
+
FROM sqlite_temp_master
|
70606
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
70607
|
+
|
70608
|
+
[1m[36m (0.9ms)[0m [1m SELECT sql
|
70609
|
+
FROM sqlite_master
|
70610
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
70611
|
+
UNION ALL
|
70612
|
+
SELECT sql
|
70613
|
+
FROM sqlite_temp_master
|
70614
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
70615
|
+
[0m
|
70616
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70617
|
+
[1m[35m (0.2ms)[0m begin transaction
|
70618
|
+
[1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
70619
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
70620
|
+
[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
|
70621
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
70622
|
+
[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
|
70623
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
70624
|
+
[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
|
70625
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
70626
|
+
[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
|
70627
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
70628
|
+
[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
|
70629
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
70630
|
+
[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
|
70631
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
70632
|
+
[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
|
70633
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
70634
|
+
[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
|
70635
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
70636
|
+
[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
|
70637
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
70638
|
+
[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
|
70639
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
70640
|
+
[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
|
70641
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
70642
|
+
[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
|
70643
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
70644
|
+
[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
|
70645
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
70646
|
+
[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
|
70647
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
70648
|
+
[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
|
70649
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "has_many_fields"
|
70650
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
70651
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
70652
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
70653
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
70654
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
70655
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
70656
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
70657
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
70658
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
70659
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
70660
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
70661
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
70662
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
70663
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
70664
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
70665
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
70666
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
70667
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
70668
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
70669
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
70670
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
70671
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "has_one_fields"
|
70672
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (1)[0m
|
70673
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (2)
|
70674
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (3)[0m
|
70675
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (4)
|
70676
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (5)[0m
|
70677
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (6)
|
70678
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (7)[0m
|
70679
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (8)
|
70680
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (9)[0m
|
70681
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (10)
|
70682
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (11)[0m
|
70683
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (12)
|
70684
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (13)[0m
|
70685
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (14)
|
70686
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (15)[0m
|
70687
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (16)
|
70688
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (17)[0m
|
70689
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (18)
|
70690
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (19)[0m
|
70691
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (20)
|
70692
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (21)[0m
|
70693
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (22)
|
70694
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (23)[0m
|
70695
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (24)
|
70696
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (25)[0m
|
70697
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (26)
|
70698
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (27)[0m
|
70699
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (28)
|
70700
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (29)[0m
|
70701
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (30)
|
70702
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "owners"[0m
|
70703
|
+
[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')
|
70704
|
+
[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
|
70705
|
+
[1m[35mFixture Insert (0.0ms)[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')
|
70706
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
70707
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
70708
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
70709
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
70710
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
70711
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
70712
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "string_fields"[0m
|
70713
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
70714
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
70715
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
70716
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
70717
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
70718
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
70719
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
70720
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
70721
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
70722
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
70723
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
70724
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
70725
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
70726
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
70727
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
70728
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
70729
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
70730
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
70731
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
70732
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
70733
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
70734
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
70735
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
70736
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
70737
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
70738
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
70739
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
70740
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
70741
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
70742
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
70743
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "trees"
|
70744
|
+
[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
|
70745
|
+
[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')
|
70746
|
+
[1m[36mFixture Insert (0.0ms)[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
|
70747
|
+
[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')
|
70748
|
+
[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
|
70749
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-08-18 19:20:43.000000', '2017-08-18 19:20:43.000000')
|
70750
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-08-18 19:20:43.000000', '2017-08-18 19:20:43.000000')[0m
|
70751
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-08-18 19:20:43.000000', '2017-08-18 19:20:43.000000')
|
70752
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
70753
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70754
|
+
--------------------------------------------------------------------------------------------
|
70755
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_field
|
70756
|
+
--------------------------------------------------------------------------------------------
|
70757
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')[0m
|
70758
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70759
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70760
|
+
-----------------------------------------------------------------------------
|
70761
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
70762
|
+
-----------------------------------------------------------------------------
|
70763
|
+
[1m[35m (0.5ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
70764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70765
|
+
[1m[35m (0.7ms)[0m begin transaction
|
70766
|
+
----------------------------------------------------------------------------------
|
70767
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
70768
|
+
----------------------------------------------------------------------------------
|
70769
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70770
|
+
[1m[35m (0.0ms)[0m begin transaction
|
70771
|
+
-------------------------------------------------------------------------
|
70772
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
70773
|
+
-------------------------------------------------------------------------
|
70774
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70775
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70776
|
+
-------------------------------------------------------------------------
|
70777
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
70778
|
+
-------------------------------------------------------------------------
|
70779
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70781
|
+
---------------------------------------------------------
|
70782
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
70783
|
+
---------------------------------------------------------
|
70784
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70785
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70786
|
+
---------------------------------------------------------------------
|
70787
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
70788
|
+
---------------------------------------------------------------------
|
70789
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70790
|
+
[1m[35m (0.0ms)[0m begin transaction
|
70791
|
+
---------------------------------------------------------------------------
|
70792
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
70793
|
+
---------------------------------------------------------------------------
|
70794
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70795
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70796
|
+
--------------------------------------------------------------------------
|
70797
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
70798
|
+
--------------------------------------------------------------------------
|
70799
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70801
|
+
------------------------------------------------------------------------
|
70802
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
70803
|
+
------------------------------------------------------------------------
|
70804
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70805
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70806
|
+
--------------------------------------------------------
|
70807
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
70808
|
+
--------------------------------------------------------
|
70809
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70810
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70811
|
+
--------------------------------------------------------------------------
|
70812
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
70813
|
+
--------------------------------------------------------------------------
|
70814
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70815
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70816
|
+
-----------------------------------------------------------
|
70817
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
70818
|
+
-----------------------------------------------------------
|
70819
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70820
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70821
|
+
------------------------------------------------------------------------------------
|
70822
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
70823
|
+
------------------------------------------------------------------------------------
|
70824
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70825
|
+
[1m[35m (0.0ms)[0m begin transaction
|
70826
|
+
--------------------------------------------------------------------
|
70827
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
70828
|
+
--------------------------------------------------------------------
|
70829
|
+
[1m[36mSQL (0.6ms)[0m [1mSELECT "has_one_fields"."id" AS t0_r0, "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
|
70830
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "has_one_fields"
|
70831
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70832
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70833
|
+
-----------------------------------------------------------------------
|
70834
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
70835
|
+
-----------------------------------------------------------------------
|
70836
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_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
|
70837
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
70838
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70839
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70840
|
+
------------------------------------------------------------------------------------------------------
|
70841
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
70842
|
+
------------------------------------------------------------------------------------------------------
|
70843
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
70844
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
|
70845
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70846
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70847
|
+
-----------------------------------------------------------------
|
70848
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
70849
|
+
-----------------------------------------------------------------
|
70850
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0[0m
|
70851
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
70852
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70854
|
+
------------------------------------------------------------------------------------------------
|
70855
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
70856
|
+
------------------------------------------------------------------------------------------------
|
70857
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '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
|
70858
|
+
[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')
|
70859
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70860
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70861
|
+
-------------------------------------------------------------------------------------------
|
70862
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
70863
|
+
-------------------------------------------------------------------------------------------
|
70864
|
+
[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
|
70865
|
+
[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')
|
70866
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70867
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70868
|
+
--------------------------------------------------------------------
|
70869
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
70870
|
+
--------------------------------------------------------------------
|
70871
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
70872
|
+
[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]]
|
70873
|
+
[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]]
|
70874
|
+
[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]]
|
70875
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70877
|
+
-----------------------------------------------------------------
|
70878
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
70879
|
+
-----------------------------------------------------------------
|
70880
|
+
[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
|
70881
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
70882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70883
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70884
|
+
------------------------------------------------------------------------------------
|
70885
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
70886
|
+
------------------------------------------------------------------------------------
|
70887
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0[0m
|
70888
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
70889
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70891
|
+
----------------------------------------------------------------
|
70892
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
70893
|
+
----------------------------------------------------------------
|
70894
|
+
[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
|
70895
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
70896
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
70898
|
+
-------------------------------------------------------------------------
|
70899
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
70900
|
+
-------------------------------------------------------------------------
|
70901
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
70902
|
+
[1m[35mSQL (0.1ms)[0m SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC [["owner_id", 1]]
|
70903
|
+
[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]]
|
70904
|
+
[1m[35mSQL (0.1ms)[0m SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0 [["owner_id", 1]]
|
70905
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70906
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70907
|
+
----------------------------------------------------------------
|
70908
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
70909
|
+
----------------------------------------------------------------
|
70910
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
70911
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier')
|
70912
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
70913
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70914
|
+
-----------------------------------------------------------
|
70915
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
70916
|
+
-----------------------------------------------------------
|
70917
|
+
[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-08-18 19:19:44 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
70918
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-08-18 19:19:44 UTC')
|
70919
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
70920
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70921
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70922
|
+
---------------------------------------------------------------------------
|
70923
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
70924
|
+
---------------------------------------------------------------------------
|
70925
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
70926
|
+
[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%' OR LOWER("owners"."name") LIKE '%fir%')[0m [["owner_id", 1]]
|
70927
|
+
[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%' OR LOWER("owners"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
70928
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%' OR LOWER("owners"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
70929
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70930
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
70931
|
+
-----------------------------------------------------------------------------------------
|
70932
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
70933
|
+
-----------------------------------------------------------------------------------------
|
70934
|
+
[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
|
70935
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70936
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70937
|
+
---------------------------------------------------------------------------------------
|
70938
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
70939
|
+
---------------------------------------------------------------------------------------
|
70940
|
+
[1m[36m (0.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
|
70941
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
70942
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
70943
|
+
---------------------------
|
70944
|
+
ForestLianaTest: test_truth
|
70945
|
+
---------------------------
|
70946
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70947
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70948
|
+
------------------------------------------------------------------------------------------------------------
|
70949
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
70950
|
+
------------------------------------------------------------------------------------------------------------
|
70951
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
70952
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
70953
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
70954
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
70955
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
70956
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70957
|
+
---------------------------------------------------------------------------------------------------
|
70958
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
70959
|
+
---------------------------------------------------------------------------------------------------
|
70960
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
70961
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
70962
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
|
70963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
70964
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
70965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70966
|
+
---------------------------------------------------------------------------------------------------------
|
70967
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
70968
|
+
---------------------------------------------------------------------------------------------------------
|
70969
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
70970
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70971
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70972
|
+
------------------------------------------------------------------------------------------------------
|
70973
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
70974
|
+
------------------------------------------------------------------------------------------------------
|
70975
|
+
[1m[36mSerializeField Load (0.2ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
70976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
70977
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
70978
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70979
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70980
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
70981
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
70982
|
+
FROM sqlite_master
|
70983
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
70984
|
+
UNION ALL
|
70985
|
+
SELECT sql
|
70986
|
+
FROM sqlite_temp_master
|
70987
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
70988
|
+
[0m
|
70989
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
70990
|
+
FROM sqlite_master
|
70991
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
70992
|
+
UNION ALL
|
70993
|
+
SELECT sql
|
70994
|
+
FROM sqlite_temp_master
|
70995
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
70996
|
+
|
70997
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
70998
|
+
FROM sqlite_master
|
70999
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
71000
|
+
UNION ALL
|
71001
|
+
SELECT sql
|
71002
|
+
FROM sqlite_temp_master
|
71003
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
71004
|
+
[0m
|
71005
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
71006
|
+
FROM sqlite_master
|
71007
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
71008
|
+
UNION ALL
|
71009
|
+
SELECT sql
|
71010
|
+
FROM sqlite_temp_master
|
71011
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
71012
|
+
|
71013
|
+
[1m[36m (0.5ms)[0m [1m SELECT sql
|
71014
|
+
FROM sqlite_master
|
71015
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
71016
|
+
UNION ALL
|
71017
|
+
SELECT sql
|
71018
|
+
FROM sqlite_temp_master
|
71019
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
71020
|
+
[0m
|
71021
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
71022
|
+
FROM sqlite_master
|
71023
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
71024
|
+
UNION ALL
|
71025
|
+
SELECT sql
|
71026
|
+
FROM sqlite_temp_master
|
71027
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
71028
|
+
|
71029
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
71030
|
+
FROM sqlite_master
|
71031
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
71032
|
+
UNION ALL
|
71033
|
+
SELECT sql
|
71034
|
+
FROM sqlite_temp_master
|
71035
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
71036
|
+
[0m
|
71037
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
71038
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71039
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
71040
|
+
[1m[35mFixture Insert (1.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
71041
|
+
[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
|
71042
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
71043
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
71044
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
71045
|
+
[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
|
71046
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
71047
|
+
[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
|
71048
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
71049
|
+
[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
|
71050
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
71051
|
+
[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
|
71052
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
71053
|
+
[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
|
71054
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
71055
|
+
[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
|
71056
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
71057
|
+
[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
|
71058
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
71059
|
+
[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
|
71060
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
71061
|
+
[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
|
71062
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
71063
|
+
[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
|
71064
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
71065
|
+
[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
|
71066
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
71067
|
+
[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
|
71068
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
71069
|
+
[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
|
71070
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "has_many_fields"
|
71071
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
71072
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
71073
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
71074
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
71075
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
71076
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
71077
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
71078
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
71079
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
71080
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
71081
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
71082
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
71083
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
71084
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
71085
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
71086
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
71087
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
71088
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
71089
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
71090
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
71091
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
71092
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "has_one_fields"
|
71093
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (1)[0m
|
71094
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (2)
|
71095
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (3)[0m
|
71096
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (4)
|
71097
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (5)[0m
|
71098
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (6)
|
71099
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (7)[0m
|
71100
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (8)
|
71101
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (9)[0m
|
71102
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (10)
|
71103
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (11)[0m
|
71104
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (12)
|
71105
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (13)[0m
|
71106
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (14)
|
71107
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (15)[0m
|
71108
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (16)
|
71109
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (17)[0m
|
71110
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (18)
|
71111
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (19)[0m
|
71112
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (20)
|
71113
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (21)[0m
|
71114
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (22)
|
71115
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (23)[0m
|
71116
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (24)
|
71117
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (25)[0m
|
71118
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (26)
|
71119
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (27)[0m
|
71120
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (28)
|
71121
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id") VALUES (29)[0m
|
71122
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id") VALUES (30)
|
71123
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "owners"[0m
|
71124
|
+
[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')
|
71125
|
+
[1m[36mFixture Insert (0.0ms)[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
|
71126
|
+
[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')
|
71127
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
71128
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
71129
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
71130
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
71131
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
71132
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
71133
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "string_fields"[0m
|
71134
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
|
71135
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')[0m
|
71136
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
|
71137
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')[0m
|
71138
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
|
71139
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')[0m
|
71140
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
|
71141
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')[0m
|
71142
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
|
71143
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')[0m
|
71144
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
|
71145
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')[0m
|
71146
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
|
71147
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')[0m
|
71148
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
|
71149
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')[0m
|
71150
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
|
71151
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')[0m
|
71152
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
|
71153
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')[0m
|
71154
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
|
71155
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')[0m
|
71156
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
|
71157
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')[0m
|
71158
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
|
71159
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')[0m
|
71160
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
|
71161
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')[0m
|
71162
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
|
71163
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')[0m
|
71164
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "trees"
|
71165
|
+
[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
|
71166
|
+
[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')
|
71167
|
+
[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
|
71168
|
+
[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')
|
71169
|
+
[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
|
71170
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2017-08-21 17:12:16.000000', '2017-08-21 17:12:16.000000')
|
71171
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2017-08-21 17:12:16.000000', '2017-08-21 17:12:16.000000')[0m
|
71172
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2017-08-21 17:12:16.000000', '2017-08-21 17:12:16.000000')
|
71173
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
71174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71175
|
+
--------------------------------------------------------------------------------------------
|
71176
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_field
|
71177
|
+
--------------------------------------------------------------------------------------------
|
71178
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')[0m
|
71179
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71180
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
71181
|
+
-----------------------------------------------------------------------------
|
71182
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
71183
|
+
-----------------------------------------------------------------------------
|
71184
|
+
[1m[35m (0.4ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
71185
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
71186
|
+
[1m[35m (0.0ms)[0m begin transaction
|
71187
|
+
-------------------------------------------------------------------------
|
71188
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_sort_parameter
|
71189
|
+
-------------------------------------------------------------------------
|
71190
|
+
[1m[36mOwner Load (0.3ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 1]]
|
71191
|
+
[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]]
|
71192
|
+
[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]]
|
71193
|
+
[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]]
|
71194
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
71195
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71196
|
+
------------------------------------------------------------------------------------------------------
|
71197
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
71198
|
+
------------------------------------------------------------------------------------------------------
|
71199
|
+
[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
|
71200
|
+
[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)')
|
71201
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
71202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71203
|
+
-----------------------------------------------------------------
|
71204
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
71205
|
+
-----------------------------------------------------------------
|
71206
|
+
[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
|
71207
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
71208
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
71209
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71210
|
+
-----------------------------------------------------------------
|
71211
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
71212
|
+
-----------------------------------------------------------------
|
71213
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10[0m
|
71214
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
71215
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
71216
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71217
|
+
-------------------------------------------------------------------------------------------
|
71218
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
71219
|
+
-------------------------------------------------------------------------------------------
|
71220
|
+
[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
|
71221
|
+
[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')
|
71222
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
71223
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71224
|
+
-----------------------------------------------------------------------
|
71225
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
71226
|
+
-----------------------------------------------------------------------
|
71227
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_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
|
71228
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
71229
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
71230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71231
|
+
-----------------------------------------------------------
|
71232
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_days
|
71233
|
+
-----------------------------------------------------------
|
71234
|
+
[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-08-21 17:11:16 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
71235
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2017-08-21 17:11:16 UTC')
|
71236
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
71237
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71239
|
+
--------------------------------------------------------------------
|
71240
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_page_1_size_15
|
71241
|
+
--------------------------------------------------------------------
|
71242
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
71243
|
+
[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]]
|
71244
|
+
[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]]
|
71245
|
+
[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]]
|
71246
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71248
|
+
--------------------------------------------------------------------
|
71249
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
71250
|
+
--------------------------------------------------------------------
|
71251
|
+
[1m[35mSQL (0.8ms)[0m SELECT "has_one_fields"."id" AS t0_r0, "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
|
71252
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "has_one_fields"[0m
|
71253
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71255
|
+
----------------------------------------------------------------
|
71256
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
71257
|
+
----------------------------------------------------------------
|
71258
|
+
[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.field DESC LIMIT 10 OFFSET 0
|
71259
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
71260
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71261
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71262
|
+
------------------------------------------------------------------------------------------------
|
71263
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
71264
|
+
------------------------------------------------------------------------------------------------
|
71265
|
+
[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 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
|
71266
|
+
[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 BETWEEN '2016-01-01 08:00:00 UTC' AND '2017-01-01 07:59:59 UTC')[0m
|
71267
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71269
|
+
---------------------------------------------------------------------------
|
71270
|
+
ForestLiana::ResourcesGetterTest: test_HasMany_Getter_with_search_parameter
|
71271
|
+
---------------------------------------------------------------------------
|
71272
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
71273
|
+
[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" = ? AND (LOWER("trees"."name") LIKE '%fir%')[0m [["owner_id", 1]]
|
71274
|
+
[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" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
71275
|
+
[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]]
|
71276
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71278
|
+
----------------------------------------------------------------
|
71279
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
71280
|
+
----------------------------------------------------------------
|
71281
|
+
[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
|
71282
|
+
[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
|
71283
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71284
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71285
|
+
------------------------------------------------------------------------------------
|
71286
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
71287
|
+
------------------------------------------------------------------------------------
|
71288
|
+
[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
|
71289
|
+
[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
|
71290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
71292
|
+
---------------------------------------------------------------------------
|
71293
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
71294
|
+
---------------------------------------------------------------------------
|
71295
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71296
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71297
|
+
--------------------------------------------------------------------------
|
71298
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
71299
|
+
--------------------------------------------------------------------------
|
71300
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71302
|
+
---------------------------------------------------------------------
|
71303
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
71304
|
+
---------------------------------------------------------------------
|
71305
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71307
|
+
------------------------------------------------------------------------------------
|
71308
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
71309
|
+
------------------------------------------------------------------------------------
|
71310
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71312
|
+
-----------------------------------------------------------
|
71313
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
71314
|
+
-----------------------------------------------------------
|
71315
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71316
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71317
|
+
-------------------------------------------------------------------------
|
71318
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
71319
|
+
-------------------------------------------------------------------------
|
71320
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71321
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71322
|
+
----------------------------------------------------------------------------------
|
71323
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
71324
|
+
----------------------------------------------------------------------------------
|
71325
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71326
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71327
|
+
--------------------------------------------------------------------------
|
71328
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
71329
|
+
--------------------------------------------------------------------------
|
71330
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71331
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71332
|
+
-------------------------------------------------------------------------
|
71333
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
71334
|
+
-------------------------------------------------------------------------
|
71335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71336
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71337
|
+
---------------------------------------------------------
|
71338
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
71339
|
+
---------------------------------------------------------
|
71340
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71341
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71342
|
+
------------------------------------------------------------------------
|
71343
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
71344
|
+
------------------------------------------------------------------------
|
71345
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71347
|
+
--------------------------------------------------------
|
71348
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
71349
|
+
--------------------------------------------------------
|
71350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71352
|
+
---------------------------
|
71353
|
+
ForestLianaTest: test_truth
|
71354
|
+
---------------------------
|
71355
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71357
|
+
------------------------------------------------------------------------------------------------------------
|
71358
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
71359
|
+
------------------------------------------------------------------------------------------------------------
|
71360
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
71361
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
71362
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
|
71363
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
71364
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
71365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71366
|
+
------------------------------------------------------------------------------------------------------
|
71367
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
71368
|
+
------------------------------------------------------------------------------------------------------
|
71369
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
71370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
71371
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
71372
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
71373
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71374
|
+
---------------------------------------------------------------------------------------------------------
|
71375
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
71376
|
+
---------------------------------------------------------------------------------------------------------
|
71377
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
71378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71379
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
71380
|
+
---------------------------------------------------------------------------------------------------
|
71381
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
71382
|
+
---------------------------------------------------------------------------------------------------
|
71383
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
71384
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
71385
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
|
71386
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
71387
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
71388
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
71389
|
+
-----------------------------------------------------------------------------------------
|
71390
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
71391
|
+
-----------------------------------------------------------------------------------------
|
71392
|
+
[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
|
71393
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
71394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71395
|
+
---------------------------------------------------------------------------------------
|
71396
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
71397
|
+
---------------------------------------------------------------------------------------
|
71398
|
+
[1m[36m (1.2ms)[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
|
71399
|
+
[1m[35m (0.1ms)[0m rollback transaction
|