searchable_models 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/Rakefile +1 -1
- data/lib/searchable_models/searchable.rb +90 -10
- data/lib/searchable_models/version.rb +1 -1
- data/test/dummy/app/models/car.rb +4 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +186 -0
- data/test/dummy/log/test.log +2986 -0
- data/test/dummy/test/fixtures/components.yml +1 -1
- data/test/dummy/test/models/car_test.rb +4 -0
- metadata +6 -3
- data/lib/tasks/searchable_models_tasks.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb7b8eb489ffddbdba32d71d7d7b5c3c18299971
|
4
|
+
data.tar.gz: c3bd295fb5eb075c068150b9e7539260f48c10ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ba84771f018eba695a4b4300f0fb2a7bbb57872c92453d7ee5e240e3e24604ed7eb288b81b5480ebedced4677b3ac911318e23f1699bc2d6a9a0d351fc39836
|
7
|
+
data.tar.gz: 06036a8ee14322ea44992f7ad44773e1c5f8a62631cfb11d376a79389d8d76b81e6360d068a97fc8616849f9a7b9b5929f4922ac4647373cfa5c0eb5c1c2c20e
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# SearchableModels
|
2
|
+
[![Build Status](https://travis-ci.org/gatemedia/searchable_models.svg?branch=master)](https://travis-ci.org/gatemedia/searchable_models)
|
2
3
|
|
3
4
|
SearchableModels provide a `search` scope on ActiveRecord models.
|
4
5
|
|
@@ -6,12 +7,19 @@ This idea is to describe which fields are searchable and the gem will do the res
|
|
6
7
|
|
7
8
|
## Compatibility
|
8
9
|
|
9
|
-
SearchableModels has been
|
10
|
+
SearchableModels has been used with:
|
10
11
|
* ruby 2
|
11
12
|
* rails 4.1
|
12
13
|
|
14
|
+
However this gem is built against:
|
15
|
+
* ruby 1.9.3
|
16
|
+
* ruby 2.0.0
|
17
|
+
* ruby 2.1.3
|
18
|
+
|
13
19
|
Other versions may or may not work.
|
14
20
|
|
21
|
+
|
22
|
+
|
15
23
|
## Installation
|
16
24
|
|
17
25
|
To use it, add it to your Gemfile:
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
10
|
rdoc.rdoc_dir = 'rdoc'
|
11
11
|
rdoc.title = 'SearchableModels'
|
12
12
|
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
@@ -11,7 +11,7 @@ module SearchableModels
|
|
11
11
|
|
12
12
|
fields = _search_fields.select do |_, v|
|
13
13
|
v.try(:exclude?, :mode) \
|
14
|
-
||
|
14
|
+
|| [:exact, :scope, :enum].include?(v.try(:[], :mode))
|
15
15
|
end
|
16
16
|
results = _search(results, fields, params)
|
17
17
|
|
@@ -23,11 +23,88 @@ module SearchableModels
|
|
23
23
|
end
|
24
24
|
|
25
25
|
module ClassMethods
|
26
|
+
# This method will setup a search query and add a `search` scope. When
|
27
|
+
# calling `search`, all the configured searches will be run. See the
|
28
|
+
# examples for different configurations of the search.
|
29
|
+
#
|
30
|
+
# Example:
|
31
|
+
#
|
32
|
+
# class Car < ActiveRecord::Base
|
33
|
+
# # simple search on one column (exact match)
|
34
|
+
# search_on :maker
|
35
|
+
# search_on :number_of_doors
|
36
|
+
# end
|
37
|
+
#
|
38
|
+
# Car.search(:maker => "Tesla")
|
39
|
+
# Car.search(:maker => "VW", :number_of_doors => 2)
|
40
|
+
#
|
41
|
+
# class Car < ActiveRecord::Base
|
42
|
+
# # fuzzy search (case insensitive)
|
43
|
+
# search_on :maker, :mode => :fuzzy
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# Car.search(:maker => "sla")
|
47
|
+
#
|
48
|
+
# class Car < ActiveRecord::Base
|
49
|
+
# # Grouped searches
|
50
|
+
# search_on :maker, :mode => :fuzzy, :param => :query
|
51
|
+
# search_on :name, :mode => :fuzzy, :param => :query
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
# Car.search(:query => "sla")
|
55
|
+
#
|
56
|
+
# class Car < ActiveRecord::Base
|
57
|
+
# # search on association id
|
58
|
+
# belongs_to :fleet
|
59
|
+
# search_on :fleet_id
|
60
|
+
# end
|
61
|
+
#
|
62
|
+
# Car.search(:fleet_id => 33)
|
63
|
+
#
|
64
|
+
# class Car < ActiveRecord::Base
|
65
|
+
# # search through on association
|
66
|
+
# belongs_to :fleet
|
67
|
+
# search_on :name, :through => :fleet
|
68
|
+
# end
|
69
|
+
#
|
70
|
+
# class Car < ActiveRecord::Base
|
71
|
+
# # using a scope (only one parameter scopes are valid)
|
72
|
+
# scope :imported_on, ->(date) { where(:import_date => date) }
|
73
|
+
# scope :import_date, :mode => :scope, :scope => :imported_on
|
74
|
+
# end
|
75
|
+
#
|
76
|
+
# Car.search(:import_date => "1975-12-12")
|
77
|
+
#
|
78
|
+
# class Car < ActiveRecord::Base
|
79
|
+
# # acts-as-taggable-on support
|
80
|
+
# acts_as_taggable
|
81
|
+
# search_on :tags
|
82
|
+
# end
|
83
|
+
#
|
84
|
+
# Car.search(:tags => %w(small yellow))
|
85
|
+
# Car.search(:tags => %w(yellow blue red), :tags_combination => :or)
|
86
|
+
#
|
87
|
+
# Car.search(:import_date => "1975-12-12")
|
88
|
+
# # globalize support
|
89
|
+
# translates :name
|
90
|
+
# search_on :name, :mode => :fuzzy
|
91
|
+
# end
|
92
|
+
#
|
93
|
+
# Car.search(:name => "sla")
|
26
94
|
def search_on(*args)
|
27
95
|
self._search_fields ||= {}
|
28
96
|
self._search_fields.merge!(args.first => args.extract_options!)
|
29
97
|
end
|
30
98
|
|
99
|
+
# By the default, the order is based on column `id`. You can use this
|
100
|
+
# method to change the column.
|
101
|
+
#
|
102
|
+
# Example
|
103
|
+
#
|
104
|
+
# class Car < ActiveRecord::Base
|
105
|
+
# search_on(:name)
|
106
|
+
# search_ordered_by(:name)
|
107
|
+
# end
|
31
108
|
def search_ordered_by(field)
|
32
109
|
self._search_order = field
|
33
110
|
end
|
@@ -41,8 +118,13 @@ module SearchableModels
|
|
41
118
|
results = case
|
42
119
|
when field == :tags
|
43
120
|
_tags_search(results, value, params[:tags_combination])
|
44
|
-
when
|
45
|
-
|
121
|
+
when options[:through]
|
122
|
+
_associations_search(
|
123
|
+
results,
|
124
|
+
field,
|
125
|
+
value,
|
126
|
+
options[:through]
|
127
|
+
)
|
46
128
|
when options[:mode] == :scope && options[:scope]
|
47
129
|
_search_with_scope(results, value, options[:scope])
|
48
130
|
when options[:mode] == :enum
|
@@ -103,7 +185,7 @@ module SearchableModels
|
|
103
185
|
results.where(field => value)
|
104
186
|
end
|
105
187
|
|
106
|
-
def
|
188
|
+
def _associations_search(results, field, value, through)
|
107
189
|
return results unless through
|
108
190
|
table = _get_last_value(through).to_s.pluralize
|
109
191
|
results.joins(through).where(table => { field => value })
|
@@ -114,15 +196,13 @@ module SearchableModels
|
|
114
196
|
object
|
115
197
|
end
|
116
198
|
|
117
|
-
def _through_association_ids_search(results, field, value, through)
|
118
|
-
return results unless through
|
119
|
-
results.joins(through).where(through => { field => value })
|
120
|
-
end
|
121
|
-
|
122
199
|
def _check_type_for_fuzzy_search(field)
|
123
200
|
return if try(:translated?, field) \
|
124
201
|
|| columns_hash[field.to_s].try(:type) == :string
|
125
|
-
fail(
|
202
|
+
fail(
|
203
|
+
ArgumentError,
|
204
|
+
"#{field} must be of type string to run a fuzzy search on it"
|
205
|
+
)
|
126
206
|
end
|
127
207
|
end
|
128
208
|
end
|
@@ -23,12 +23,15 @@ class Car < ActiveRecord::Base
|
|
23
23
|
# search with deep through
|
24
24
|
search_on :provider_id, :through => { :doors => :component }
|
25
25
|
|
26
|
+
# search with through on any field
|
27
|
+
search_on :serial, :through => { :doors => :component }
|
28
|
+
|
26
29
|
# search with scope
|
27
30
|
scope :imported_on, ->(date) { where(:import_date => date) }
|
28
31
|
search_on :import_date, :mode => :scope, :scope => :imported_on
|
29
32
|
|
30
33
|
# search on enums
|
31
|
-
enum :kind =>
|
34
|
+
enum :kind => [:van, :sedan, :family]
|
32
35
|
search_on :kind, :mode => :enum, :param => :type_of_car
|
33
36
|
|
34
37
|
# search on tags (support for acts-as-taggable-on)
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,186 @@
|
|
1
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateCars (20141113130904)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" varchar(255), "number_of_doors" integer, "brand" varchar(255), "model" varchar(255), "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime)
|
8
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141113130904"]]
|
9
|
+
[1m[35m (0.7ms)[0m commit transaction
|
10
|
+
Migrating to CreateGroups (20141113142341)
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
13
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141113142341"]]
|
14
|
+
[1m[35m (0.7ms)[0m commit transaction
|
15
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "cars" ADD "group_id" integer
|
18
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141113142350"]]
|
19
|
+
[1m[35m (0.8ms)[0m commit transaction
|
20
|
+
Migrating to CreateDoors (20141113153040)
|
21
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "car_id" integer, "created_at" datetime, "updated_at" datetime)
|
23
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
24
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
25
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
26
|
+
Migrating to CreateProviders (20141114120705)
|
27
|
+
[1m[35m (0.1ms)[0m begin transaction
|
28
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
29
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
30
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
31
|
+
Migrating to CreateComponents (20141114120731)
|
32
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "serial" varchar(255), "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
34
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
35
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
36
|
+
[1m[35m (0.8ms)[0m commit transaction
|
37
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
38
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
40
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
41
|
+
[1m[35m (0.8ms)[0m commit transaction
|
42
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
43
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
45
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar(255), "tagger_id" integer, "tagger_type" varchar(255), "context" varchar(128), "created_at" datetime) [0m
|
46
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
47
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
48
|
+
FROM sqlite_master
|
49
|
+
WHERE name='index_taggings_on_tag_id' AND type='index'
|
50
|
+
UNION ALL
|
51
|
+
SELECT sql
|
52
|
+
FROM sqlite_temp_master
|
53
|
+
WHERE name='index_taggings_on_tag_id' AND type='index'
|
54
|
+
[0m
|
55
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
56
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
57
|
+
[1m[35m (1.1ms)[0m commit transaction
|
58
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
59
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
+
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
61
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
62
|
+
FROM sqlite_master
|
63
|
+
WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
|
64
|
+
UNION ALL
|
65
|
+
SELECT sql
|
66
|
+
FROM sqlite_temp_master
|
67
|
+
WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
|
68
|
+
[0m
|
69
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
70
|
+
FROM sqlite_master
|
71
|
+
WHERE name='index_taggings_on_tag_id' AND type='index'
|
72
|
+
UNION ALL
|
73
|
+
SELECT sql
|
74
|
+
FROM sqlite_temp_master
|
75
|
+
WHERE name='index_taggings_on_tag_id' AND type='index'
|
76
|
+
|
77
|
+
[1m[36m (1.3ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
78
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
79
|
+
FROM sqlite_master
|
80
|
+
WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
|
81
|
+
UNION ALL
|
82
|
+
SELECT sql
|
83
|
+
FROM sqlite_temp_master
|
84
|
+
WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
|
85
|
+
|
86
|
+
[1m[36m (0.2ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
87
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
88
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
89
|
+
[1m[35m (1.2ms)[0m commit transaction
|
90
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
91
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
92
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
93
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
94
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
95
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
96
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
97
|
+
[1m[35m (0.1ms)[0m begin transaction
|
98
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
99
|
+
FROM sqlite_master
|
100
|
+
WHERE name='taggings_idx' AND type='index'
|
101
|
+
UNION ALL
|
102
|
+
SELECT sql
|
103
|
+
FROM sqlite_temp_master
|
104
|
+
WHERE name='taggings_idx' AND type='index'
|
105
|
+
[0m
|
106
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
107
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
108
|
+
[1m[35m (0.9ms)[0m commit transaction
|
109
|
+
Migrating to AddCarTranslations (20141114130703)
|
110
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
111
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime)
|
112
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar(255)[0m
|
113
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
114
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
115
|
+
FROM sqlite_master
|
116
|
+
WHERE name='index_car_translations_on_car_id' AND type='index'
|
117
|
+
UNION ALL
|
118
|
+
SELECT sql
|
119
|
+
FROM sqlite_temp_master
|
120
|
+
WHERE name='index_car_translations_on_car_id' AND type='index'
|
121
|
+
[0m
|
122
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
123
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
124
|
+
[1m[35m (0.8ms)[0m commit transaction
|
125
|
+
Migrating to AddManufacturerToDoors (20141211083424)
|
126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
127
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "doors" ADD "manufacturer" varchar(255)
|
128
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211083424"]]
|
129
|
+
[1m[35m (0.9ms)[0m commit transaction
|
130
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
131
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
132
|
+
FROM sqlite_master
|
133
|
+
WHERE name='index_car_translations_on_locale' AND type='index'
|
134
|
+
UNION ALL
|
135
|
+
SELECT sql
|
136
|
+
FROM sqlite_temp_master
|
137
|
+
WHERE name='index_car_translations_on_locale' AND type='index'
|
138
|
+
|
139
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
140
|
+
FROM sqlite_master
|
141
|
+
WHERE name='index_car_translations_on_car_id' AND type='index'
|
142
|
+
UNION ALL
|
143
|
+
SELECT sql
|
144
|
+
FROM sqlite_temp_master
|
145
|
+
WHERE name='index_car_translations_on_car_id' AND type='index'
|
146
|
+
[0m
|
147
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
148
|
+
FROM sqlite_master
|
149
|
+
WHERE name='index_components_on_provider_id' AND type='index'
|
150
|
+
UNION ALL
|
151
|
+
SELECT sql
|
152
|
+
FROM sqlite_temp_master
|
153
|
+
WHERE name='index_components_on_provider_id' AND type='index'
|
154
|
+
|
155
|
+
[1m[36m (0.2ms)[0m [1m SELECT sql
|
156
|
+
FROM sqlite_master
|
157
|
+
WHERE name='index_doors_on_car_id' AND type='index'
|
158
|
+
UNION ALL
|
159
|
+
SELECT sql
|
160
|
+
FROM sqlite_temp_master
|
161
|
+
WHERE name='index_doors_on_car_id' AND type='index'
|
162
|
+
[0m
|
163
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
164
|
+
FROM sqlite_master
|
165
|
+
WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
|
166
|
+
UNION ALL
|
167
|
+
SELECT sql
|
168
|
+
FROM sqlite_temp_master
|
169
|
+
WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
|
170
|
+
|
171
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
172
|
+
FROM sqlite_master
|
173
|
+
WHERE name='taggings_idx' AND type='index'
|
174
|
+
UNION ALL
|
175
|
+
SELECT sql
|
176
|
+
FROM sqlite_temp_master
|
177
|
+
WHERE name='taggings_idx' AND type='index'
|
178
|
+
[0m
|
179
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
180
|
+
FROM sqlite_master
|
181
|
+
WHERE name='index_tags_on_name' AND type='index'
|
182
|
+
UNION ALL
|
183
|
+
SELECT sql
|
184
|
+
FROM sqlite_temp_master
|
185
|
+
WHERE name='index_tags_on_name' AND type='index'
|
186
|
+
|
data/test/dummy/log/test.log
CHANGED
@@ -669,3 +669,2989 @@ CarTest: test_search_car_with_through
|
|
669
669
|
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
670
670
|
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
671
671
|
[1m[35m (0.1ms)[0m rollback transaction
|
672
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
673
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
674
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
675
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "cars"
|
676
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-11-17 09:21:04', '2014-11-17 09:21:04', 835429954, 972975755)[0m
|
677
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-11-17 09:21:04', '2014-11-17 09:21:04', 443394774, 972975755)
|
678
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-11-17 09:21:04', '2014-11-17 09:21:04', 131351955, 266440024)[0m
|
679
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "components"
|
680
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-11-17 09:21:04', '2014-11-17 09:21:04', 1012443712, 665974588)[0m
|
681
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-11-17 09:21:04', '2014-11-17 09:21:04', 402564824, 202898348)
|
682
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-11-17 09:21:04', '2014-11-17 09:21:04', 172444051, 296621295)[0m
|
683
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "doors"
|
684
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 546177811, 835429954, 1012443712)[0m
|
685
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 187174789, 443394774, 402564824)
|
686
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 378659014, 131351955, 172444051)[0m
|
687
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
688
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 972975755)[0m
|
689
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 266440024)
|
690
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
691
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 665974588)
|
692
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 202898348)[0m
|
693
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 296621295)
|
694
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
695
|
+
[1m[35m (0.0ms)[0m begin transaction
|
696
|
+
------------------------------------------
|
697
|
+
CarTest: test_search_car_with_belong_to_id
|
698
|
+
------------------------------------------
|
699
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
700
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
701
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
702
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
703
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
704
|
+
------------------------------------------
|
705
|
+
CarTest: test_search_car_with_deep_through
|
706
|
+
------------------------------------------
|
707
|
+
[1m[35mProvider Load (0.2ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
708
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
709
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
710
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
711
|
+
[1m[35m (0.0ms)[0m begin transaction
|
712
|
+
----------------------------------
|
713
|
+
CarTest: test_search_car_with_enum
|
714
|
+
----------------------------------
|
715
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
716
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
717
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
718
|
+
[1m[35m (0.0ms)[0m begin transaction
|
719
|
+
------------------------------------------
|
720
|
+
CarTest: test_search_car_with_exact_search
|
721
|
+
------------------------------------------
|
722
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
723
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
724
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
725
|
+
[1m[35m (0.0ms)[0m begin transaction
|
726
|
+
-------------------------------------------------------------
|
727
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
728
|
+
-------------------------------------------------------------
|
729
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
730
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
731
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
733
|
+
-------------------------------------------------------
|
734
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
735
|
+
-------------------------------------------------------
|
736
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
737
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
738
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
739
|
+
[1m[35m (0.0ms)[0m begin transaction
|
740
|
+
------------------------------------------------------------------------
|
741
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
742
|
+
------------------------------------------------------------------------
|
743
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
744
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
745
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
746
|
+
[1m[35m (0.1ms)[0m begin transaction
|
747
|
+
----------------------------------------
|
748
|
+
CarTest: test_search_car_with_i18n_field
|
749
|
+
----------------------------------------
|
750
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
751
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
752
|
+
[1m[36mCar::Translation Load (0.4ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
753
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.524245"]]
|
754
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-11-17 09:21:04.530425"], ["locale", "en"], ["updated_at", "2014-11-17 09:21:04.530425"]]
|
755
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
756
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.535524' WHERE "cars"."id" = 131351955[0m
|
757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
758
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
759
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.538140"]]
|
760
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-11-17 09:21:04.540871"], ["locale", "fr"], ["updated_at", "2014-11-17 09:21:04.540871"]]
|
761
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
762
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.543177' WHERE "cars"."id" = 131351955[0m
|
763
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
764
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
765
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.545045"]]
|
766
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-11-17 09:21:04.546389"], ["locale", "es"], ["updated_at", "2014-11-17 09:21:04.546389"]]
|
767
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
768
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.548087' WHERE "cars"."id" = 131351955[0m
|
769
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
770
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
771
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.550358"]]
|
772
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-11-17 09:21:04.552270"], ["locale", "pt"], ["updated_at", "2014-11-17 09:21:04.552270"]]
|
773
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
774
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.553782' WHERE "cars"."id" = 131351955[0m
|
775
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
776
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
777
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.555327"]]
|
778
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 09:21:04.556403"]]
|
779
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.556952' WHERE "cars"."id" = 131351955
|
780
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
781
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
782
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
784
|
+
-----------------------------------
|
785
|
+
CarTest: test_search_car_with_scope
|
786
|
+
-----------------------------------
|
787
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
788
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
789
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
790
|
+
[1m[35m (0.0ms)[0m begin transaction
|
791
|
+
--------------------------------------
|
792
|
+
CarTest: test_search_car_with_tags_AND
|
793
|
+
--------------------------------------
|
794
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
795
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
796
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.4ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
797
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.571968"]]
|
798
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
799
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.4ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
800
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
801
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
802
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
803
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
804
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
805
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 09:21:04.661591"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
806
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
807
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
808
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
809
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 09:21:04.667154"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
810
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
811
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
812
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
813
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
814
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_84a358a ON cars_taggings_84a358a.taggable_id = cars.id AND cars_taggings_84a358a.taggable_type = 'Car' AND cars_taggings_84a358a.tag_id = 1 JOIN taggings cars_taggings_3d7d856 ON cars_taggings_3d7d856.taggable_id = cars.id AND cars_taggings_3d7d856.taggable_type = 'Car' AND cars_taggings_3d7d856.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
815
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
816
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
817
|
+
-------------------------------------
|
818
|
+
CarTest: test_search_car_with_tags_OR
|
819
|
+
-------------------------------------
|
820
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
821
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
822
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
823
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-11-17 09:21:04.675751"]]
|
824
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
825
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
826
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
827
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
828
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
829
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
830
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
831
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 09:21:04.681032"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
832
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
833
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
834
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
835
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 09:21:04.684221"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
836
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
837
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
839
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
840
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_9549081 ON cars_taggings_9549081.taggable_id = cars.id AND cars_taggings_9549081.taggable_type = 'Car' WHERE (cars_taggings_9549081.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
841
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
842
|
+
[1m[35m (0.0ms)[0m begin transaction
|
843
|
+
-------------------------------------
|
844
|
+
CarTest: test_search_car_with_through
|
845
|
+
-------------------------------------
|
846
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
847
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
848
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
849
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
850
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
851
|
+
-------------------------------------------------------
|
852
|
+
SearchableModelsTest: test_module_is_correctly_included
|
853
|
+
-------------------------------------------------------
|
854
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
855
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
856
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
857
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
858
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "cars"
|
859
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-11-17 12:52:50', '2014-11-17 12:52:50', 835429954, 972975755)[0m
|
860
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-11-17 12:52:50', '2014-11-17 12:52:50', 443394774, 972975755)
|
861
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-11-17 12:52:50', '2014-11-17 12:52:50', 131351955, 266440024)[0m
|
862
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "components"
|
863
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-11-17 12:52:50', '2014-11-17 12:52:50', 1012443712, 665974588)[0m
|
864
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-11-17 12:52:50', '2014-11-17 12:52:50', 402564824, 202898348)
|
865
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-11-17 12:52:50', '2014-11-17 12:52:50', 172444051, 296621295)[0m
|
866
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "doors"
|
867
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 546177811, 835429954, 1012443712)[0m
|
868
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 187174789, 443394774, 402564824)
|
869
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 378659014, 131351955, 172444051)[0m
|
870
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
871
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 972975755)[0m
|
872
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 266440024)
|
873
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
874
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 665974588)
|
875
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 202898348)[0m
|
876
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 296621295)
|
877
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
878
|
+
[1m[35m (0.0ms)[0m begin transaction
|
879
|
+
------------------------------------------
|
880
|
+
CarTest: test_search_car_with_belong_to_id
|
881
|
+
------------------------------------------
|
882
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
883
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
884
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
885
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
886
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
887
|
+
------------------------------------------
|
888
|
+
CarTest: test_search_car_with_deep_through
|
889
|
+
------------------------------------------
|
890
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
891
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
892
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
893
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
894
|
+
[1m[35m (0.0ms)[0m begin transaction
|
895
|
+
----------------------------------
|
896
|
+
CarTest: test_search_car_with_enum
|
897
|
+
----------------------------------
|
898
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
899
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
900
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
901
|
+
[1m[35m (0.0ms)[0m begin transaction
|
902
|
+
------------------------------------------
|
903
|
+
CarTest: test_search_car_with_exact_search
|
904
|
+
------------------------------------------
|
905
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
906
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
907
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
908
|
+
[1m[35m (0.1ms)[0m begin transaction
|
909
|
+
-------------------------------------------------------------
|
910
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
911
|
+
-------------------------------------------------------------
|
912
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
913
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
914
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
915
|
+
[1m[35m (0.0ms)[0m begin transaction
|
916
|
+
-------------------------------------------------------
|
917
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
918
|
+
-------------------------------------------------------
|
919
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
920
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
921
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
922
|
+
[1m[35m (0.1ms)[0m begin transaction
|
923
|
+
------------------------------------------------------------------------
|
924
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
925
|
+
------------------------------------------------------------------------
|
926
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
927
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
928
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
929
|
+
[1m[35m (0.1ms)[0m begin transaction
|
930
|
+
----------------------------------------
|
931
|
+
CarTest: test_search_car_with_i18n_field
|
932
|
+
----------------------------------------
|
933
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
934
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
935
|
+
[1m[36mCar::Translation Load (0.4ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
936
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.840445"]]
|
937
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-11-17 12:52:50.846283"], ["locale", "en"], ["updated_at", "2014-11-17 12:52:50.846283"]]
|
938
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
939
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.851672' WHERE "cars"."id" = 131351955[0m
|
940
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
942
|
+
[1m[35mSQL (1.9ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.854617"]]
|
943
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-11-17 12:52:50.857727"], ["locale", "fr"], ["updated_at", "2014-11-17 12:52:50.857727"]]
|
944
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
945
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.859027' WHERE "cars"."id" = 131351955[0m
|
946
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
947
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
948
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.862170"]]
|
949
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-11-17 12:52:50.863895"], ["locale", "es"], ["updated_at", "2014-11-17 12:52:50.863895"]]
|
950
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
951
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.865208' WHERE "cars"."id" = 131351955[0m
|
952
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
954
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.866813"]]
|
955
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-11-17 12:52:50.868059"], ["locale", "pt"], ["updated_at", "2014-11-17 12:52:50.868059"]]
|
956
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
957
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.869186' WHERE "cars"."id" = 131351955[0m
|
958
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
959
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
960
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.870448"]]
|
961
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 12:52:50.871273"]]
|
962
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.871703' WHERE "cars"."id" = 131351955
|
963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
964
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
965
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
967
|
+
-----------------------------------
|
968
|
+
CarTest: test_search_car_with_scope
|
969
|
+
-----------------------------------
|
970
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
971
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
972
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
973
|
+
[1m[35m (0.0ms)[0m begin transaction
|
974
|
+
--------------------------------------
|
975
|
+
CarTest: test_search_car_with_tags_AND
|
976
|
+
--------------------------------------
|
977
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
978
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
979
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.4ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
980
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.886552"]]
|
981
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
982
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.5ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
983
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
984
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
985
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
986
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
987
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
988
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:52:50.976396"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
989
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
990
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
991
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
992
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:52:50.981756"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
993
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
994
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
995
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
996
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
997
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_012db98 ON cars_taggings_012db98.taggable_id = cars.id AND cars_taggings_012db98.taggable_type = 'Car' AND cars_taggings_012db98.tag_id = 1 JOIN taggings cars_taggings_21addc0 ON cars_taggings_21addc0.taggable_id = cars.id AND cars_taggings_21addc0.taggable_type = 'Car' AND cars_taggings_21addc0.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
998
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
999
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1000
|
+
-------------------------------------
|
1001
|
+
CarTest: test_search_car_with_tags_OR
|
1002
|
+
-------------------------------------
|
1003
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1004
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1005
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1006
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-11-17 12:52:50.990215"]]
|
1007
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1008
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
1009
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
1010
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
1011
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
1012
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1013
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1014
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 12:52:50.995097"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1015
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
1016
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
1017
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1018
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 12:52:50.997303"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1019
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
1020
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
1021
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1022
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
1023
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_4ecff3a ON cars_taggings_4ecff3a.taggable_id = cars.id AND cars_taggings_4ecff3a.taggable_type = 'Car' WHERE (cars_taggings_4ecff3a.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
1024
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1025
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1026
|
+
-------------------------------------
|
1027
|
+
CarTest: test_search_car_with_through
|
1028
|
+
-------------------------------------
|
1029
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
1030
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1031
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
1032
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1033
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1034
|
+
-------------------------------------------------------
|
1035
|
+
SearchableModelsTest: test_module_is_correctly_included
|
1036
|
+
-------------------------------------------------------
|
1037
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1038
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1039
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1040
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1041
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "cars"
|
1042
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-11-17 12:56:34', '2014-11-17 12:56:34', 835429954, 972975755)[0m
|
1043
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-11-17 12:56:34', '2014-11-17 12:56:34', 443394774, 972975755)
|
1044
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-11-17 12:56:34', '2014-11-17 12:56:34', 131351955, 266440024)[0m
|
1045
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "components"
|
1046
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-11-17 12:56:34', '2014-11-17 12:56:34', 1012443712, 665974588)[0m
|
1047
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-11-17 12:56:34', '2014-11-17 12:56:34', 402564824, 202898348)
|
1048
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-11-17 12:56:34', '2014-11-17 12:56:34', 172444051, 296621295)[0m
|
1049
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "doors"
|
1050
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 546177811, 835429954, 1012443712)[0m
|
1051
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 187174789, 443394774, 402564824)
|
1052
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 378659014, 131351955, 172444051)[0m
|
1053
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
1054
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 972975755)[0m
|
1055
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 266440024)
|
1056
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
1057
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 665974588)
|
1058
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 202898348)[0m
|
1059
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 296621295)
|
1060
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
1061
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1062
|
+
-------------------------------------------------------
|
1063
|
+
SearchableModelsTest: test_module_is_correctly_included
|
1064
|
+
-------------------------------------------------------
|
1065
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1066
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1067
|
+
------------------------------------------
|
1068
|
+
CarTest: test_search_car_with_belong_to_id
|
1069
|
+
------------------------------------------
|
1070
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
1071
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1072
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
1073
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1074
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1075
|
+
------------------------------------------
|
1076
|
+
CarTest: test_search_car_with_deep_through
|
1077
|
+
------------------------------------------
|
1078
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
1079
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1080
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
1081
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1082
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1083
|
+
----------------------------------
|
1084
|
+
CarTest: test_search_car_with_enum
|
1085
|
+
----------------------------------
|
1086
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1087
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
1088
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1089
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1090
|
+
------------------------------------------
|
1091
|
+
CarTest: test_search_car_with_exact_search
|
1092
|
+
------------------------------------------
|
1093
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1094
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
1095
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1096
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1097
|
+
-------------------------------------------------------------
|
1098
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
1099
|
+
-------------------------------------------------------------
|
1100
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1101
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
1102
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1103
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1104
|
+
-------------------------------------------------------
|
1105
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
1106
|
+
-------------------------------------------------------
|
1107
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1108
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
1109
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1110
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1111
|
+
------------------------------------------------------------------------
|
1112
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
1113
|
+
------------------------------------------------------------------------
|
1114
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1115
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
1116
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1117
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1118
|
+
----------------------------------------
|
1119
|
+
CarTest: test_search_car_with_i18n_field
|
1120
|
+
----------------------------------------
|
1121
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1122
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1123
|
+
[1m[36mCar::Translation Load (1.2ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
1124
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.839321"]]
|
1125
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-11-17 12:56:34.845921"], ["locale", "en"], ["updated_at", "2014-11-17 12:56:34.845921"]]
|
1126
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1127
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.851430' WHERE "cars"."id" = 131351955[0m
|
1128
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1129
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1130
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.854741"]]
|
1131
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-11-17 12:56:34.857446"], ["locale", "fr"], ["updated_at", "2014-11-17 12:56:34.857446"]]
|
1132
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1133
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.858934' WHERE "cars"."id" = 131351955[0m
|
1134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1136
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.860693"]]
|
1137
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-11-17 12:56:34.861976"], ["locale", "es"], ["updated_at", "2014-11-17 12:56:34.861976"]]
|
1138
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1139
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.863278' WHERE "cars"."id" = 131351955[0m
|
1140
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1141
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1142
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.865729"]]
|
1143
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-11-17 12:56:34.868189"], ["locale", "pt"], ["updated_at", "2014-11-17 12:56:34.868189"]]
|
1144
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1145
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.869539' WHERE "cars"."id" = 131351955[0m
|
1146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.871193"]]
|
1149
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 12:56:34.872707"]]
|
1150
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.873629' WHERE "cars"."id" = 131351955
|
1151
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1152
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
1153
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1155
|
+
-----------------------------------
|
1156
|
+
CarTest: test_search_car_with_scope
|
1157
|
+
-----------------------------------
|
1158
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1159
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
1160
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1162
|
+
--------------------------------------
|
1163
|
+
CarTest: test_search_car_with_tags_AND
|
1164
|
+
--------------------------------------
|
1165
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1166
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1167
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.5ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1168
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.891509"]]
|
1169
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
1170
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.4ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
1171
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
1172
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
1173
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
1174
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1175
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1176
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:56:35.001521"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1177
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
1178
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
1179
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1180
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:56:35.008810"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1181
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
1182
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
1183
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1184
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.3ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1185
|
+
[1m[36mCar Load (0.4ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_027057e ON cars_taggings_027057e.taggable_id = cars.id AND cars_taggings_027057e.taggable_type = 'Car' AND cars_taggings_027057e.tag_id = 1 JOIN taggings cars_taggings_24ebcda ON cars_taggings_24ebcda.taggable_id = cars.id AND cars_taggings_24ebcda.taggable_type = 'Car' AND cars_taggings_24ebcda.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
1186
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1187
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1188
|
+
-------------------------------------
|
1189
|
+
CarTest: test_search_car_with_tags_OR
|
1190
|
+
-------------------------------------
|
1191
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1192
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1193
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1194
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-11-17 12:56:35.021295"]]
|
1195
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1196
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
1197
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
1198
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
1199
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
1200
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1201
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1202
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 12:56:35.027039"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1203
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
1204
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
1205
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1206
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 12:56:35.029627"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1207
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
1208
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
1209
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1210
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
1211
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_f6cc493 ON cars_taggings_f6cc493.taggable_id = cars.id AND cars_taggings_f6cc493.taggable_type = 'Car' WHERE (cars_taggings_f6cc493.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
1212
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1214
|
+
-------------------------------------
|
1215
|
+
CarTest: test_search_car_with_through
|
1216
|
+
-------------------------------------
|
1217
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
1218
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1219
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
1220
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1221
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1222
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1224
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
1225
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-11-17 12:59:14', '2014-11-17 12:59:14', 835429954, 972975755)[0m
|
1226
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-11-17 12:59:14', '2014-11-17 12:59:14', 443394774, 972975755)
|
1227
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-11-17 12:59:14', '2014-11-17 12:59:14', 131351955, 266440024)[0m
|
1228
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
1229
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-11-17 12:59:14', '2014-11-17 12:59:14', 1012443712, 665974588)[0m
|
1230
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-11-17 12:59:14', '2014-11-17 12:59:14', 402564824, 202898348)
|
1231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-11-17 12:59:14', '2014-11-17 12:59:14', 172444051, 296621295)[0m
|
1232
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
1233
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 546177811, 835429954, 1012443712)[0m
|
1234
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 187174789, 443394774, 402564824)
|
1235
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 378659014, 131351955, 172444051)[0m
|
1236
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
1237
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 972975755)[0m
|
1238
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 266440024)
|
1239
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
1240
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 665974588)
|
1241
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 202898348)[0m
|
1242
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 296621295)
|
1243
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
1244
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1245
|
+
------------------------------------------
|
1246
|
+
CarTest: test_search_car_with_belong_to_id
|
1247
|
+
------------------------------------------
|
1248
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
1249
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1250
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
1251
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1253
|
+
------------------------------------------
|
1254
|
+
CarTest: test_search_car_with_deep_through
|
1255
|
+
------------------------------------------
|
1256
|
+
[1m[35mProvider Load (0.2ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
1257
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1258
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
1259
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1260
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1261
|
+
----------------------------------
|
1262
|
+
CarTest: test_search_car_with_enum
|
1263
|
+
----------------------------------
|
1264
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1265
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
1266
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1267
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1268
|
+
------------------------------------------
|
1269
|
+
CarTest: test_search_car_with_exact_search
|
1270
|
+
------------------------------------------
|
1271
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1272
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
1273
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1274
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1275
|
+
-------------------------------------------------------------
|
1276
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
1277
|
+
-------------------------------------------------------------
|
1278
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1279
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
1280
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1281
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1282
|
+
-------------------------------------------------------
|
1283
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
1284
|
+
-------------------------------------------------------
|
1285
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1286
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
1287
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1288
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1289
|
+
------------------------------------------------------------------------
|
1290
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
1291
|
+
------------------------------------------------------------------------
|
1292
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1293
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
1294
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1296
|
+
----------------------------------------
|
1297
|
+
CarTest: test_search_car_with_i18n_field
|
1298
|
+
----------------------------------------
|
1299
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1301
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
1302
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.116427"]]
|
1303
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-11-17 12:59:14.121652"], ["locale", "en"], ["updated_at", "2014-11-17 12:59:14.121652"]]
|
1304
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1305
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.126831' WHERE "cars"."id" = 131351955[0m
|
1306
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1307
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1308
|
+
[1m[35mSQL (1.8ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.131127"]]
|
1309
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-11-17 12:59:14.135491"], ["locale", "fr"], ["updated_at", "2014-11-17 12:59:14.135491"]]
|
1310
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1311
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.138257' WHERE "cars"."id" = 131351955[0m
|
1312
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1313
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1314
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.139973"]]
|
1315
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-11-17 12:59:14.141140"], ["locale", "es"], ["updated_at", "2014-11-17 12:59:14.141140"]]
|
1316
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1317
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.142253' WHERE "cars"."id" = 131351955[0m
|
1318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1319
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1320
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.143670"]]
|
1321
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-11-17 12:59:14.144809"], ["locale", "pt"], ["updated_at", "2014-11-17 12:59:14.144809"]]
|
1322
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1323
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.145893' WHERE "cars"."id" = 131351955[0m
|
1324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1326
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.147158"]]
|
1327
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 12:59:14.148005"]]
|
1328
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.148445' WHERE "cars"."id" = 131351955
|
1329
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1330
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
1331
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1332
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1333
|
+
-----------------------------------
|
1334
|
+
CarTest: test_search_car_with_scope
|
1335
|
+
-----------------------------------
|
1336
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1337
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
1338
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1340
|
+
--------------------------------------
|
1341
|
+
CarTest: test_search_car_with_tags_AND
|
1342
|
+
--------------------------------------
|
1343
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1345
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1346
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.160407"]]
|
1347
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
1348
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
1349
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
1350
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
1351
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
1352
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1353
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1354
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:59:14.244558"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1355
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
1356
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
1357
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1358
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:59:14.247815"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1359
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
1360
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
1361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1362
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1363
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_869fb19 ON cars_taggings_869fb19.taggable_id = cars.id AND cars_taggings_869fb19.taggable_type = 'Car' AND cars_taggings_869fb19.tag_id = 1 JOIN taggings cars_taggings_935af4b ON cars_taggings_935af4b.taggable_id = cars.id AND cars_taggings_935af4b.taggable_type = 'Car' AND cars_taggings_935af4b.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
1364
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1366
|
+
-------------------------------------
|
1367
|
+
CarTest: test_search_car_with_tags_OR
|
1368
|
+
-------------------------------------
|
1369
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1372
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-11-17 12:59:14.255109"]]
|
1373
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1374
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
1375
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
1376
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
1377
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
1378
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1379
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1380
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 12:59:14.260025"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1381
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
1382
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
1383
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1384
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 12:59:14.262458"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1385
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
1386
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
1387
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1388
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
1389
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_9060bae ON cars_taggings_9060bae.taggable_id = cars.id AND cars_taggings_9060bae.taggable_type = 'Car' WHERE (cars_taggings_9060bae.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
1390
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1391
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1392
|
+
-------------------------------------
|
1393
|
+
CarTest: test_search_car_with_through
|
1394
|
+
-------------------------------------
|
1395
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
1396
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1397
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
1398
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1399
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1400
|
+
-------------------------------------------------------
|
1401
|
+
SearchableModelsTest: test_module_is_correctly_included
|
1402
|
+
-------------------------------------------------------
|
1403
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1404
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1405
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1407
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "cars"
|
1408
|
+
[1m[36mFixture Insert (0.9ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-11-17 13:04:54', '2014-11-17 13:04:54', 835429954, 972975755)[0m
|
1409
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-11-17 13:04:54', '2014-11-17 13:04:54', 443394774, 972975755)
|
1410
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-11-17 13:04:54', '2014-11-17 13:04:54', 131351955, 266440024)[0m
|
1411
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "components"
|
1412
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-11-17 13:04:54', '2014-11-17 13:04:54', 1012443712, 665974588)[0m
|
1413
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-11-17 13:04:54', '2014-11-17 13:04:54', 402564824, 202898348)
|
1414
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-11-17 13:04:54', '2014-11-17 13:04:54', 172444051, 296621295)[0m
|
1415
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "doors"
|
1416
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 546177811, 835429954, 1012443712)[0m
|
1417
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 187174789, 443394774, 402564824)
|
1418
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 378659014, 131351955, 172444051)[0m
|
1419
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
1420
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 972975755)[0m
|
1421
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 266440024)
|
1422
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
1423
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 665974588)
|
1424
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 202898348)[0m
|
1425
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 296621295)
|
1426
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
1427
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1428
|
+
------------------------------------------
|
1429
|
+
CarTest: test_search_car_with_belong_to_id
|
1430
|
+
------------------------------------------
|
1431
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
1432
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1433
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
1434
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1435
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1436
|
+
------------------------------------------
|
1437
|
+
CarTest: test_search_car_with_deep_through
|
1438
|
+
------------------------------------------
|
1439
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
1440
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1441
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
1442
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1443
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1444
|
+
----------------------------------
|
1445
|
+
CarTest: test_search_car_with_enum
|
1446
|
+
----------------------------------
|
1447
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1448
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
1449
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1450
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1451
|
+
------------------------------------------
|
1452
|
+
CarTest: test_search_car_with_exact_search
|
1453
|
+
------------------------------------------
|
1454
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1455
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
1456
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1457
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1458
|
+
-------------------------------------------------------------
|
1459
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
1460
|
+
-------------------------------------------------------------
|
1461
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1462
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
1463
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1464
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1465
|
+
-------------------------------------------------------
|
1466
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
1467
|
+
-------------------------------------------------------
|
1468
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1469
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
1470
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1472
|
+
------------------------------------------------------------------------
|
1473
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
1474
|
+
------------------------------------------------------------------------
|
1475
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1476
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
1477
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1478
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1479
|
+
----------------------------------------
|
1480
|
+
CarTest: test_search_car_with_i18n_field
|
1481
|
+
----------------------------------------
|
1482
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1484
|
+
[1m[36mCar::Translation Load (0.4ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
1485
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.632411"]]
|
1486
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-11-17 13:04:54.637700"], ["locale", "en"], ["updated_at", "2014-11-17 13:04:54.637700"]]
|
1487
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1488
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.642451' WHERE "cars"."id" = 131351955[0m
|
1489
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1490
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1491
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.645494"]]
|
1492
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-11-17 13:04:54.647873"], ["locale", "fr"], ["updated_at", "2014-11-17 13:04:54.647873"]]
|
1493
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1494
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.649118' WHERE "cars"."id" = 131351955[0m
|
1495
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1496
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1497
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.651504"]]
|
1498
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-11-17 13:04:54.653620"], ["locale", "es"], ["updated_at", "2014-11-17 13:04:54.653620"]]
|
1499
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1500
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.655030' WHERE "cars"."id" = 131351955[0m
|
1501
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1502
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1503
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.656664"]]
|
1504
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-11-17 13:04:54.657744"], ["locale", "pt"], ["updated_at", "2014-11-17 13:04:54.657744"]]
|
1505
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1506
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.658857' WHERE "cars"."id" = 131351955[0m
|
1507
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1508
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1509
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.660175"]]
|
1510
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 13:04:54.661047"]]
|
1511
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.661511' WHERE "cars"."id" = 131351955
|
1512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1513
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
1514
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1515
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1516
|
+
-----------------------------------
|
1517
|
+
CarTest: test_search_car_with_scope
|
1518
|
+
-----------------------------------
|
1519
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1520
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
1521
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1523
|
+
--------------------------------------
|
1524
|
+
CarTest: test_search_car_with_tags_AND
|
1525
|
+
--------------------------------------
|
1526
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1527
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1528
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.5ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1529
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.678994"]]
|
1530
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
1531
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.5ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
1532
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
1533
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
1534
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
1535
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1536
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1537
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 13:04:54.765718"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1538
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
1539
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
1540
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1541
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 13:04:54.770025"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1542
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
1543
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
1544
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1545
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1546
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_e136750 ON cars_taggings_e136750.taggable_id = cars.id AND cars_taggings_e136750.taggable_type = 'Car' AND cars_taggings_e136750.tag_id = 1 JOIN taggings cars_taggings_033a9da ON cars_taggings_033a9da.taggable_id = cars.id AND cars_taggings_033a9da.taggable_type = 'Car' AND cars_taggings_033a9da.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
1547
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1548
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1549
|
+
-------------------------------------
|
1550
|
+
CarTest: test_search_car_with_tags_OR
|
1551
|
+
-------------------------------------
|
1552
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1553
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1554
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1555
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-11-17 13:04:54.777090"]]
|
1556
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1557
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
1558
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
1559
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
1560
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
1561
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1562
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1563
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 13:04:54.782597"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1564
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
1565
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
1566
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1567
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-11-17 13:04:54.785582"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1568
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
1569
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
1570
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1571
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
1572
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_b7bcb92 ON cars_taggings_b7bcb92.taggable_id = cars.id AND cars_taggings_b7bcb92.taggable_type = 'Car' WHERE (cars_taggings_b7bcb92.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
1573
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1574
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1575
|
+
-------------------------------------
|
1576
|
+
CarTest: test_search_car_with_through
|
1577
|
+
-------------------------------------
|
1578
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
1579
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1580
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
1581
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1582
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1583
|
+
-------------------------------------------------------
|
1584
|
+
SearchableModelsTest: test_module_is_correctly_included
|
1585
|
+
-------------------------------------------------------
|
1586
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1587
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1588
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1589
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1590
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "cars"
|
1591
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:18:21', '2014-12-11 08:18:21', 835429954, 972975755)[0m
|
1592
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:18:21', '2014-12-11 08:18:21', 443394774, 972975755)
|
1593
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:18:21', '2014-12-11 08:18:21', 131351955, 266440024)[0m
|
1594
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "components"
|
1595
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:18:21', '2014-12-11 08:18:21', 1012443712, 665974588)[0m
|
1596
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:18:21', '2014-12-11 08:18:21', 402564824, 202898348)
|
1597
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-12-11 08:18:21', '2014-12-11 08:18:21', 172444051, 296621295)[0m
|
1598
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "doors"
|
1599
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 546177811, 835429954, 1012443712)[0m
|
1600
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 187174789, 443394774, 402564824)
|
1601
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 378659014, 131351955, 172444051)[0m
|
1602
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
1603
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 972975755)[0m
|
1604
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 266440024)
|
1605
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "providers"[0m
|
1606
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 665974588)
|
1607
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 202898348)[0m
|
1608
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 296621295)
|
1609
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
1610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1611
|
+
------------------------------------------
|
1612
|
+
CarTest: test_search_car_with_belong_to_id
|
1613
|
+
------------------------------------------
|
1614
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
1615
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1616
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
1617
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1618
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1619
|
+
------------------------------------------
|
1620
|
+
CarTest: test_search_car_with_deep_through
|
1621
|
+
------------------------------------------
|
1622
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
1623
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1624
|
+
[1m[35mCar Load (0.4ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
1625
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1627
|
+
----------------------------------
|
1628
|
+
CarTest: test_search_car_with_enum
|
1629
|
+
----------------------------------
|
1630
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1631
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
1632
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1633
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1634
|
+
------------------------------------------
|
1635
|
+
CarTest: test_search_car_with_exact_search
|
1636
|
+
------------------------------------------
|
1637
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1638
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
1639
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1640
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1641
|
+
-------------------------------------------------------------
|
1642
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
1643
|
+
-------------------------------------------------------------
|
1644
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1645
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
1646
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1647
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1648
|
+
-------------------------------------------------------
|
1649
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
1650
|
+
-------------------------------------------------------
|
1651
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1652
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
1653
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1655
|
+
------------------------------------------------------------------------
|
1656
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
1657
|
+
------------------------------------------------------------------------
|
1658
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1659
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
1660
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1661
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1662
|
+
----------------------------------------
|
1663
|
+
CarTest: test_search_car_with_i18n_field
|
1664
|
+
----------------------------------------
|
1665
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1666
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1667
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
1668
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.529847"]]
|
1669
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:18:21.535783"], ["locale", "en"], ["updated_at", "2014-12-11 08:18:21.535783"]]
|
1670
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1671
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.540828' WHERE "cars"."id" = 131351955[0m
|
1672
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1673
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1674
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.544058"]]
|
1675
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:18:21.546318"], ["locale", "fr"], ["updated_at", "2014-12-11 08:18:21.546318"]]
|
1676
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1677
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.547528' WHERE "cars"."id" = 131351955[0m
|
1678
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1679
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1680
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.548980"]]
|
1681
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:18:21.549967"], ["locale", "es"], ["updated_at", "2014-12-11 08:18:21.549967"]]
|
1682
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1683
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.551001' WHERE "cars"."id" = 131351955[0m
|
1684
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1685
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1686
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.552265"]]
|
1687
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:18:21.553619"], ["locale", "pt"], ["updated_at", "2014-12-11 08:18:21.553619"]]
|
1688
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1689
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.555677' WHERE "cars"."id" = 131351955[0m
|
1690
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1691
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1692
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.557714"]]
|
1693
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:18:21.559077"]]
|
1694
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.559786' WHERE "cars"."id" = 131351955
|
1695
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1696
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
1697
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1698
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1699
|
+
-----------------------------------
|
1700
|
+
CarTest: test_search_car_with_scope
|
1701
|
+
-----------------------------------
|
1702
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1703
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
1704
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1705
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1706
|
+
--------------------------------------
|
1707
|
+
CarTest: test_search_car_with_tags_AND
|
1708
|
+
--------------------------------------
|
1709
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1711
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1712
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.574259"]]
|
1713
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
1714
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
1715
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
1716
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
1717
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
1718
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1719
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1720
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:18:21.656111"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1721
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
1722
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
1723
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1724
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:18:21.660906"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1725
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
1726
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
1727
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1728
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1729
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_a771d9c ON cars_taggings_a771d9c.taggable_id = cars.id AND cars_taggings_a771d9c.taggable_type = 'Car' AND cars_taggings_a771d9c.tag_id = 1 JOIN taggings cars_taggings_8a959f5 ON cars_taggings_8a959f5.taggable_id = cars.id AND cars_taggings_8a959f5.taggable_type = 'Car' AND cars_taggings_8a959f5.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
1730
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1731
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1732
|
+
-------------------------------------
|
1733
|
+
CarTest: test_search_car_with_tags_OR
|
1734
|
+
-------------------------------------
|
1735
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1736
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1737
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1738
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:18:21.670491"]]
|
1739
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1740
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
1741
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
1742
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
1743
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
1744
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1745
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1746
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:18:21.676138"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1747
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
1748
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
1749
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1750
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:18:21.678852"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1751
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
1752
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
1753
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1754
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
1755
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_2351d1d ON cars_taggings_2351d1d.taggable_id = cars.id AND cars_taggings_2351d1d.taggable_type = 'Car' WHERE (cars_taggings_2351d1d.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
1756
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1757
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1758
|
+
-------------------------------------
|
1759
|
+
CarTest: test_search_car_with_through
|
1760
|
+
-------------------------------------
|
1761
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
1762
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1763
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
1764
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1765
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1766
|
+
-------------------------------------------------------
|
1767
|
+
SearchableModelsTest: test_module_is_correctly_included
|
1768
|
+
-------------------------------------------------------
|
1769
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1770
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1771
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1772
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1773
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
1774
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:19:49', '2014-12-11 08:19:49', 835429954, 972975755)[0m
|
1775
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:19:49', '2014-12-11 08:19:49', 443394774, 972975755)
|
1776
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:19:49', '2014-12-11 08:19:49', 131351955, 266440024)[0m
|
1777
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
1778
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:19:49', '2014-12-11 08:19:49', 1012443712, 665974588)[0m
|
1779
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:19:49', '2014-12-11 08:19:49', 402564824, 202898348)
|
1780
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-12-11 08:19:49', '2014-12-11 08:19:49', 172444051, 296621295)[0m
|
1781
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
1782
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 546177811, 835429954, 1012443712)[0m
|
1783
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 187174789, 443394774, 402564824)
|
1784
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 378659014, 131351955, 172444051)[0m
|
1785
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
1786
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 972975755)[0m
|
1787
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 266440024)
|
1788
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
1789
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 665974588)
|
1790
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 202898348)[0m
|
1791
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 296621295)
|
1792
|
+
[1m[36m (5.0ms)[0m [1mcommit transaction[0m
|
1793
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1794
|
+
-------------------------------------------------------
|
1795
|
+
SearchableModelsTest: test_module_is_correctly_included
|
1796
|
+
-------------------------------------------------------
|
1797
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1798
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1799
|
+
------------------------------------------
|
1800
|
+
CarTest: test_search_car_with_belong_to_id
|
1801
|
+
------------------------------------------
|
1802
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
1803
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1804
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
1805
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1806
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1807
|
+
------------------------------------------
|
1808
|
+
CarTest: test_search_car_with_deep_through
|
1809
|
+
------------------------------------------
|
1810
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
1811
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1812
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
1813
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1814
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1815
|
+
----------------------------------
|
1816
|
+
CarTest: test_search_car_with_enum
|
1817
|
+
----------------------------------
|
1818
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1819
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
1820
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1821
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1822
|
+
------------------------------------------
|
1823
|
+
CarTest: test_search_car_with_exact_search
|
1824
|
+
------------------------------------------
|
1825
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1826
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
1827
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1828
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1829
|
+
-------------------------------------------------------------
|
1830
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
1831
|
+
-------------------------------------------------------------
|
1832
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1833
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
1834
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1835
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1836
|
+
-------------------------------------------------------
|
1837
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
1838
|
+
-------------------------------------------------------
|
1839
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1840
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
1841
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1842
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1843
|
+
------------------------------------------------------------------------
|
1844
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
1845
|
+
------------------------------------------------------------------------
|
1846
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1847
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
1848
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1849
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1850
|
+
----------------------------------------
|
1851
|
+
CarTest: test_search_car_with_i18n_field
|
1852
|
+
----------------------------------------
|
1853
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1854
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1855
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
1856
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.280780"]]
|
1857
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:19:49.285917"], ["locale", "en"], ["updated_at", "2014-12-11 08:19:49.285917"]]
|
1858
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1859
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.289189' WHERE "cars"."id" = 131351955[0m
|
1860
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1862
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.291151"]]
|
1863
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:19:49.293548"], ["locale", "fr"], ["updated_at", "2014-12-11 08:19:49.293548"]]
|
1864
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1865
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.294784' WHERE "cars"."id" = 131351955[0m
|
1866
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1867
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1868
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.296252"]]
|
1869
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:19:49.297409"], ["locale", "es"], ["updated_at", "2014-12-11 08:19:49.297409"]]
|
1870
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1871
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.298569' WHERE "cars"."id" = 131351955[0m
|
1872
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1874
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.300064"]]
|
1875
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:19:49.301128"], ["locale", "pt"], ["updated_at", "2014-12-11 08:19:49.301128"]]
|
1876
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1877
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.302213' WHERE "cars"."id" = 131351955[0m
|
1878
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1879
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1880
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.303820"]]
|
1881
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:19:49.304857"]]
|
1882
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.305391' WHERE "cars"."id" = 131351955
|
1883
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1884
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
1885
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1886
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1887
|
+
-----------------------------------
|
1888
|
+
CarTest: test_search_car_with_scope
|
1889
|
+
-----------------------------------
|
1890
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1891
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
1892
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1893
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1894
|
+
--------------------------------------
|
1895
|
+
CarTest: test_search_car_with_tags_AND
|
1896
|
+
--------------------------------------
|
1897
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1898
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1899
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1900
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.317395"]]
|
1901
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
1902
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
1903
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
1904
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
1905
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
1906
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1907
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1908
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:19:49.403811"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1909
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
1910
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
1911
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
1912
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:19:49.407296"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1913
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
1914
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
1915
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1916
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1917
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_6a58ade ON cars_taggings_6a58ade.taggable_id = cars.id AND cars_taggings_6a58ade.taggable_type = 'Car' AND cars_taggings_6a58ade.tag_id = 1 JOIN taggings cars_taggings_69b5fff ON cars_taggings_69b5fff.taggable_id = cars.id AND cars_taggings_69b5fff.taggable_type = 'Car' AND cars_taggings_69b5fff.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
1918
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1920
|
+
-------------------------------------
|
1921
|
+
CarTest: test_search_car_with_tags_OR
|
1922
|
+
-------------------------------------
|
1923
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1924
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1925
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1926
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:19:49.414309"]]
|
1927
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
1928
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
1929
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
1930
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
1931
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
1932
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1933
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1934
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:19:49.419784"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1935
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
1936
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
1937
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
1938
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:19:49.422511"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
1939
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
1940
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
1941
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1942
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
1943
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_43257d1 ON cars_taggings_43257d1.taggable_id = cars.id AND cars_taggings_43257d1.taggable_type = 'Car' WHERE (cars_taggings_43257d1.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
1944
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1945
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1946
|
+
-------------------------------------
|
1947
|
+
CarTest: test_search_car_with_through
|
1948
|
+
-------------------------------------
|
1949
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
1950
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1951
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
1952
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1953
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1954
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1955
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1956
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
1957
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:21:15', '2014-12-11 08:21:15', 835429954, 972975755)[0m
|
1958
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:21:15', '2014-12-11 08:21:15', 443394774, 972975755)
|
1959
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:21:15', '2014-12-11 08:21:15', 131351955, 266440024)[0m
|
1960
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
1961
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:21:15', '2014-12-11 08:21:15', 1012443712, 665974588)[0m
|
1962
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:21:15', '2014-12-11 08:21:15', 402564824, 202898348)
|
1963
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-12-11 08:21:15', '2014-12-11 08:21:15', 172444051, 296621295)[0m
|
1964
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
1965
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 546177811, 835429954, 1012443712)[0m
|
1966
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 187174789, 443394774, 402564824)
|
1967
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 378659014, 131351955, 172444051)[0m
|
1968
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
1969
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 972975755)[0m
|
1970
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 266440024)
|
1971
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
1972
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 665974588)
|
1973
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 202898348)[0m
|
1974
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 296621295)
|
1975
|
+
[1m[36m (5.6ms)[0m [1mcommit transaction[0m
|
1976
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1977
|
+
------------------------------------------
|
1978
|
+
CarTest: test_search_car_with_belong_to_id
|
1979
|
+
------------------------------------------
|
1980
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
1981
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
1982
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
1983
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1984
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1985
|
+
------------------------------------------
|
1986
|
+
CarTest: test_search_car_with_deep_through
|
1987
|
+
------------------------------------------
|
1988
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
1989
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1990
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
1991
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1992
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1993
|
+
----------------------------------
|
1994
|
+
CarTest: test_search_car_with_enum
|
1995
|
+
----------------------------------
|
1996
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
1997
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
1998
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1999
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2000
|
+
------------------------------------------
|
2001
|
+
CarTest: test_search_car_with_exact_search
|
2002
|
+
------------------------------------------
|
2003
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2004
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
2005
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2006
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2007
|
+
-------------------------------------------------------------
|
2008
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
2009
|
+
-------------------------------------------------------------
|
2010
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2011
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
2012
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2013
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2014
|
+
-------------------------------------------------------
|
2015
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
2016
|
+
-------------------------------------------------------
|
2017
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2018
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
2019
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2020
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2021
|
+
------------------------------------------------------------------------
|
2022
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
2023
|
+
------------------------------------------------------------------------
|
2024
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2025
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
2026
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2028
|
+
----------------------------------------
|
2029
|
+
CarTest: test_search_car_with_i18n_field
|
2030
|
+
----------------------------------------
|
2031
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2032
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2033
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
2034
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.482096"]]
|
2035
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:21:15.487369"], ["locale", "en"], ["updated_at", "2014-12-11 08:21:15.487369"]]
|
2036
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2037
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.490853' WHERE "cars"."id" = 131351955[0m
|
2038
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2039
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2040
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.493062"]]
|
2041
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:21:15.495515"], ["locale", "fr"], ["updated_at", "2014-12-11 08:21:15.495515"]]
|
2042
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2043
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.497263' WHERE "cars"."id" = 131351955[0m
|
2044
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2045
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2046
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.499022"]]
|
2047
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:21:15.500476"], ["locale", "es"], ["updated_at", "2014-12-11 08:21:15.500476"]]
|
2048
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2049
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.501967' WHERE "cars"."id" = 131351955[0m
|
2050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2052
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.503585"]]
|
2053
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:21:15.504743"], ["locale", "pt"], ["updated_at", "2014-12-11 08:21:15.504743"]]
|
2054
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2055
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.506360' WHERE "cars"."id" = 131351955[0m
|
2056
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2057
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2058
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.508357"]]
|
2059
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:21:15.509671"]]
|
2060
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.510284' WHERE "cars"."id" = 131351955
|
2061
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2062
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
2063
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2064
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2065
|
+
-----------------------------------
|
2066
|
+
CarTest: test_search_car_with_scope
|
2067
|
+
-----------------------------------
|
2068
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2069
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
2070
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2072
|
+
--------------------------------------
|
2073
|
+
CarTest: test_search_car_with_tags_AND
|
2074
|
+
--------------------------------------
|
2075
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2076
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2077
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2078
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.525740"]]
|
2079
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
2080
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
2081
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
2082
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.0ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
2083
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
2084
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2085
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2086
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:21:15.605002"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2087
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
2088
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
2089
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2090
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:21:15.608515"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2091
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
2092
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
2093
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2094
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2095
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_1b97116 ON cars_taggings_1b97116.taggable_id = cars.id AND cars_taggings_1b97116.taggable_type = 'Car' AND cars_taggings_1b97116.tag_id = 1 JOIN taggings cars_taggings_108f645 ON cars_taggings_108f645.taggable_id = cars.id AND cars_taggings_108f645.taggable_type = 'Car' AND cars_taggings_108f645.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
2096
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2097
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2098
|
+
-------------------------------------
|
2099
|
+
CarTest: test_search_car_with_tags_OR
|
2100
|
+
-------------------------------------
|
2101
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2102
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2103
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2104
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:21:15.616845"]]
|
2105
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2106
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
2107
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
2108
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
2109
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
2110
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2111
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2112
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:21:15.624026"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2113
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
2114
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
2115
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2116
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:21:15.627349"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2117
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
2118
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
2119
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2120
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
2121
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_d8542ee ON cars_taggings_d8542ee.taggable_id = cars.id AND cars_taggings_d8542ee.taggable_type = 'Car' WHERE (cars_taggings_d8542ee.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
2122
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2123
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2124
|
+
-------------------------------------
|
2125
|
+
CarTest: test_search_car_with_through
|
2126
|
+
-------------------------------------
|
2127
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2128
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2129
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
2130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2132
|
+
--------------------------------------------------
|
2133
|
+
CarTest: test_search_car_with_through_on_any_field
|
2134
|
+
--------------------------------------------------
|
2135
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
2136
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2137
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" ORDER BY "cars"."id" ASC
|
2138
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2140
|
+
-------------------------------------------------------
|
2141
|
+
SearchableModelsTest: test_module_is_correctly_included
|
2142
|
+
-------------------------------------------------------
|
2143
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2144
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2145
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2146
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2147
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
2148
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:22:31', '2014-12-11 08:22:31', 835429954, 972975755)[0m
|
2149
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:22:31', '2014-12-11 08:22:31', 443394774, 972975755)
|
2150
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:22:31', '2014-12-11 08:22:31', 131351955, 266440024)[0m
|
2151
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
2152
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:22:31', '2014-12-11 08:22:31', 1012443712, 665974588)[0m
|
2153
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:22:31', '2014-12-11 08:22:31', 402564824, 202898348)
|
2154
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-12-11 08:22:31', '2014-12-11 08:22:31', 172444051, 296621295)[0m
|
2155
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
2156
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 546177811, 835429954, 1012443712)[0m
|
2157
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 187174789, 443394774, 402564824)
|
2158
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 378659014, 131351955, 172444051)[0m
|
2159
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2160
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 972975755)[0m
|
2161
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 266440024)
|
2162
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2163
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 665974588)
|
2164
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 202898348)[0m
|
2165
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 296621295)
|
2166
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
2167
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2168
|
+
------------------------------------------
|
2169
|
+
CarTest: test_search_car_with_belong_to_id
|
2170
|
+
------------------------------------------
|
2171
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
2172
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2173
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
2174
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2175
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2176
|
+
------------------------------------------
|
2177
|
+
CarTest: test_search_car_with_deep_through
|
2178
|
+
------------------------------------------
|
2179
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
2180
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2181
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
2182
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2183
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2184
|
+
----------------------------------
|
2185
|
+
CarTest: test_search_car_with_enum
|
2186
|
+
----------------------------------
|
2187
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2188
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
2189
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2190
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2191
|
+
------------------------------------------
|
2192
|
+
CarTest: test_search_car_with_exact_search
|
2193
|
+
------------------------------------------
|
2194
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2195
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
2196
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2197
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2198
|
+
-------------------------------------------------------------
|
2199
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
2200
|
+
-------------------------------------------------------------
|
2201
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2202
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
2203
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2204
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2205
|
+
-------------------------------------------------------
|
2206
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
2207
|
+
-------------------------------------------------------
|
2208
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2209
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
2210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2211
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2212
|
+
------------------------------------------------------------------------
|
2213
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
2214
|
+
------------------------------------------------------------------------
|
2215
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2216
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
2217
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2218
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2219
|
+
----------------------------------------
|
2220
|
+
CarTest: test_search_car_with_i18n_field
|
2221
|
+
----------------------------------------
|
2222
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2223
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2224
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
2225
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.318435"]]
|
2226
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:22:31.324483"], ["locale", "en"], ["updated_at", "2014-12-11 08:22:31.324483"]]
|
2227
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2228
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.331005' WHERE "cars"."id" = 131351955[0m
|
2229
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2230
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2231
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.336747"]]
|
2232
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:22:31.339101"], ["locale", "fr"], ["updated_at", "2014-12-11 08:22:31.339101"]]
|
2233
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2234
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.340370' WHERE "cars"."id" = 131351955[0m
|
2235
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2236
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2237
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.341862"]]
|
2238
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:22:31.342917"], ["locale", "es"], ["updated_at", "2014-12-11 08:22:31.342917"]]
|
2239
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2240
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.343991' WHERE "cars"."id" = 131351955[0m
|
2241
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2243
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.345440"]]
|
2244
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:22:31.346481"], ["locale", "pt"], ["updated_at", "2014-12-11 08:22:31.346481"]]
|
2245
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2246
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.347513' WHERE "cars"."id" = 131351955[0m
|
2247
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2248
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2249
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.348880"]]
|
2250
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:22:31.350222"]]
|
2251
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.350937' WHERE "cars"."id" = 131351955
|
2252
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2253
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
2254
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2256
|
+
-----------------------------------
|
2257
|
+
CarTest: test_search_car_with_scope
|
2258
|
+
-----------------------------------
|
2259
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2260
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
2261
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2263
|
+
--------------------------------------
|
2264
|
+
CarTest: test_search_car_with_tags_AND
|
2265
|
+
--------------------------------------
|
2266
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2267
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2268
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2269
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.366871"]]
|
2270
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
2271
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
2272
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
2273
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.0ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
2274
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
2275
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2276
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2277
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:22:31.445468"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2278
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
2279
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
2280
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2281
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:22:31.449011"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2282
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
2283
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
2284
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2286
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_8f8afdd ON cars_taggings_8f8afdd.taggable_id = cars.id AND cars_taggings_8f8afdd.taggable_type = 'Car' AND cars_taggings_8f8afdd.tag_id = 1 JOIN taggings cars_taggings_dbabd57 ON cars_taggings_dbabd57.taggable_id = cars.id AND cars_taggings_dbabd57.taggable_type = 'Car' AND cars_taggings_dbabd57.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
2287
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2288
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2289
|
+
-------------------------------------
|
2290
|
+
CarTest: test_search_car_with_tags_OR
|
2291
|
+
-------------------------------------
|
2292
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2293
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2294
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2295
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:22:31.456183"]]
|
2296
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2297
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
2298
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
2299
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
2300
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
2301
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2302
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2303
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:22:31.461596"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2304
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
2305
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
2306
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2307
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:22:31.464003"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2308
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
2309
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
2310
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2311
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
2312
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_b110ab8 ON cars_taggings_b110ab8.taggable_id = cars.id AND cars_taggings_b110ab8.taggable_type = 'Car' WHERE (cars_taggings_b110ab8.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
2313
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2314
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2315
|
+
-------------------------------------
|
2316
|
+
CarTest: test_search_car_with_through
|
2317
|
+
-------------------------------------
|
2318
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2319
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2320
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
2321
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2322
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2323
|
+
--------------------------------------------------
|
2324
|
+
CarTest: test_search_car_with_through_on_any_field
|
2325
|
+
--------------------------------------------------
|
2326
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
2327
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2328
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567890987654321' ORDER BY "cars"."id" ASC
|
2329
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2331
|
+
-------------------------------------------------------
|
2332
|
+
SearchableModelsTest: test_module_is_correctly_included
|
2333
|
+
-------------------------------------------------------
|
2334
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2335
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2336
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2337
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2338
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
2339
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:23:27', '2014-12-11 08:23:27', 835429954, 972975755)[0m
|
2340
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:23:27', '2014-12-11 08:23:27', 443394774, 972975755)
|
2341
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:23:27', '2014-12-11 08:23:27', 131351955, 266440024)[0m
|
2342
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
2343
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:23:27', '2014-12-11 08:23:27', 1012443712, 665974588)[0m
|
2344
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:23:27', '2014-12-11 08:23:27', 402564824, 202898348)
|
2345
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-12-11 08:23:27', '2014-12-11 08:23:27', 172444051, 296621295)[0m
|
2346
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
2347
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 546177811, 835429954, 1012443712)[0m
|
2348
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 187174789, 443394774, 402564824)
|
2349
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 378659014, 131351955, 172444051)[0m
|
2350
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2351
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 972975755)[0m
|
2352
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 266440024)
|
2353
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2354
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 665974588)
|
2355
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 202898348)[0m
|
2356
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 296621295)
|
2357
|
+
[1m[36m (5.2ms)[0m [1mcommit transaction[0m
|
2358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2359
|
+
--------------------------------------------------
|
2360
|
+
CarTest: test_search_car_with_through_on_any_field
|
2361
|
+
--------------------------------------------------
|
2362
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2363
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2364
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567890987654321' ORDER BY "cars"."id" ASC[0m
|
2365
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2366
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2367
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2369
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
2370
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:23:55', '2014-12-11 08:23:55', 835429954, 972975755)[0m
|
2371
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:23:55', '2014-12-11 08:23:55', 443394774, 972975755)
|
2372
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:23:55', '2014-12-11 08:23:55', 131351955, 266440024)[0m
|
2373
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "components"
|
2374
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:23:55', '2014-12-11 08:23:55', 1012443712, 665974588)[0m
|
2375
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:23:55', '2014-12-11 08:23:55', 402564824, 202898348)
|
2376
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567890987654321, '2014-12-11 08:23:55', '2014-12-11 08:23:55', 172444051, 296621295)[0m
|
2377
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "doors"
|
2378
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 546177811, 835429954, 1012443712)[0m
|
2379
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 187174789, 443394774, 402564824)
|
2380
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 378659014, 131351955, 172444051)[0m
|
2381
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2382
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 972975755)[0m
|
2383
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 266440024)
|
2384
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2385
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 665974588)
|
2386
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 202898348)[0m
|
2387
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 296621295)
|
2388
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
2389
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2390
|
+
--------------------------------------------------
|
2391
|
+
CarTest: test_search_car_with_through_on_any_field
|
2392
|
+
--------------------------------------------------
|
2393
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2394
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2395
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567890987654321' ORDER BY "cars"."id" ASC[0m
|
2396
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2397
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2398
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2399
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2400
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
2401
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:24:37', '2014-12-11 08:24:37', 835429954, 972975755)[0m
|
2402
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:24:37', '2014-12-11 08:24:37', 443394774, 972975755)
|
2403
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:24:37', '2014-12-11 08:24:37', 131351955, 266440024)[0m
|
2404
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
2405
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:24:37', '2014-12-11 08:24:37', 1012443712, 665974588)[0m
|
2406
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:24:37', '2014-12-11 08:24:37', 402564824, 202898348)
|
2407
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:24:37', '2014-12-11 08:24:37', 172444051, 296621295)[0m
|
2408
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
2409
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 546177811, 835429954, 1012443712)[0m
|
2410
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 187174789, 443394774, 402564824)
|
2411
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 378659014, 131351955, 172444051)[0m
|
2412
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2413
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 972975755)[0m
|
2414
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 266440024)
|
2415
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2416
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 665974588)
|
2417
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 202898348)[0m
|
2418
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 296621295)
|
2419
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
2420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2421
|
+
--------------------------------------------------
|
2422
|
+
CarTest: test_search_car_with_through_on_any_field
|
2423
|
+
--------------------------------------------------
|
2424
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2425
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2426
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1.23456765432123e+21' ORDER BY "cars"."id" ASC[0m
|
2427
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2428
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2429
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2430
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2431
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
2432
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:24:42', '2014-12-11 08:24:42', 835429954, 972975755)[0m
|
2433
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:24:42', '2014-12-11 08:24:42', 443394774, 972975755)
|
2434
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:24:42', '2014-12-11 08:24:42', 131351955, 266440024)[0m
|
2435
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
2436
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:24:42', '2014-12-11 08:24:42', 1012443712, 665974588)[0m
|
2437
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:24:42', '2014-12-11 08:24:42', 402564824, 202898348)
|
2438
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:24:42', '2014-12-11 08:24:42', 172444051, 296621295)[0m
|
2439
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
2440
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 546177811, 835429954, 1012443712)[0m
|
2441
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 187174789, 443394774, 402564824)
|
2442
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 378659014, 131351955, 172444051)[0m
|
2443
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2444
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 972975755)[0m
|
2445
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 266440024)
|
2446
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2447
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 665974588)
|
2448
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 202898348)[0m
|
2449
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 296621295)
|
2450
|
+
[1m[36m (4.8ms)[0m [1mcommit transaction[0m
|
2451
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2452
|
+
-------------------------------------------------------
|
2453
|
+
SearchableModelsTest: test_module_is_correctly_included
|
2454
|
+
-------------------------------------------------------
|
2455
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2457
|
+
------------------------------------------
|
2458
|
+
CarTest: test_search_car_with_belong_to_id
|
2459
|
+
------------------------------------------
|
2460
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
2461
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2462
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
2463
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2464
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2465
|
+
------------------------------------------
|
2466
|
+
CarTest: test_search_car_with_deep_through
|
2467
|
+
------------------------------------------
|
2468
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
2469
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2470
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
2471
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2472
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2473
|
+
----------------------------------
|
2474
|
+
CarTest: test_search_car_with_enum
|
2475
|
+
----------------------------------
|
2476
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2477
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
2478
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2479
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2480
|
+
------------------------------------------
|
2481
|
+
CarTest: test_search_car_with_exact_search
|
2482
|
+
------------------------------------------
|
2483
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2484
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
2485
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2486
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2487
|
+
-------------------------------------------------------------
|
2488
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
2489
|
+
-------------------------------------------------------------
|
2490
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2491
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
2492
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2493
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2494
|
+
-------------------------------------------------------
|
2495
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
2496
|
+
-------------------------------------------------------
|
2497
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2498
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
2499
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2500
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2501
|
+
------------------------------------------------------------------------
|
2502
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
2503
|
+
------------------------------------------------------------------------
|
2504
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2505
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
2506
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2507
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2508
|
+
----------------------------------------
|
2509
|
+
CarTest: test_search_car_with_i18n_field
|
2510
|
+
----------------------------------------
|
2511
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2512
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2513
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
2514
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.084171"]]
|
2515
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:24:42.089420"], ["locale", "en"], ["updated_at", "2014-12-11 08:24:42.089420"]]
|
2516
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2517
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.092762' WHERE "cars"."id" = 131351955[0m
|
2518
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2519
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2520
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.095044"]]
|
2521
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:24:42.097983"], ["locale", "fr"], ["updated_at", "2014-12-11 08:24:42.097983"]]
|
2522
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2523
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.099830' WHERE "cars"."id" = 131351955[0m
|
2524
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2525
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2526
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.102186"]]
|
2527
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:24:42.103744"], ["locale", "es"], ["updated_at", "2014-12-11 08:24:42.103744"]]
|
2528
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2529
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.105395' WHERE "cars"."id" = 131351955[0m
|
2530
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2531
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2532
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.107460"]]
|
2533
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:24:42.109068"], ["locale", "pt"], ["updated_at", "2014-12-11 08:24:42.109068"]]
|
2534
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2535
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.110691' WHERE "cars"."id" = 131351955[0m
|
2536
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2537
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2538
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.112687"]]
|
2539
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:24:42.114015"]]
|
2540
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.114650' WHERE "cars"."id" = 131351955
|
2541
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2542
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
2543
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2545
|
+
-----------------------------------
|
2546
|
+
CarTest: test_search_car_with_scope
|
2547
|
+
-----------------------------------
|
2548
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2549
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
2550
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2552
|
+
--------------------------------------
|
2553
|
+
CarTest: test_search_car_with_tags_AND
|
2554
|
+
--------------------------------------
|
2555
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2556
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2557
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2558
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.127796"]]
|
2559
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
2560
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
2561
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
2562
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
2563
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
2564
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2565
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2566
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:24:42.208171"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2567
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
2568
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
2569
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2570
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:24:42.211696"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2571
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
2572
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
2573
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2574
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2575
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_0ec2f55 ON cars_taggings_0ec2f55.taggable_id = cars.id AND cars_taggings_0ec2f55.taggable_type = 'Car' AND cars_taggings_0ec2f55.tag_id = 1 JOIN taggings cars_taggings_69880bb ON cars_taggings_69880bb.taggable_id = cars.id AND cars_taggings_69880bb.taggable_type = 'Car' AND cars_taggings_69880bb.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
2576
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2577
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2578
|
+
-------------------------------------
|
2579
|
+
CarTest: test_search_car_with_tags_OR
|
2580
|
+
-------------------------------------
|
2581
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2582
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2583
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2584
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:24:42.220471"]]
|
2585
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2586
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
2587
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
2588
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
2589
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
2590
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2591
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2592
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:24:42.227575"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2593
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
2594
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
2595
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2596
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:24:42.230922"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2597
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
2598
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
2599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2600
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
2601
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_9698aa6 ON cars_taggings_9698aa6.taggable_id = cars.id AND cars_taggings_9698aa6.taggable_type = 'Car' WHERE (cars_taggings_9698aa6.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
2602
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2604
|
+
-------------------------------------
|
2605
|
+
CarTest: test_search_car_with_through
|
2606
|
+
-------------------------------------
|
2607
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2608
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2609
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
2610
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2611
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2612
|
+
--------------------------------------------------
|
2613
|
+
CarTest: test_search_car_with_through_on_any_field
|
2614
|
+
--------------------------------------------------
|
2615
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
2616
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2617
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1.23456765432123e+21' ORDER BY "cars"."id" ASC
|
2618
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2619
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2620
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2621
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2622
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
2623
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:32:13', '2014-12-11 08:32:13', 835429954, 972975755)[0m
|
2624
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:32:13', '2014-12-11 08:32:13', 443394774, 972975755)
|
2625
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:32:13', '2014-12-11 08:32:13', 131351955, 266440024)[0m
|
2626
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
2627
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:32:13', '2014-12-11 08:32:13', 1012443712, 665974588)[0m
|
2628
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:32:13', '2014-12-11 08:32:13', 402564824, 202898348)
|
2629
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:32:13', '2014-12-11 08:32:13', 172444051, 296621295)[0m
|
2630
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
2631
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 546177811, 835429954, 1012443712)[0m
|
2632
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 187174789, 443394774, 402564824)
|
2633
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 378659014, 131351955, 172444051)[0m
|
2634
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2635
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 972975755)[0m
|
2636
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 266440024)
|
2637
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2638
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 665974588)
|
2639
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 202898348)[0m
|
2640
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 296621295)
|
2641
|
+
[1m[36m (5.4ms)[0m [1mcommit transaction[0m
|
2642
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2643
|
+
------------------------------------------
|
2644
|
+
CarTest: test_search_car_with_belong_to_id
|
2645
|
+
------------------------------------------
|
2646
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
2647
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2648
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
2649
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2650
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2651
|
+
------------------------------------------
|
2652
|
+
CarTest: test_search_car_with_deep_through
|
2653
|
+
------------------------------------------
|
2654
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
2655
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2656
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
2657
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2658
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2659
|
+
----------------------------------
|
2660
|
+
CarTest: test_search_car_with_enum
|
2661
|
+
----------------------------------
|
2662
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2663
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
2664
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2665
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2666
|
+
------------------------------------------
|
2667
|
+
CarTest: test_search_car_with_exact_search
|
2668
|
+
------------------------------------------
|
2669
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2670
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
2671
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2672
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2673
|
+
-------------------------------------------------------------
|
2674
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
2675
|
+
-------------------------------------------------------------
|
2676
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2677
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
2678
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2679
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2680
|
+
-------------------------------------------------------
|
2681
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
2682
|
+
-------------------------------------------------------
|
2683
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2684
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
2685
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2686
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2687
|
+
------------------------------------------------------------------------
|
2688
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
2689
|
+
------------------------------------------------------------------------
|
2690
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2691
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
2692
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2693
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2694
|
+
----------------------------------------
|
2695
|
+
CarTest: test_search_car_with_i18n_field
|
2696
|
+
----------------------------------------
|
2697
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2699
|
+
[1m[36mCar::Translation Load (0.2ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
2700
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.565329"]]
|
2701
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:32:13.572470"], ["locale", "en"], ["updated_at", "2014-12-11 08:32:13.572470"]]
|
2702
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2703
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.576506' WHERE "cars"."id" = 131351955[0m
|
2704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2705
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2706
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.578953"]]
|
2707
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:32:13.581160"], ["locale", "fr"], ["updated_at", "2014-12-11 08:32:13.581160"]]
|
2708
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2709
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.582453' WHERE "cars"."id" = 131351955[0m
|
2710
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2711
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2712
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.584048"]]
|
2713
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:32:13.585387"], ["locale", "es"], ["updated_at", "2014-12-11 08:32:13.585387"]]
|
2714
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2715
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.586874' WHERE "cars"."id" = 131351955[0m
|
2716
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2717
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2718
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.588807"]]
|
2719
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:32:13.590175"], ["locale", "pt"], ["updated_at", "2014-12-11 08:32:13.590175"]]
|
2720
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2721
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.592592' WHERE "cars"."id" = 131351955[0m
|
2722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2723
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2724
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.594165"]]
|
2725
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:32:13.595120"]]
|
2726
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.595593' WHERE "cars"."id" = 131351955
|
2727
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2728
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
2729
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2730
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2731
|
+
-----------------------------------
|
2732
|
+
CarTest: test_search_car_with_scope
|
2733
|
+
-----------------------------------
|
2734
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2735
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
2736
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2737
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2738
|
+
--------------------------------------
|
2739
|
+
CarTest: test_search_car_with_tags_AND
|
2740
|
+
--------------------------------------
|
2741
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2742
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2743
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.3ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2744
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.609214"]]
|
2745
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
2746
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
2747
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
2748
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
2749
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
2750
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2751
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2752
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:13.689085"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2753
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
2754
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
2755
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2756
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:13.692900"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2757
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
2758
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
2759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2760
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2761
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_28be4b4 ON cars_taggings_28be4b4.taggable_id = cars.id AND cars_taggings_28be4b4.taggable_type = 'Car' AND cars_taggings_28be4b4.tag_id = 1 JOIN taggings cars_taggings_91b55c6 ON cars_taggings_91b55c6.taggable_id = cars.id AND cars_taggings_91b55c6.taggable_type = 'Car' AND cars_taggings_91b55c6.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
2762
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2763
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2764
|
+
-------------------------------------
|
2765
|
+
CarTest: test_search_car_with_tags_OR
|
2766
|
+
-------------------------------------
|
2767
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2768
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2769
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2770
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:32:13.700177"]]
|
2771
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2772
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
2773
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
2774
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
2775
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
2776
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2777
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2778
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:32:13.705274"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2779
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
2780
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
2781
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2782
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:32:13.708149"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2783
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
2784
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
2785
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2786
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
2787
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_c1b4d9b ON cars_taggings_c1b4d9b.taggable_id = cars.id AND cars_taggings_c1b4d9b.taggable_type = 'Car' WHERE (cars_taggings_c1b4d9b.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
2788
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2789
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2790
|
+
-------------------------------------
|
2791
|
+
CarTest: test_search_car_with_through
|
2792
|
+
-------------------------------------
|
2793
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2794
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2795
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
2796
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2798
|
+
--------------------------------------------------
|
2799
|
+
CarTest: test_search_car_with_through_on_any_field
|
2800
|
+
--------------------------------------------------
|
2801
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
2802
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2803
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1.23456765432123e+21' ORDER BY "cars"."id" ASC
|
2804
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2805
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2806
|
+
-------------------------------------------------------
|
2807
|
+
SearchableModelsTest: test_module_is_correctly_included
|
2808
|
+
-------------------------------------------------------
|
2809
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2810
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2811
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2813
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
2814
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:32:54', '2014-12-11 08:32:54', 835429954, 972975755)[0m
|
2815
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:32:54', '2014-12-11 08:32:54', 443394774, 972975755)
|
2816
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:32:54', '2014-12-11 08:32:54', 131351955, 266440024)[0m
|
2817
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "components"
|
2818
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:32:54', '2014-12-11 08:32:54', 1012443712, 665974588)[0m
|
2819
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:32:54', '2014-12-11 08:32:54', 402564824, 202898348)
|
2820
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:32:54', '2014-12-11 08:32:54', 172444051, 296621295)[0m
|
2821
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
2822
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 546177811, 835429954, 1012443712)[0m
|
2823
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 187174789, 443394774, 402564824)
|
2824
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 378659014, 131351955, 172444051)[0m
|
2825
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
2826
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 972975755)[0m
|
2827
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 266440024)
|
2828
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
2829
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 665974588)
|
2830
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 202898348)[0m
|
2831
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 296621295)
|
2832
|
+
[1m[36m (4.9ms)[0m [1mcommit transaction[0m
|
2833
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2834
|
+
------------------------------------------
|
2835
|
+
CarTest: test_search_car_with_belong_to_id
|
2836
|
+
------------------------------------------
|
2837
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
2838
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2839
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
2840
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2841
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2842
|
+
------------------------------------------
|
2843
|
+
CarTest: test_search_car_with_deep_through
|
2844
|
+
------------------------------------------
|
2845
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
2846
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2847
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
2848
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2849
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2850
|
+
----------------------------------
|
2851
|
+
CarTest: test_search_car_with_enum
|
2852
|
+
----------------------------------
|
2853
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2854
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
2855
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2857
|
+
------------------------------------------
|
2858
|
+
CarTest: test_search_car_with_exact_search
|
2859
|
+
------------------------------------------
|
2860
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2861
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
2862
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2863
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2864
|
+
-------------------------------------------------------------
|
2865
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
2866
|
+
-------------------------------------------------------------
|
2867
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2868
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
2869
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2870
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2871
|
+
-------------------------------------------------------
|
2872
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
2873
|
+
-------------------------------------------------------
|
2874
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2875
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
2876
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2877
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2878
|
+
------------------------------------------------------------------------
|
2879
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
2880
|
+
------------------------------------------------------------------------
|
2881
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2882
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
2883
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2884
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2885
|
+
----------------------------------------
|
2886
|
+
CarTest: test_search_car_with_i18n_field
|
2887
|
+
----------------------------------------
|
2888
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2889
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2890
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
2891
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.189031"]]
|
2892
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:32:54.196972"], ["locale", "en"], ["updated_at", "2014-12-11 08:32:54.196972"]]
|
2893
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2894
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.202939' WHERE "cars"."id" = 131351955[0m
|
2895
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2896
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2897
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.205305"]]
|
2898
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:32:54.207418"], ["locale", "fr"], ["updated_at", "2014-12-11 08:32:54.207418"]]
|
2899
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2900
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.208601' WHERE "cars"."id" = 131351955[0m
|
2901
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2902
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2903
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.210057"]]
|
2904
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:32:54.211075"], ["locale", "es"], ["updated_at", "2014-12-11 08:32:54.211075"]]
|
2905
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2906
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.212280' WHERE "cars"."id" = 131351955[0m
|
2907
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2908
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2909
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.213834"]]
|
2910
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:32:54.214923"], ["locale", "pt"], ["updated_at", "2014-12-11 08:32:54.214923"]]
|
2911
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2912
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.216038' WHERE "cars"."id" = 131351955[0m
|
2913
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2914
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2915
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.217315"]]
|
2916
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:32:54.218252"]]
|
2917
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.218731' WHERE "cars"."id" = 131351955
|
2918
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2919
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
2920
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2921
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2922
|
+
-----------------------------------
|
2923
|
+
CarTest: test_search_car_with_scope
|
2924
|
+
-----------------------------------
|
2925
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2926
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
2927
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2928
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2929
|
+
--------------------------------------
|
2930
|
+
CarTest: test_search_car_with_tags_AND
|
2931
|
+
--------------------------------------
|
2932
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
2933
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2934
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2935
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.230478"]]
|
2936
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
2937
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
2938
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
2939
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
2940
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
2941
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2942
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2943
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:54.319964"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2944
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
2945
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
2946
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
2947
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:54.323620"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2948
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
2949
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
2950
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2951
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2952
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_12119ac ON cars_taggings_12119ac.taggable_id = cars.id AND cars_taggings_12119ac.taggable_type = 'Car' AND cars_taggings_12119ac.tag_id = 1 JOIN taggings cars_taggings_e9783bb ON cars_taggings_e9783bb.taggable_id = cars.id AND cars_taggings_e9783bb.taggable_type = 'Car' AND cars_taggings_e9783bb.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
2953
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2954
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2955
|
+
-------------------------------------
|
2956
|
+
CarTest: test_search_car_with_tags_OR
|
2957
|
+
-------------------------------------
|
2958
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2959
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2960
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2961
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:32:54.332249"]]
|
2962
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
2963
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
2964
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
2965
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
2966
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
2967
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2968
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2969
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:32:54.339412"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2970
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
2971
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
2972
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
2973
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:32:54.342657"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
2974
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
2975
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
2976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2977
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
2978
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_5b10762 ON cars_taggings_5b10762.taggable_id = cars.id AND cars_taggings_5b10762.taggable_type = 'Car' WHERE (cars_taggings_5b10762.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
2979
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2980
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2981
|
+
-------------------------------------
|
2982
|
+
CarTest: test_search_car_with_through
|
2983
|
+
-------------------------------------
|
2984
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
2985
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2986
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
2987
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2989
|
+
-----------------------------------------------
|
2990
|
+
CarTest: test_search_car_with_through_and_fuzzy
|
2991
|
+
-----------------------------------------------
|
2992
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
2993
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%')) ORDER BY "cars"."id" ASC[0m
|
2994
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2996
|
+
--------------------------------------------------
|
2997
|
+
CarTest: test_search_car_with_through_on_any_field
|
2998
|
+
--------------------------------------------------
|
2999
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
3000
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3001
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1.23456765432123e+21' ORDER BY "cars"."id" ASC
|
3002
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3003
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3004
|
+
-------------------------------------------------------
|
3005
|
+
SearchableModelsTest: test_module_is_correctly_included
|
3006
|
+
-------------------------------------------------------
|
3007
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3008
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3009
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3010
|
+
Migrating to AddManufacturerToDoors (20141211083424)
|
3011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3012
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "doors" ADD "manufacturer" varchar(255)
|
3013
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211083424"]]
|
3014
|
+
[1m[35m (4.8ms)[0m commit transaction
|
3015
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3016
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
3017
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:35:16', '2014-12-11 08:35:16', 835429954, 972975755)[0m
|
3018
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:35:16', '2014-12-11 08:35:16', 443394774, 972975755)
|
3019
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:35:16', '2014-12-11 08:35:16', 131351955, 266440024)[0m
|
3020
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
3021
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:35:16', '2014-12-11 08:35:16', 1012443712, 665974588)[0m
|
3022
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:35:16', '2014-12-11 08:35:16', 402564824, 202898348)
|
3023
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:35:16', '2014-12-11 08:35:16', 172444051, 296621295)[0m
|
3024
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
3025
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', 'standard', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 546177811, 835429954, 1012443712)[0m
|
3026
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', 'standard', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 187174789, 443394774, 402564824)
|
3027
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', 'foo', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 378659014, 131351955, 172444051)[0m
|
3028
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
3029
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 972975755)[0m
|
3030
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 266440024)
|
3031
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
3032
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 665974588)
|
3033
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 202898348)[0m
|
3034
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 296621295)
|
3035
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
3036
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3037
|
+
------------------------------------------
|
3038
|
+
CarTest: test_search_car_with_belong_to_id
|
3039
|
+
------------------------------------------
|
3040
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
3041
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3042
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
3043
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3045
|
+
------------------------------------------
|
3046
|
+
CarTest: test_search_car_with_deep_through
|
3047
|
+
------------------------------------------
|
3048
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
3049
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3050
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
3051
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3052
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3053
|
+
----------------------------------
|
3054
|
+
CarTest: test_search_car_with_enum
|
3055
|
+
----------------------------------
|
3056
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3057
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
3058
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3060
|
+
------------------------------------------
|
3061
|
+
CarTest: test_search_car_with_exact_search
|
3062
|
+
------------------------------------------
|
3063
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3064
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
3065
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3066
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3067
|
+
-------------------------------------------------------------
|
3068
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
3069
|
+
-------------------------------------------------------------
|
3070
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3071
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
3072
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3073
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3074
|
+
-------------------------------------------------------
|
3075
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
3076
|
+
-------------------------------------------------------
|
3077
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3078
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
3079
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3080
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3081
|
+
------------------------------------------------------------------------
|
3082
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
3083
|
+
------------------------------------------------------------------------
|
3084
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3085
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
3086
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3087
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3088
|
+
----------------------------------------
|
3089
|
+
CarTest: test_search_car_with_i18n_field
|
3090
|
+
----------------------------------------
|
3091
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3092
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3093
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
3094
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.504104"]]
|
3095
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:35:16.511381"], ["locale", "en"], ["updated_at", "2014-12-11 08:35:16.511381"]]
|
3096
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3097
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.517159' WHERE "cars"."id" = 131351955[0m
|
3098
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3099
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3100
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.520855"]]
|
3101
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:35:16.525042"], ["locale", "fr"], ["updated_at", "2014-12-11 08:35:16.525042"]]
|
3102
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3103
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.527053' WHERE "cars"."id" = 131351955[0m
|
3104
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3105
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3106
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.529593"]]
|
3107
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:35:16.532405"], ["locale", "es"], ["updated_at", "2014-12-11 08:35:16.532405"]]
|
3108
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3109
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.535173' WHERE "cars"."id" = 131351955[0m
|
3110
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3112
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.537585"]]
|
3113
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:35:16.539434"], ["locale", "pt"], ["updated_at", "2014-12-11 08:35:16.539434"]]
|
3114
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3115
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.541554' WHERE "cars"."id" = 131351955[0m
|
3116
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3118
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.543735"]]
|
3119
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:35:16.545606"]]
|
3120
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.546539' WHERE "cars"."id" = 131351955
|
3121
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3122
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
3123
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3125
|
+
-----------------------------------
|
3126
|
+
CarTest: test_search_car_with_scope
|
3127
|
+
-----------------------------------
|
3128
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3129
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
3130
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3131
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3132
|
+
--------------------------------------
|
3133
|
+
CarTest: test_search_car_with_tags_AND
|
3134
|
+
--------------------------------------
|
3135
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3137
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3138
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.564600"]]
|
3139
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
3140
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
3141
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
3142
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
3143
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
3144
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3145
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
3146
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:16.672702"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3147
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
3148
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
3149
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
3150
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:16.676152"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3151
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
3152
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
3153
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3154
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
3155
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_386e873 ON cars_taggings_386e873.taggable_id = cars.id AND cars_taggings_386e873.taggable_type = 'Car' AND cars_taggings_386e873.tag_id = 1 JOIN taggings cars_taggings_3ed7f75 ON cars_taggings_3ed7f75.taggable_id = cars.id AND cars_taggings_3ed7f75.taggable_type = 'Car' AND cars_taggings_3ed7f75.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
3156
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
3157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3158
|
+
-------------------------------------
|
3159
|
+
CarTest: test_search_car_with_tags_OR
|
3160
|
+
-------------------------------------
|
3161
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3162
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3163
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3164
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:35:16.684094"]]
|
3165
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
3166
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
3167
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
3168
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
3169
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
3170
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3171
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.2ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3172
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:35:16.691705"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3173
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
3174
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
3175
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.2ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3176
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:35:16.695785"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3177
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
3178
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
3179
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3180
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.4ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
3181
|
+
[1m[35mCar Load (0.4ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_65f9e58 ON cars_taggings_65f9e58.taggable_id = cars.id AND cars_taggings_65f9e58.taggable_type = 'Car' WHERE (cars_taggings_65f9e58.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
3182
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3183
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3184
|
+
-------------------------------------
|
3185
|
+
CarTest: test_search_car_with_through
|
3186
|
+
-------------------------------------
|
3187
|
+
[1m[36mComponent Load (0.3ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
3188
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3189
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
3190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3192
|
+
-----------------------------------------------
|
3193
|
+
CarTest: test_search_car_with_through_and_fuzzy
|
3194
|
+
-----------------------------------------------
|
3195
|
+
[1m[35mCar Load (0.4ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3196
|
+
[1m[36mCar Load (0.5ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%')) ORDER BY "cars"."id" ASC[0m
|
3197
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3199
|
+
--------------------------------------------------
|
3200
|
+
CarTest: test_search_car_with_through_on_any_field
|
3201
|
+
--------------------------------------------------
|
3202
|
+
[1m[35mComponent Load (0.2ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
3203
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3204
|
+
[1m[35mCar Load (0.4ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1.23456765432123e+21' ORDER BY "cars"."id" ASC
|
3205
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3206
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3207
|
+
-------------------------------------------------------
|
3208
|
+
SearchableModelsTest: test_module_is_correctly_included
|
3209
|
+
-------------------------------------------------------
|
3210
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3211
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3212
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3214
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
3215
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:35:40', '2014-12-11 08:35:40', 835429954, 972975755)[0m
|
3216
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:35:40', '2014-12-11 08:35:40', 443394774, 972975755)
|
3217
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:35:40', '2014-12-11 08:35:40', 131351955, 266440024)[0m
|
3218
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
3219
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:35:40', '2014-12-11 08:35:40', 1012443712, 665974588)[0m
|
3220
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:35:40', '2014-12-11 08:35:40', 402564824, 202898348)
|
3221
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:35:40', '2014-12-11 08:35:40', 172444051, 296621295)[0m
|
3222
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
3223
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', 'standard', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 546177811, 835429954, 1012443712)[0m
|
3224
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', 'standard', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 187174789, 443394774, 402564824)
|
3225
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', 'foo', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 378659014, 131351955, 172444051)[0m
|
3226
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
3227
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 972975755)[0m
|
3228
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 266440024)
|
3229
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
3230
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 665974588)
|
3231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 202898348)[0m
|
3232
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 296621295)
|
3233
|
+
[1m[36m (5.1ms)[0m [1mcommit transaction[0m
|
3234
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3235
|
+
-------------------------------------------------------
|
3236
|
+
SearchableModelsTest: test_module_is_correctly_included
|
3237
|
+
-------------------------------------------------------
|
3238
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3239
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3240
|
+
------------------------------------------
|
3241
|
+
CarTest: test_search_car_with_belong_to_id
|
3242
|
+
------------------------------------------
|
3243
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
3244
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3246
|
+
------------------------------------------
|
3247
|
+
CarTest: test_search_car_with_deep_through
|
3248
|
+
------------------------------------------
|
3249
|
+
[1m[35mProvider Load (0.2ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
3250
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3251
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3252
|
+
----------------------------------
|
3253
|
+
CarTest: test_search_car_with_enum
|
3254
|
+
----------------------------------
|
3255
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3257
|
+
------------------------------------------
|
3258
|
+
CarTest: test_search_car_with_exact_search
|
3259
|
+
------------------------------------------
|
3260
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3262
|
+
-------------------------------------------------------------
|
3263
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
3264
|
+
-------------------------------------------------------------
|
3265
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3267
|
+
-------------------------------------------------------
|
3268
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
3269
|
+
-------------------------------------------------------
|
3270
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3271
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3272
|
+
------------------------------------------------------------------------
|
3273
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
3274
|
+
------------------------------------------------------------------------
|
3275
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3277
|
+
----------------------------------------
|
3278
|
+
CarTest: test_search_car_with_i18n_field
|
3279
|
+
----------------------------------------
|
3280
|
+
[1m[36mCar Load (0.4ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3282
|
+
[1m[36mCar::Translation Load (0.2ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
3283
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.049476"]]
|
3284
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 08:35:41.057783"], ["locale", "en"], ["updated_at", "2014-12-11 08:35:41.057783"]]
|
3285
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3286
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.066950' WHERE "cars"."id" = 131351955[0m
|
3287
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3288
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3289
|
+
[1m[35mSQL (1.5ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.072217"]]
|
3290
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 08:35:41.075572"], ["locale", "fr"], ["updated_at", "2014-12-11 08:35:41.075572"]]
|
3291
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3292
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.077214' WHERE "cars"."id" = 131351955[0m
|
3293
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3294
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3295
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.079158"]]
|
3296
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 08:35:41.080547"], ["locale", "es"], ["updated_at", "2014-12-11 08:35:41.080547"]]
|
3297
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3298
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.082096' WHERE "cars"."id" = 131351955[0m
|
3299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3300
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3301
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.083805"]]
|
3302
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 08:35:41.086023"], ["locale", "pt"], ["updated_at", "2014-12-11 08:35:41.086023"]]
|
3303
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3304
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.088164' WHERE "cars"."id" = 131351955[0m
|
3305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3306
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3307
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.090704"]]
|
3308
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:35:41.092745"]]
|
3309
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.093834' WHERE "cars"."id" = 131351955
|
3310
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3311
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
3312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3313
|
+
-----------------------------------
|
3314
|
+
CarTest: test_search_car_with_scope
|
3315
|
+
-----------------------------------
|
3316
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3317
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3318
|
+
--------------------------------------
|
3319
|
+
CarTest: test_search_car_with_tags_AND
|
3320
|
+
--------------------------------------
|
3321
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3322
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3323
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.4ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3324
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:35:41.125094"]]
|
3325
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
3326
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
3327
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
3328
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
3329
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
3330
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3331
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3332
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:35:41.231281"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3333
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
3334
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
3335
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3336
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:35:41.234715"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3337
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
3338
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
3339
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3340
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
3341
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
3342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3343
|
+
-------------------------------------
|
3344
|
+
CarTest: test_search_car_with_tags_OR
|
3345
|
+
-------------------------------------
|
3346
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3347
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3348
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3349
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 08:35:41.242744"]]
|
3350
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
3351
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
3352
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
3353
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
3354
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
3355
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3356
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3357
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:35:41.250913"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3358
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
3359
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
3360
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.2ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3361
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 08:35:41.254669"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3362
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
3363
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
3364
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3365
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.5ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
3366
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
3367
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3368
|
+
-------------------------------------
|
3369
|
+
CarTest: test_search_car_with_through
|
3370
|
+
-------------------------------------
|
3371
|
+
[1m[35mComponent Load (0.4ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
3372
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3373
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3374
|
+
-----------------------------------------------
|
3375
|
+
CarTest: test_search_car_with_through_and_fuzzy
|
3376
|
+
-----------------------------------------------
|
3377
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3378
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3379
|
+
--------------------------------------------------
|
3380
|
+
CarTest: test_search_car_with_through_on_any_field
|
3381
|
+
--------------------------------------------------
|
3382
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
3383
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3384
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3385
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3387
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
3388
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:36:11', '2014-12-11 08:36:11', 835429954, 972975755)[0m
|
3389
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:36:11', '2014-12-11 08:36:11', 443394774, 972975755)
|
3390
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:36:11', '2014-12-11 08:36:11', 131351955, 266440024)[0m
|
3391
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
3392
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:36:11', '2014-12-11 08:36:11', 1012443712, 665974588)[0m
|
3393
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:36:11', '2014-12-11 08:36:11', 402564824, 202898348)
|
3394
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:36:11', '2014-12-11 08:36:11', 172444051, 296621295)[0m
|
3395
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
3396
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', 'standard', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 546177811, 835429954, 1012443712)[0m
|
3397
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', 'standard', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 187174789, 443394774, 402564824)
|
3398
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', 'foo', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 378659014, 131351955, 172444051)[0m
|
3399
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
3400
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 972975755)[0m
|
3401
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 266440024)
|
3402
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
3403
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 665974588)
|
3404
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 202898348)[0m
|
3405
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 296621295)
|
3406
|
+
[1m[36m (5.0ms)[0m [1mcommit transaction[0m
|
3407
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3408
|
+
-----------------------------------------------
|
3409
|
+
CarTest: test_search_car_with_through_and_fuzzy
|
3410
|
+
-----------------------------------------------
|
3411
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3412
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3413
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3414
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3415
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
3416
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:37:29', '2014-12-11 08:37:29', 835429954, 972975755)[0m
|
3417
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:37:29', '2014-12-11 08:37:29', 443394774, 972975755)
|
3418
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:37:29', '2014-12-11 08:37:29', 131351955, 266440024)[0m
|
3419
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
3420
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:37:29', '2014-12-11 08:37:29', 1012443712, 665974588)[0m
|
3421
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:37:29', '2014-12-11 08:37:29', 402564824, 202898348)
|
3422
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:37:29', '2014-12-11 08:37:29', 172444051, 296621295)[0m
|
3423
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
3424
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', 'standard', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 546177811, 835429954, 1012443712)[0m
|
3425
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', 'standard', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 187174789, 443394774, 402564824)
|
3426
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', 'foo', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 378659014, 131351955, 172444051)[0m
|
3427
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
3428
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 972975755)[0m
|
3429
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 266440024)
|
3430
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
3431
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 665974588)
|
3432
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 202898348)[0m
|
3433
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 296621295)
|
3434
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
3435
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3436
|
+
-----------------------------------------------
|
3437
|
+
CarTest: test_search_car_with_through_and_fuzzy
|
3438
|
+
-----------------------------------------------
|
3439
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3440
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3442
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
3443
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 08:37:50', '2014-12-11 08:37:50', 835429954, 972975755)[0m
|
3444
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 08:37:50', '2014-12-11 08:37:50', 443394774, 972975755)
|
3445
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 08:37:50', '2014-12-11 08:37:50', 131351955, 266440024)[0m
|
3446
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
3447
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 08:37:50', '2014-12-11 08:37:50', 1012443712, 665974588)[0m
|
3448
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 08:37:50', '2014-12-11 08:37:50', 402564824, 202898348)
|
3449
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 08:37:50', '2014-12-11 08:37:50', 172444051, 296621295)[0m
|
3450
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
3451
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', 'standard', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 546177811, 835429954, 1012443712)[0m
|
3452
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', 'standard', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 187174789, 443394774, 402564824)
|
3453
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "manufacturer", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', 'foo', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 378659014, 131351955, 172444051)[0m
|
3454
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
3455
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 972975755)[0m
|
3456
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 266440024)
|
3457
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
3458
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 665974588)
|
3459
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 202898348)[0m
|
3460
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 296621295)
|
3461
|
+
[1m[36m (5.2ms)[0m [1mcommit transaction[0m
|
3462
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3463
|
+
-----------------------------------------------
|
3464
|
+
CarTest: test_search_car_with_through_and_fuzzy
|
3465
|
+
-----------------------------------------------
|
3466
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3467
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3468
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3469
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3470
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
3471
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, '2014-12-11 09:25:26', '2014-12-11 09:25:26', 835429954, 972975755)[0m
|
3472
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, '2014-12-11 09:25:26', '2014-12-11 09:25:26', 443394774, 972975755)
|
3473
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "created_at", "updated_at", "id", "group_id") VALUES ('Car Foo foo Bar', 'This is Car Foo foo bar', 2, 'Brand Foo bar', 'Model Foo bar', '1990-10-20', 2, '2014-12-11 09:25:26', '2014-12-11 09:25:26', 131351955, 266440024)[0m
|
3474
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
3475
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', 1234567890987654321, '2014-12-11 09:25:26', '2014-12-11 09:25:26', 1012443712, 665974588)[0m
|
3476
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', 1234567890987654321, '2014-12-11 09:25:26', '2014-12-11 09:25:26', 402564824, 202898348)
|
3477
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', 1234567654321234567890, '2014-12-11 09:25:26', '2014-12-11 09:25:26', 172444051, 296621295)[0m
|
3478
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
3479
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 546177811, 835429954, 1012443712)[0m
|
3480
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 187174789, 443394774, 402564824)
|
3481
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 378659014, 131351955, 172444051)[0m
|
3482
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
3483
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 972975755)[0m
|
3484
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 266440024)
|
3485
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
3486
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 665974588)
|
3487
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 202898348)[0m
|
3488
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 296621295)
|
3489
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
3490
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3491
|
+
------------------------------------------
|
3492
|
+
CarTest: test_search_car_with_belong_to_id
|
3493
|
+
------------------------------------------
|
3494
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
3495
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3496
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC[0m
|
3497
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3499
|
+
------------------------------------------
|
3500
|
+
CarTest: test_search_car_with_deep_through
|
3501
|
+
------------------------------------------
|
3502
|
+
[1m[35mProvider Load (0.2ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
3503
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3504
|
+
[1m[35mCar Load (0.6ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
3505
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3507
|
+
----------------------------------
|
3508
|
+
CarTest: test_search_car_with_enum
|
3509
|
+
----------------------------------
|
3510
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3511
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
|
3512
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3513
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3514
|
+
------------------------------------------
|
3515
|
+
CarTest: test_search_car_with_exact_search
|
3516
|
+
------------------------------------------
|
3517
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3518
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
|
3519
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3520
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3521
|
+
-------------------------------------------------------------
|
3522
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
3523
|
+
-------------------------------------------------------------
|
3524
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3525
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
3526
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3528
|
+
-------------------------------------------------------
|
3529
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
3530
|
+
-------------------------------------------------------
|
3531
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3532
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
3533
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3534
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3535
|
+
------------------------------------------------------------------------
|
3536
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
3537
|
+
------------------------------------------------------------------------
|
3538
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3539
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
3540
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3542
|
+
----------------------------------------
|
3543
|
+
CarTest: test_search_car_with_i18n_field
|
3544
|
+
----------------------------------------
|
3545
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3546
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3547
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
3548
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.286904"]]
|
3549
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2014-12-11 09:25:26.293111"], ["locale", "en"], ["updated_at", "2014-12-11 09:25:26.293111"]]
|
3550
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3551
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.298321' WHERE "cars"."id" = 131351955[0m
|
3552
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3553
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3554
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.303293"]]
|
3555
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2014-12-11 09:25:26.306310"], ["locale", "fr"], ["updated_at", "2014-12-11 09:25:26.306310"]]
|
3556
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3557
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.307944' WHERE "cars"."id" = 131351955[0m
|
3558
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3559
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3560
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.309769"]]
|
3561
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2014-12-11 09:25:26.311047"], ["locale", "es"], ["updated_at", "2014-12-11 09:25:26.311047"]]
|
3562
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3563
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.312222' WHERE "cars"."id" = 131351955[0m
|
3564
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3565
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3566
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.313668"]]
|
3567
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2014-12-11 09:25:26.314814"], ["locale", "pt"], ["updated_at", "2014-12-11 09:25:26.314814"]]
|
3568
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3569
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.316161' WHERE "cars"."id" = 131351955[0m
|
3570
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3571
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3572
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.317580"]]
|
3573
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 09:25:26.318559"]]
|
3574
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.319094' WHERE "cars"."id" = 131351955
|
3575
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3576
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
3577
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
3578
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3579
|
+
-----------------------------------
|
3580
|
+
CarTest: test_search_car_with_scope
|
3581
|
+
-----------------------------------
|
3582
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3583
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
|
3584
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3585
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3586
|
+
--------------------------------------
|
3587
|
+
CarTest: test_search_car_with_tags_AND
|
3588
|
+
--------------------------------------
|
3589
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3591
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3592
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.336316"]]
|
3593
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
3594
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
3595
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
3596
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
3597
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
3598
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3599
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
3600
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 09:25:26.452274"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3601
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
3602
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
|
3603
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
3604
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 09:25:26.456518"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3605
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
3606
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
|
3607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3608
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
3609
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_c57cf05 ON cars_taggings_c57cf05.taggable_id = cars.id AND cars_taggings_c57cf05.taggable_type = 'Car' AND cars_taggings_c57cf05.tag_id = 1 JOIN taggings cars_taggings_4253bb6 ON cars_taggings_4253bb6.taggable_id = cars.id AND cars_taggings_4253bb6.taggable_type = 'Car' AND cars_taggings_4253bb6.tag_id = 2 ORDER BY "cars"."id" ASC[0m
|
3610
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
3611
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3612
|
+
-------------------------------------
|
3613
|
+
CarTest: test_search_car_with_tags_OR
|
3614
|
+
-------------------------------------
|
3615
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3616
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3617
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3618
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955[0m [["updated_at", "2014-12-11 09:25:26.466052"]]
|
3619
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
3620
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
3621
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
3622
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
3623
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
3624
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3625
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.2ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3626
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 09:25:26.473964"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3627
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
3628
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1[0m
|
3629
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
3630
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?)[0m [["context", "tags"], ["created_at", "2014-12-11 09:25:26.477959"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
|
3631
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
3632
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2[0m
|
3633
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3634
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.3ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
3635
|
+
[1m[35mCar Load (0.4ms)[0m SELECT DISTINCT cars.*,cars.id FROM "cars" JOIN taggings cars_taggings_524a726 ON cars_taggings_524a726.taggable_id = cars.id AND cars_taggings_524a726.taggable_type = 'Car' WHERE (cars_taggings_524a726.tag_id = 1) GROUP BY cars.id ORDER BY "cars"."id" ASC
|
3636
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3637
|
+
[1m[35m (0.2ms)[0m begin transaction
|
3638
|
+
-------------------------------------
|
3639
|
+
CarTest: test_search_car_with_through
|
3640
|
+
-------------------------------------
|
3641
|
+
[1m[36mComponent Load (0.3ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
3642
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
3643
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
3644
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3645
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3646
|
+
--------------------------------------------------
|
3647
|
+
CarTest: test_search_car_with_through_on_any_field
|
3648
|
+
--------------------------------------------------
|
3649
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
3650
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
3651
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1.23456765432123e+21' ORDER BY "cars"."id" ASC
|
3652
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3654
|
+
-------------------------------------------------------
|
3655
|
+
SearchableModelsTest: test_module_is_correctly_included
|
3656
|
+
-------------------------------------------------------
|
3657
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|