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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8da289b3fae4ca11d2de367cb3297d99e59f84c6
4
- data.tar.gz: 0124d265da0fcff62dd16dd4689aabd1b29af0f1
3
+ metadata.gz: bb7b8eb489ffddbdba32d71d7d7b5c3c18299971
4
+ data.tar.gz: c3bd295fb5eb075c068150b9e7539260f48c10ad
5
5
  SHA512:
6
- metadata.gz: 2e772b0db5f4dbe365ccc07743e54a5bb8b76db8541b418a89eb976119698e2e32522278fb3550dcb2fcd6872a898b878bf7a3bd6270f9f7a2dd86abbce2777e
7
- data.tar.gz: f3c5759c452dacf062c4d0212595ab6017c5b84319d2ec425c8eadd35415f7c49a7b55149ae7aef6f180c31fad1873c9201afd7b5a43d22923e5a18587ee317b
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 tested and used with:
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.rdoc')
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
- || %i(exact scope enum).include?(v.try(:[], :mode))
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 field =~ /_id(?:s)?$/ && options[:through]
45
- _association_ids_search(results, field, value, options[:through])
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 _association_ids_search(results, field, value, through)
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(ArgumentError, "#{field} must of type string to run a fuzzy search")
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
@@ -1,3 +1,3 @@
1
1
  module SearchableModels
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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 => %i(van sedan family)
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
Binary file
@@ -0,0 +1,186 @@
1
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateCars (20141113130904)
6
+  (0.1ms) begin transaction
7
+  (0.6ms) 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
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113130904"]]
9
+  (0.7ms) commit transaction
10
+ Migrating to CreateGroups (20141113142341)
11
+  (0.0ms) begin transaction
12
+  (0.3ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
14
+  (0.7ms) commit transaction
15
+ Migrating to AddGroupIdToCars (20141113142350)
16
+  (0.1ms) begin transaction
17
+  (0.6ms) ALTER TABLE "cars" ADD "group_id" integer
18
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
19
+  (0.8ms) commit transaction
20
+ Migrating to CreateDoors (20141113153040)
21
+  (0.2ms) begin transaction
22
+  (0.9ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "car_id" integer, "created_at" datetime, "updated_at" datetime)
23
+  (0.3ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
24
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
25
+  (0.8ms) commit transaction
26
+ Migrating to CreateProviders (20141114120705)
27
+  (0.1ms) begin transaction
28
+  (0.5ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
29
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
30
+  (0.8ms) commit transaction
31
+ Migrating to CreateComponents (20141114120731)
32
+  (0.1ms) begin transaction
33
+  (0.5ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "serial" varchar(255), "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
34
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
35
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
36
+  (0.8ms) commit transaction
37
+ Migrating to AddComponentIdToDoors (20141114120804)
38
+  (0.1ms) begin transaction
39
+  (0.5ms) ALTER TABLE "doors" ADD "component_id" integer
40
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
41
+  (0.8ms) commit transaction
42
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
43
+  (0.1ms) begin transaction
44
+  (0.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
45
+  (0.1ms) CREATE 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) 
46
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
47
+  (0.1ms)  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
+ 
55
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
56
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
57
+  (1.1ms) commit transaction
58
+ Migrating to AddMissingUniqueIndices (20141114122829)
59
+  (0.1ms) begin transaction
60
+  (0.5ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
61
+  (0.2ms)  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
+ 
69
+  (0.1ms) 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
+  (1.3ms) DROP INDEX "index_taggings_on_tag_id"
78
+  (0.1ms) 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
+  (0.2ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
87
+  (0.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
88
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
89
+  (1.2ms) commit transaction
90
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
91
+  (0.1ms) begin transaction
92
+  (1.2ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
93
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
94
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
95
+  (0.8ms) commit transaction
96
+ Migrating to AddMissingTaggableIndex (20141114122831)
97
+  (0.1ms) begin transaction
98
+  (0.1ms)  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
+ 
106
+  (0.4ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
107
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
108
+  (0.9ms) commit transaction
109
+ Migrating to AddCarTranslations (20141114130703)
110
+  (0.0ms) begin transaction
111
+  (0.6ms) 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
+  (0.1ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar(255)
113
+  (0.2ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
114
+  (0.1ms)  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
+ 
122
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
123
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
124
+  (0.8ms) commit transaction
125
+ Migrating to AddManufacturerToDoors (20141211083424)
126
+  (0.1ms) begin transaction
127
+  (0.6ms) ALTER TABLE "doors" ADD "manufacturer" varchar(255)
128
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211083424"]]
129
+  (0.9ms) commit transaction
130
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
+  (0.1ms) 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
+  (0.3ms)  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
+ 
147
+  (0.2ms) 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
+  (0.2ms)  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
+ 
163
+  (0.1ms) 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
+  (0.1ms)  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
+ 
179
+  (0.1ms) 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
+
@@ -669,3 +669,2989 @@ CarTest: test_search_car_with_through
669
669
  Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
670
670
  Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
671
671
   (0.1ms) rollback transaction
672
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
673
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
674
+  (0.1ms) begin transaction
675
+ Fixture Delete (0.6ms) DELETE FROM "cars"
676
+ Fixture Insert (0.5ms) INSERT 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)
677
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
679
+ Fixture Delete (0.8ms) DELETE FROM "components"
680
+ Fixture Insert (0.1ms) INSERT 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)
681
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
683
+ Fixture Delete (0.7ms) DELETE FROM "doors"
684
+ Fixture Insert (0.1ms) INSERT 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)
685
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
687
+ Fixture Delete (0.1ms) DELETE FROM "groups"
688
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 972975755)
689
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
691
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 09:21:04', '2014-11-17 09:21:04', 202898348)
693
+ Fixture Insert (0.1ms) 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
+  (0.8ms) commit transaction
695
+  (0.0ms) begin transaction
696
+ ------------------------------------------
697
+ CarTest: test_search_car_with_belong_to_id
698
+ ------------------------------------------
699
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
700
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
701
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
702
+  (0.1ms) rollback transaction
703
+  (0.1ms) begin transaction
704
+ ------------------------------------------
705
+ CarTest: test_search_car_with_deep_through
706
+ ------------------------------------------
707
+ Provider Load (0.2ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
708
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
709
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
711
+  (0.0ms) begin transaction
712
+ ----------------------------------
713
+ CarTest: test_search_car_with_enum
714
+ ----------------------------------
715
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
716
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
717
+  (0.1ms) rollback transaction
718
+  (0.0ms) begin transaction
719
+ ------------------------------------------
720
+ CarTest: test_search_car_with_exact_search
721
+ ------------------------------------------
722
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
723
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
724
+  (0.1ms) rollback transaction
725
+  (0.0ms) begin transaction
726
+ -------------------------------------------------------------
727
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
728
+ -------------------------------------------------------------
729
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
730
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
731
+  (0.0ms) rollback transaction
732
+  (0.0ms) begin transaction
733
+ -------------------------------------------------------
734
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
735
+ -------------------------------------------------------
736
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
737
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
738
+  (0.0ms) rollback transaction
739
+  (0.0ms) begin transaction
740
+ ------------------------------------------------------------------------
741
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
742
+ ------------------------------------------------------------------------
743
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
744
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
745
+  (0.0ms) rollback transaction
746
+  (0.1ms) begin transaction
747
+ ----------------------------------------
748
+ CarTest: test_search_car_with_i18n_field
749
+ ----------------------------------------
750
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
751
+  (0.0ms) SAVEPOINT active_record_1
752
+ Car::Translation Load (0.4ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
753
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.524245"]]
754
+ SQL (0.8ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
756
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.535524' WHERE "cars"."id" = 131351955
757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
758
+  (0.0ms) SAVEPOINT active_record_1
759
+ SQL (1.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.538140"]]
760
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
762
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.543177' WHERE "cars"."id" = 131351955
763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
764
+  (0.0ms) SAVEPOINT active_record_1
765
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.545045"]]
766
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
768
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.548087' WHERE "cars"."id" = 131351955
769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
770
+  (0.1ms) SAVEPOINT active_record_1
771
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.550358"]]
772
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
774
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.553782' WHERE "cars"."id" = 131351955
775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
776
+  (0.1ms) SAVEPOINT active_record_1
777
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.555327"]]
778
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 09:21:04.556403"]]
779
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 09:21:04.556952' WHERE "cars"."id" = 131351955
780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+ Car Load (0.2ms) 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
+  (0.7ms) rollback transaction
783
+  (0.1ms) begin transaction
784
+ -----------------------------------
785
+ CarTest: test_search_car_with_scope
786
+ -----------------------------------
787
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
788
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
789
+  (0.0ms) rollback transaction
790
+  (0.0ms) begin transaction
791
+ --------------------------------------
792
+ CarTest: test_search_car_with_tags_AND
793
+ --------------------------------------
794
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
795
+  (0.1ms) SAVEPOINT active_record_1
796
+ ActsAsTaggableOn::Tag Load (0.4ms) 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"]]
797
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.571968"]]
798
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
799
+ ActsAsTaggableOn::Tag Exists (0.4ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
800
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
801
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
802
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
803
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.5ms) 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
805
+ SQL (0.6ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
807
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
808
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
809
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
811
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
813
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
814
+ Car Load (0.2ms) SELECT 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
815
+  (0.5ms) rollback transaction
816
+  (0.1ms) begin transaction
817
+ -------------------------------------
818
+ CarTest: test_search_car_with_tags_OR
819
+ -------------------------------------
820
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
821
+  (0.1ms) SAVEPOINT active_record_1
822
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 09:21:04.675751"]]
824
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
825
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
826
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
827
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
828
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
829
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
830
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 09:21:04.681032"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
832
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
833
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
834
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 09:21:04.684221"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
836
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
837
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
839
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
840
+ Car Load (0.2ms) 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
+  (0.5ms) rollback transaction
842
+  (0.0ms) begin transaction
843
+ -------------------------------------
844
+ CarTest: test_search_car_with_through
845
+ -------------------------------------
846
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
847
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
848
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
849
+  (0.0ms) rollback transaction
850
+  (0.0ms) begin transaction
851
+ -------------------------------------------------------
852
+ SearchableModelsTest: test_module_is_correctly_included
853
+ -------------------------------------------------------
854
+  (0.0ms) rollback transaction
855
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
856
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
857
+  (0.1ms) begin transaction
858
+ Fixture Delete (0.5ms) DELETE FROM "cars"
859
+ Fixture Insert (0.5ms) INSERT 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)
860
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
862
+ Fixture Delete (0.8ms) DELETE FROM "components"
863
+ Fixture Insert (0.1ms) INSERT 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)
864
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
866
+ Fixture Delete (0.7ms) DELETE FROM "doors"
867
+ Fixture Insert (0.1ms) INSERT 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)
868
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
870
+ Fixture Delete (0.1ms) DELETE FROM "groups"
871
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 972975755)
872
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
874
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 12:52:50', '2014-11-17 12:52:50', 202898348)
876
+ Fixture Insert (0.1ms) 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
+  (0.8ms) commit transaction
878
+  (0.0ms) begin transaction
879
+ ------------------------------------------
880
+ CarTest: test_search_car_with_belong_to_id
881
+ ------------------------------------------
882
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
883
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
884
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
885
+  (0.1ms) rollback transaction
886
+  (0.1ms) begin transaction
887
+ ------------------------------------------
888
+ CarTest: test_search_car_with_deep_through
889
+ ------------------------------------------
890
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
891
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
892
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
894
+  (0.0ms) begin transaction
895
+ ----------------------------------
896
+ CarTest: test_search_car_with_enum
897
+ ----------------------------------
898
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
899
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
900
+  (0.1ms) rollback transaction
901
+  (0.0ms) begin transaction
902
+ ------------------------------------------
903
+ CarTest: test_search_car_with_exact_search
904
+ ------------------------------------------
905
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
906
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
907
+  (0.0ms) rollback transaction
908
+  (0.1ms) begin transaction
909
+ -------------------------------------------------------------
910
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
911
+ -------------------------------------------------------------
912
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
913
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
914
+  (0.1ms) rollback transaction
915
+  (0.0ms) begin transaction
916
+ -------------------------------------------------------
917
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
918
+ -------------------------------------------------------
919
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
920
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
921
+  (0.1ms) rollback transaction
922
+  (0.1ms) begin transaction
923
+ ------------------------------------------------------------------------
924
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
925
+ ------------------------------------------------------------------------
926
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
927
+ Car Load (0.3ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
928
+  (0.1ms) rollback transaction
929
+  (0.1ms) begin transaction
930
+ ----------------------------------------
931
+ CarTest: test_search_car_with_i18n_field
932
+ ----------------------------------------
933
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
934
+  (0.1ms) SAVEPOINT active_record_1
935
+ Car::Translation Load (0.4ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
936
+ SQL (0.5ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.840445"]]
937
+ SQL (0.7ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
939
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.851672' WHERE "cars"."id" = 131351955
940
+  (0.1ms) RELEASE SAVEPOINT active_record_1
941
+  (0.0ms) SAVEPOINT active_record_1
942
+ SQL (1.9ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.854617"]]
943
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
945
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.859027' WHERE "cars"."id" = 131351955
946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
947
+  (0.1ms) SAVEPOINT active_record_1
948
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.862170"]]
949
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
951
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.865208' WHERE "cars"."id" = 131351955
952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
953
+  (0.0ms) SAVEPOINT active_record_1
954
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.866813"]]
955
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
957
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.869186' WHERE "cars"."id" = 131351955
958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
959
+  (0.0ms) SAVEPOINT active_record_1
960
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.870448"]]
961
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 12:52:50.871273"]]
962
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:52:50.871703' WHERE "cars"."id" = 131351955
963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
964
+ Car Load (0.1ms) 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
+  (0.8ms) rollback transaction
966
+  (0.1ms) begin transaction
967
+ -----------------------------------
968
+ CarTest: test_search_car_with_scope
969
+ -----------------------------------
970
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
971
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
972
+  (0.0ms) rollback transaction
973
+  (0.0ms) begin transaction
974
+ --------------------------------------
975
+ CarTest: test_search_car_with_tags_AND
976
+ --------------------------------------
977
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
978
+  (0.0ms) SAVEPOINT active_record_1
979
+ ActsAsTaggableOn::Tag Load (0.4ms) 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"]]
980
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.886552"]]
981
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
982
+ ActsAsTaggableOn::Tag Exists (0.5ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
983
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
984
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
985
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
986
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.5ms) 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
988
+ SQL (0.5ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
990
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
991
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
992
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
994
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
996
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
997
+ Car Load (0.2ms) SELECT 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
998
+  (0.5ms) rollback transaction
999
+  (0.0ms) begin transaction
1000
+ -------------------------------------
1001
+ CarTest: test_search_car_with_tags_OR
1002
+ -------------------------------------
1003
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1004
+  (0.0ms) SAVEPOINT active_record_1
1005
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:52:50.990215"]]
1007
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1008
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1009
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1010
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1011
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1012
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
1013
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:52:50.995097"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1015
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1016
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1017
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.0ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:52:50.997303"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1019
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1020
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1022
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
1023
+ Car Load (0.2ms) 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
+  (0.5ms) rollback transaction
1025
+  (0.0ms) begin transaction
1026
+ -------------------------------------
1027
+ CarTest: test_search_car_with_through
1028
+ -------------------------------------
1029
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
1030
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1031
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
1032
+  (0.1ms) rollback transaction
1033
+  (0.0ms) begin transaction
1034
+ -------------------------------------------------------
1035
+ SearchableModelsTest: test_module_is_correctly_included
1036
+ -------------------------------------------------------
1037
+  (0.0ms) rollback transaction
1038
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1039
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1040
+  (0.1ms) begin transaction
1041
+ Fixture Delete (0.6ms) DELETE FROM "cars"
1042
+ Fixture Insert (0.6ms) INSERT 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)
1043
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1045
+ Fixture Delete (0.8ms) DELETE FROM "components"
1046
+ Fixture Insert (0.1ms) INSERT 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)
1047
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1049
+ Fixture Delete (0.8ms) DELETE FROM "doors"
1050
+ Fixture Insert (0.1ms) INSERT 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)
1051
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1053
+ Fixture Delete (0.1ms) DELETE FROM "groups"
1054
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 972975755)
1055
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
1057
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 12:56:34', '2014-11-17 12:56:34', 202898348)
1059
+ Fixture Insert (0.1ms) 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
+  (0.8ms) commit transaction
1061
+  (0.0ms) begin transaction
1062
+ -------------------------------------------------------
1063
+ SearchableModelsTest: test_module_is_correctly_included
1064
+ -------------------------------------------------------
1065
+  (0.0ms) rollback transaction
1066
+  (0.0ms) begin transaction
1067
+ ------------------------------------------
1068
+ CarTest: test_search_car_with_belong_to_id
1069
+ ------------------------------------------
1070
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
1071
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1072
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
1073
+  (0.1ms) rollback transaction
1074
+  (0.1ms) begin transaction
1075
+ ------------------------------------------
1076
+ CarTest: test_search_car_with_deep_through
1077
+ ------------------------------------------
1078
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
1079
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1080
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
1082
+  (0.1ms) begin transaction
1083
+ ----------------------------------
1084
+ CarTest: test_search_car_with_enum
1085
+ ----------------------------------
1086
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1087
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
1088
+  (0.0ms) rollback transaction
1089
+  (0.0ms) begin transaction
1090
+ ------------------------------------------
1091
+ CarTest: test_search_car_with_exact_search
1092
+ ------------------------------------------
1093
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1094
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
1095
+  (0.0ms) rollback transaction
1096
+  (0.0ms) begin transaction
1097
+ -------------------------------------------------------------
1098
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
1099
+ -------------------------------------------------------------
1100
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1101
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
1102
+  (0.1ms) rollback transaction
1103
+  (0.0ms) begin transaction
1104
+ -------------------------------------------------------
1105
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
1106
+ -------------------------------------------------------
1107
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1108
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
1109
+  (0.1ms) rollback transaction
1110
+  (0.0ms) begin transaction
1111
+ ------------------------------------------------------------------------
1112
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
1113
+ ------------------------------------------------------------------------
1114
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1115
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
1116
+  (0.1ms) rollback transaction
1117
+  (0.1ms) begin transaction
1118
+ ----------------------------------------
1119
+ CarTest: test_search_car_with_i18n_field
1120
+ ----------------------------------------
1121
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1122
+  (0.1ms) SAVEPOINT active_record_1
1123
+ Car::Translation Load (1.2ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
1124
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.839321"]]
1125
+ SQL (0.8ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1127
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.851430' WHERE "cars"."id" = 131351955
1128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1129
+  (0.0ms) SAVEPOINT active_record_1
1130
+ SQL (1.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.854741"]]
1131
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1133
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.858934' WHERE "cars"."id" = 131351955
1134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1135
+  (0.0ms) SAVEPOINT active_record_1
1136
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.860693"]]
1137
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1139
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.863278' WHERE "cars"."id" = 131351955
1140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1141
+  (0.0ms) SAVEPOINT active_record_1
1142
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.865729"]]
1143
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1145
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.869539' WHERE "cars"."id" = 131351955
1146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.1ms) SAVEPOINT active_record_1
1148
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.871193"]]
1149
+ SQL (0.2ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 12:56:34.872707"]]
1150
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:56:34.873629' WHERE "cars"."id" = 131351955
1151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1152
+ Car Load (0.2ms) 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
+  (0.9ms) rollback transaction
1154
+  (0.1ms) begin transaction
1155
+ -----------------------------------
1156
+ CarTest: test_search_car_with_scope
1157
+ -----------------------------------
1158
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1159
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
1160
+  (0.1ms) rollback transaction
1161
+  (0.0ms) begin transaction
1162
+ --------------------------------------
1163
+ CarTest: test_search_car_with_tags_AND
1164
+ --------------------------------------
1165
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1166
+  (0.0ms) SAVEPOINT active_record_1
1167
+ ActsAsTaggableOn::Tag Load (0.5ms) 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"]]
1168
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:34.891509"]]
1169
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1170
+ ActsAsTaggableOn::Tag Exists (0.4ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1171
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1172
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1173
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1174
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.5ms) 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
1176
+ SQL (0.6ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1178
+ SQL (0.2ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1179
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1180
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1182
+ SQL (0.2ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1184
+ ActsAsTaggableOn::Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1185
+ Car Load (0.4ms) SELECT 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
1186
+  (0.6ms) rollback transaction
1187
+  (0.1ms) begin transaction
1188
+ -------------------------------------
1189
+ CarTest: test_search_car_with_tags_OR
1190
+ -------------------------------------
1191
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1192
+  (0.1ms) SAVEPOINT active_record_1
1193
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:56:35.021295"]]
1195
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1196
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1197
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1198
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1199
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1200
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
1201
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:56:35.027039"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1203
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1204
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1205
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:56:35.029627"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1207
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1208
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1210
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
1211
+ Car Load (0.2ms) 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
+  (0.6ms) rollback transaction
1213
+  (0.0ms) begin transaction
1214
+ -------------------------------------
1215
+ CarTest: test_search_car_with_through
1216
+ -------------------------------------
1217
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
1218
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1219
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
1220
+  (0.0ms) rollback transaction
1221
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1222
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1223
+  (0.1ms) begin transaction
1224
+ Fixture Delete (0.2ms) DELETE FROM "cars"
1225
+ Fixture Insert (0.1ms) INSERT 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)
1226
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1228
+ Fixture Delete (0.1ms) DELETE FROM "components"
1229
+ Fixture Insert (0.1ms) INSERT 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)
1230
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1232
+ Fixture Delete (0.1ms) DELETE FROM "doors"
1233
+ Fixture Insert (0.1ms) INSERT 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)
1234
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1236
+ Fixture Delete (0.1ms) DELETE FROM "groups"
1237
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 972975755)
1238
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
1240
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 12:59:14', '2014-11-17 12:59:14', 202898348)
1242
+ Fixture Insert (0.1ms) 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
+  (1.0ms) commit transaction
1244
+  (0.0ms) begin transaction
1245
+ ------------------------------------------
1246
+ CarTest: test_search_car_with_belong_to_id
1247
+ ------------------------------------------
1248
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
1249
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1250
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
1251
+  (0.1ms) rollback transaction
1252
+  (0.0ms) begin transaction
1253
+ ------------------------------------------
1254
+ CarTest: test_search_car_with_deep_through
1255
+ ------------------------------------------
1256
+ Provider Load (0.2ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
1257
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1258
+ Car Load (0.2ms) 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
+  (0.0ms) rollback transaction
1260
+  (0.0ms) begin transaction
1261
+ ----------------------------------
1262
+ CarTest: test_search_car_with_enum
1263
+ ----------------------------------
1264
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1265
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
1266
+  (0.0ms) rollback transaction
1267
+  (0.0ms) begin transaction
1268
+ ------------------------------------------
1269
+ CarTest: test_search_car_with_exact_search
1270
+ ------------------------------------------
1271
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1272
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
1273
+  (0.0ms) rollback transaction
1274
+  (0.0ms) begin transaction
1275
+ -------------------------------------------------------------
1276
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
1277
+ -------------------------------------------------------------
1278
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1279
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
1280
+  (0.0ms) rollback transaction
1281
+  (0.0ms) begin transaction
1282
+ -------------------------------------------------------
1283
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
1284
+ -------------------------------------------------------
1285
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1286
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
1287
+  (0.0ms) rollback transaction
1288
+  (0.0ms) begin transaction
1289
+ ------------------------------------------------------------------------
1290
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
1291
+ ------------------------------------------------------------------------
1292
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1293
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
1294
+  (0.0ms) rollback transaction
1295
+  (0.0ms) begin transaction
1296
+ ----------------------------------------
1297
+ CarTest: test_search_car_with_i18n_field
1298
+ ----------------------------------------
1299
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1300
+  (0.0ms) SAVEPOINT active_record_1
1301
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
1302
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.116427"]]
1303
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1305
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.126831' WHERE "cars"."id" = 131351955
1306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1307
+  (0.0ms) SAVEPOINT active_record_1
1308
+ SQL (1.8ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.131127"]]
1309
+ SQL (0.3ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1311
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.138257' WHERE "cars"."id" = 131351955
1312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1313
+  (0.0ms) SAVEPOINT active_record_1
1314
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.139973"]]
1315
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1317
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.142253' WHERE "cars"."id" = 131351955
1318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1319
+  (0.0ms) SAVEPOINT active_record_1
1320
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.143670"]]
1321
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1323
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.145893' WHERE "cars"."id" = 131351955
1324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1325
+  (0.0ms) SAVEPOINT active_record_1
1326
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.147158"]]
1327
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 12:59:14.148005"]]
1328
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 12:59:14.148445' WHERE "cars"."id" = 131351955
1329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1330
+ Car Load (0.1ms) 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
+  (0.8ms) rollback transaction
1332
+  (0.1ms) begin transaction
1333
+ -----------------------------------
1334
+ CarTest: test_search_car_with_scope
1335
+ -----------------------------------
1336
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1337
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
1338
+  (0.1ms) rollback transaction
1339
+  (0.0ms) begin transaction
1340
+ --------------------------------------
1341
+ CarTest: test_search_car_with_tags_AND
1342
+ --------------------------------------
1343
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1344
+  (0.0ms) SAVEPOINT active_record_1
1345
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
1346
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.160407"]]
1347
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1348
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1349
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1350
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1351
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1352
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1354
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1356
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1357
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1358
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1360
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1362
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1363
+ Car Load (0.2ms) SELECT 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
1364
+  (0.6ms) rollback transaction
1365
+  (0.1ms) begin transaction
1366
+ -------------------------------------
1367
+ CarTest: test_search_car_with_tags_OR
1368
+ -------------------------------------
1369
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1370
+  (0.0ms) SAVEPOINT active_record_1
1371
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 12:59:14.255109"]]
1373
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1374
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1375
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1376
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1377
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1378
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
1379
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:59:14.260025"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1381
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1382
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1383
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 12:59:14.262458"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1385
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1386
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1388
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
1389
+ Car Load (0.2ms) 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
+  (0.5ms) rollback transaction
1391
+  (0.1ms) begin transaction
1392
+ -------------------------------------
1393
+ CarTest: test_search_car_with_through
1394
+ -------------------------------------
1395
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
1396
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1397
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
1398
+  (0.1ms) rollback transaction
1399
+  (0.0ms) begin transaction
1400
+ -------------------------------------------------------
1401
+ SearchableModelsTest: test_module_is_correctly_included
1402
+ -------------------------------------------------------
1403
+  (0.0ms) rollback transaction
1404
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1405
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1406
+  (0.1ms) begin transaction
1407
+ Fixture Delete (0.6ms) DELETE FROM "cars"
1408
+ Fixture Insert (0.9ms) INSERT 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)
1409
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1411
+ Fixture Delete (0.7ms) DELETE FROM "components"
1412
+ Fixture Insert (0.1ms) INSERT 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)
1413
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1415
+ Fixture Delete (0.9ms) DELETE FROM "doors"
1416
+ Fixture Insert (0.1ms) INSERT 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)
1417
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1419
+ Fixture Delete (0.1ms) DELETE FROM "groups"
1420
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 972975755)
1421
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
1423
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-11-17 13:04:54', '2014-11-17 13:04:54', 202898348)
1425
+ Fixture Insert (0.1ms) 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
+  (1.0ms) commit transaction
1427
+  (0.0ms) begin transaction
1428
+ ------------------------------------------
1429
+ CarTest: test_search_car_with_belong_to_id
1430
+ ------------------------------------------
1431
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
1432
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1433
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
1434
+  (0.1ms) rollback transaction
1435
+  (0.1ms) begin transaction
1436
+ ------------------------------------------
1437
+ CarTest: test_search_car_with_deep_through
1438
+ ------------------------------------------
1439
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
1440
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1441
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
1443
+  (0.1ms) begin transaction
1444
+ ----------------------------------
1445
+ CarTest: test_search_car_with_enum
1446
+ ----------------------------------
1447
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1448
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
1449
+  (0.1ms) rollback transaction
1450
+  (0.1ms) begin transaction
1451
+ ------------------------------------------
1452
+ CarTest: test_search_car_with_exact_search
1453
+ ------------------------------------------
1454
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1455
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
1456
+  (0.1ms) rollback transaction
1457
+  (0.1ms) begin transaction
1458
+ -------------------------------------------------------------
1459
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
1460
+ -------------------------------------------------------------
1461
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1462
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
1463
+  (0.1ms) rollback transaction
1464
+  (0.0ms) begin transaction
1465
+ -------------------------------------------------------
1466
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
1467
+ -------------------------------------------------------
1468
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1469
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
1470
+  (0.1ms) rollback transaction
1471
+  (0.0ms) begin transaction
1472
+ ------------------------------------------------------------------------
1473
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
1474
+ ------------------------------------------------------------------------
1475
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1476
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
1477
+  (0.0ms) rollback transaction
1478
+  (0.0ms) begin transaction
1479
+ ----------------------------------------
1480
+ CarTest: test_search_car_with_i18n_field
1481
+ ----------------------------------------
1482
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1483
+  (0.0ms) SAVEPOINT active_record_1
1484
+ Car::Translation Load (0.4ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
1485
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.632411"]]
1486
+ SQL (0.8ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1488
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.642451' WHERE "cars"."id" = 131351955
1489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1490
+  (0.0ms) SAVEPOINT active_record_1
1491
+ SQL (1.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.645494"]]
1492
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1494
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.649118' WHERE "cars"."id" = 131351955
1495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1496
+  (0.0ms) SAVEPOINT active_record_1
1497
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.651504"]]
1498
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1500
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.655030' WHERE "cars"."id" = 131351955
1501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1502
+  (0.0ms) SAVEPOINT active_record_1
1503
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.656664"]]
1504
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1506
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.658857' WHERE "cars"."id" = 131351955
1507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1508
+  (0.0ms) SAVEPOINT active_record_1
1509
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.660175"]]
1510
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-11-17 13:04:54.661047"]]
1511
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-11-17 13:04:54.661511' WHERE "cars"."id" = 131351955
1512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1513
+ Car Load (0.1ms) 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
+  (0.9ms) rollback transaction
1515
+  (0.1ms) begin transaction
1516
+ -----------------------------------
1517
+ CarTest: test_search_car_with_scope
1518
+ -----------------------------------
1519
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1520
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
1521
+  (0.0ms) rollback transaction
1522
+  (0.0ms) begin transaction
1523
+ --------------------------------------
1524
+ CarTest: test_search_car_with_tags_AND
1525
+ --------------------------------------
1526
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1527
+  (0.0ms) SAVEPOINT active_record_1
1528
+ ActsAsTaggableOn::Tag Load (0.5ms) 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"]]
1529
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.678994"]]
1530
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1531
+ ActsAsTaggableOn::Tag Exists (0.5ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1532
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1533
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1534
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1535
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.4ms) 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
1537
+ SQL (0.5ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1539
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1540
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1541
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1543
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1545
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1546
+ Car Load (0.2ms) SELECT 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
1547
+  (0.5ms) rollback transaction
1548
+  (0.0ms) begin transaction
1549
+ -------------------------------------
1550
+ CarTest: test_search_car_with_tags_OR
1551
+ -------------------------------------
1552
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1553
+  (0.0ms) SAVEPOINT active_record_1
1554
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-11-17 13:04:54.777090"]]
1556
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1557
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1558
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1559
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1560
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1561
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
1562
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 13:04:54.782597"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1564
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1565
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1566
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-11-17 13:04:54.785582"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1568
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1569
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1571
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
1572
+ Car Load (0.2ms) 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
+  (0.6ms) rollback transaction
1574
+  (0.1ms) begin transaction
1575
+ -------------------------------------
1576
+ CarTest: test_search_car_with_through
1577
+ -------------------------------------
1578
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
1579
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1580
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
1581
+  (0.1ms) rollback transaction
1582
+  (0.1ms) begin transaction
1583
+ -------------------------------------------------------
1584
+ SearchableModelsTest: test_module_is_correctly_included
1585
+ -------------------------------------------------------
1586
+  (0.0ms) rollback transaction
1587
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1588
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1589
+  (0.1ms) begin transaction
1590
+ Fixture Delete (0.4ms) DELETE FROM "cars"
1591
+ Fixture Insert (0.3ms) INSERT 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)
1592
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1594
+ Fixture Delete (0.2ms) DELETE FROM "components"
1595
+ Fixture Insert (0.1ms) INSERT 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)
1596
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1598
+ Fixture Delete (0.2ms) DELETE FROM "doors"
1599
+ Fixture Insert (0.1ms) INSERT 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)
1600
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1602
+ Fixture Delete (0.1ms) DELETE FROM "groups"
1603
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 972975755)
1604
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.2ms) DELETE FROM "providers"
1606
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:18:21', '2014-12-11 08:18:21', 202898348)
1608
+ Fixture Insert (0.1ms) 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
+  (1.1ms) commit transaction
1610
+  (0.0ms) begin transaction
1611
+ ------------------------------------------
1612
+ CarTest: test_search_car_with_belong_to_id
1613
+ ------------------------------------------
1614
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
1615
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1616
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
1617
+  (0.1ms) rollback transaction
1618
+  (0.0ms) begin transaction
1619
+ ------------------------------------------
1620
+ CarTest: test_search_car_with_deep_through
1621
+ ------------------------------------------
1622
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
1623
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1624
+ Car Load (0.4ms) 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
+  (0.2ms) rollback transaction
1626
+  (0.0ms) begin transaction
1627
+ ----------------------------------
1628
+ CarTest: test_search_car_with_enum
1629
+ ----------------------------------
1630
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1631
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
1632
+  (0.0ms) rollback transaction
1633
+  (0.0ms) begin transaction
1634
+ ------------------------------------------
1635
+ CarTest: test_search_car_with_exact_search
1636
+ ------------------------------------------
1637
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1638
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
1639
+  (0.0ms) rollback transaction
1640
+  (0.0ms) begin transaction
1641
+ -------------------------------------------------------------
1642
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
1643
+ -------------------------------------------------------------
1644
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1645
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
1646
+  (0.0ms) rollback transaction
1647
+  (0.0ms) begin transaction
1648
+ -------------------------------------------------------
1649
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
1650
+ -------------------------------------------------------
1651
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1652
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
1653
+  (0.0ms) rollback transaction
1654
+  (0.0ms) begin transaction
1655
+ ------------------------------------------------------------------------
1656
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
1657
+ ------------------------------------------------------------------------
1658
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1659
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
1660
+  (0.0ms) rollback transaction
1661
+  (0.0ms) begin transaction
1662
+ ----------------------------------------
1663
+ CarTest: test_search_car_with_i18n_field
1664
+ ----------------------------------------
1665
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1666
+  (0.0ms) SAVEPOINT active_record_1
1667
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
1668
+ SQL (0.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.529847"]]
1669
+ SQL (0.4ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1671
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.540828' WHERE "cars"."id" = 131351955
1672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1673
+  (0.0ms) SAVEPOINT active_record_1
1674
+ SQL (1.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.544058"]]
1675
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1677
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.547528' WHERE "cars"."id" = 131351955
1678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1679
+  (0.0ms) SAVEPOINT active_record_1
1680
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.548980"]]
1681
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1683
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.551001' WHERE "cars"."id" = 131351955
1684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1685
+  (0.0ms) SAVEPOINT active_record_1
1686
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.552265"]]
1687
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1689
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.555677' WHERE "cars"."id" = 131351955
1690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1691
+  (0.1ms) SAVEPOINT active_record_1
1692
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.557714"]]
1693
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:18:21.559077"]]
1694
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:18:21.559786' WHERE "cars"."id" = 131351955
1695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1696
+ Car Load (0.1ms) 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
+  (0.7ms) rollback transaction
1698
+  (0.0ms) begin transaction
1699
+ -----------------------------------
1700
+ CarTest: test_search_car_with_scope
1701
+ -----------------------------------
1702
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1703
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
1704
+  (0.0ms) rollback transaction
1705
+  (0.0ms) begin transaction
1706
+ --------------------------------------
1707
+ CarTest: test_search_car_with_tags_AND
1708
+ --------------------------------------
1709
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1710
+  (0.0ms) SAVEPOINT active_record_1
1711
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
1712
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.574259"]]
1713
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1714
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1715
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1716
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1717
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1718
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.2ms) 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
1720
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1722
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1723
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1724
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1726
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1728
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1729
+ Car Load (0.3ms) SELECT 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
1730
+  (0.5ms) rollback transaction
1731
+  (0.0ms) begin transaction
1732
+ -------------------------------------
1733
+ CarTest: test_search_car_with_tags_OR
1734
+ -------------------------------------
1735
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1736
+  (0.0ms) SAVEPOINT active_record_1
1737
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:18:21.670491"]]
1739
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1740
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1741
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1742
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1743
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1744
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
1745
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:18:21.676138"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1747
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1748
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1749
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:18:21.678852"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1751
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1752
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1754
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
1755
+ Car Load (0.2ms) 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
+  (0.7ms) rollback transaction
1757
+  (0.0ms) begin transaction
1758
+ -------------------------------------
1759
+ CarTest: test_search_car_with_through
1760
+ -------------------------------------
1761
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
1762
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1763
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
1764
+  (0.1ms) rollback transaction
1765
+  (0.1ms) begin transaction
1766
+ -------------------------------------------------------
1767
+ SearchableModelsTest: test_module_is_correctly_included
1768
+ -------------------------------------------------------
1769
+  (0.0ms) rollback transaction
1770
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1771
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1772
+  (0.1ms) begin transaction
1773
+ Fixture Delete (0.3ms) DELETE FROM "cars"
1774
+ Fixture Insert (0.1ms) INSERT 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)
1775
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1777
+ Fixture Delete (0.1ms) DELETE FROM "components"
1778
+ Fixture Insert (0.1ms) INSERT 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)
1779
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1781
+ Fixture Delete (0.1ms) DELETE FROM "doors"
1782
+ Fixture Insert (0.1ms) INSERT 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)
1783
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1785
+ Fixture Delete (0.1ms) DELETE FROM "groups"
1786
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 972975755)
1787
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
1789
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:19:49', '2014-12-11 08:19:49', 202898348)
1791
+ Fixture Insert (0.1ms) 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
+  (5.0ms) commit transaction
1793
+  (0.1ms) begin transaction
1794
+ -------------------------------------------------------
1795
+ SearchableModelsTest: test_module_is_correctly_included
1796
+ -------------------------------------------------------
1797
+  (0.0ms) rollback transaction
1798
+  (0.0ms) begin transaction
1799
+ ------------------------------------------
1800
+ CarTest: test_search_car_with_belong_to_id
1801
+ ------------------------------------------
1802
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
1803
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1804
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
1805
+  (0.1ms) rollback transaction
1806
+  (0.0ms) begin transaction
1807
+ ------------------------------------------
1808
+ CarTest: test_search_car_with_deep_through
1809
+ ------------------------------------------
1810
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
1811
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1812
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
1814
+  (0.0ms) begin transaction
1815
+ ----------------------------------
1816
+ CarTest: test_search_car_with_enum
1817
+ ----------------------------------
1818
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1819
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
1820
+  (0.0ms) rollback transaction
1821
+  (0.0ms) begin transaction
1822
+ ------------------------------------------
1823
+ CarTest: test_search_car_with_exact_search
1824
+ ------------------------------------------
1825
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1826
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
1827
+  (0.0ms) rollback transaction
1828
+  (0.0ms) begin transaction
1829
+ -------------------------------------------------------------
1830
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
1831
+ -------------------------------------------------------------
1832
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1833
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
1834
+  (0.0ms) rollback transaction
1835
+  (0.0ms) begin transaction
1836
+ -------------------------------------------------------
1837
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
1838
+ -------------------------------------------------------
1839
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1840
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
1841
+  (0.0ms) rollback transaction
1842
+  (0.0ms) begin transaction
1843
+ ------------------------------------------------------------------------
1844
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
1845
+ ------------------------------------------------------------------------
1846
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1847
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
1848
+  (0.1ms) rollback transaction
1849
+  (0.0ms) begin transaction
1850
+ ----------------------------------------
1851
+ CarTest: test_search_car_with_i18n_field
1852
+ ----------------------------------------
1853
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1854
+  (0.1ms) SAVEPOINT active_record_1
1855
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
1856
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.280780"]]
1857
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1859
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.289189' WHERE "cars"."id" = 131351955
1860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1861
+  (0.1ms) SAVEPOINT active_record_1
1862
+ SQL (1.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.291151"]]
1863
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1865
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.294784' WHERE "cars"."id" = 131351955
1866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1867
+  (0.0ms) SAVEPOINT active_record_1
1868
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.296252"]]
1869
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1871
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.298569' WHERE "cars"."id" = 131351955
1872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1873
+  (0.0ms) SAVEPOINT active_record_1
1874
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.300064"]]
1875
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1877
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.302213' WHERE "cars"."id" = 131351955
1878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1879
+  (0.0ms) SAVEPOINT active_record_1
1880
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.303820"]]
1881
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:19:49.304857"]]
1882
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:19:49.305391' WHERE "cars"."id" = 131351955
1883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1884
+ Car Load (0.1ms) 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
+  (0.8ms) rollback transaction
1886
+  (0.0ms) begin transaction
1887
+ -----------------------------------
1888
+ CarTest: test_search_car_with_scope
1889
+ -----------------------------------
1890
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1891
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
1892
+  (0.0ms) rollback transaction
1893
+  (0.0ms) begin transaction
1894
+ --------------------------------------
1895
+ CarTest: test_search_car_with_tags_AND
1896
+ --------------------------------------
1897
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1898
+  (0.0ms) SAVEPOINT active_record_1
1899
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
1900
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.317395"]]
1901
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1902
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1903
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1904
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1905
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1906
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1908
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1910
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1911
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
1912
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1914
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1916
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1917
+ Car Load (0.2ms) SELECT 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
1918
+  (0.5ms) rollback transaction
1919
+  (0.1ms) begin transaction
1920
+ -------------------------------------
1921
+ CarTest: test_search_car_with_tags_OR
1922
+ -------------------------------------
1923
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1924
+  (0.0ms) SAVEPOINT active_record_1
1925
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:19:49.414309"]]
1927
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
1928
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
1929
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
1930
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
1931
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
1932
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
1933
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:19:49.419784"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1935
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
1936
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
1937
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:19:49.422511"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
1939
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
1940
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
1941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1942
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
1943
+ Car Load (0.2ms) 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
+  (0.6ms) rollback transaction
1945
+  (0.1ms) begin transaction
1946
+ -------------------------------------
1947
+ CarTest: test_search_car_with_through
1948
+ -------------------------------------
1949
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
1950
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1951
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
1952
+  (0.1ms) rollback transaction
1953
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1954
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1955
+  (0.1ms) begin transaction
1956
+ Fixture Delete (0.2ms) DELETE FROM "cars"
1957
+ Fixture Insert (0.1ms) INSERT 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)
1958
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1960
+ Fixture Delete (0.1ms) DELETE FROM "components"
1961
+ Fixture Insert (0.1ms) INSERT 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)
1962
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1964
+ Fixture Delete (0.1ms) DELETE FROM "doors"
1965
+ Fixture Insert (0.1ms) INSERT 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)
1966
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1968
+ Fixture Delete (0.1ms) DELETE FROM "groups"
1969
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 972975755)
1970
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
1972
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:21:15', '2014-12-11 08:21:15', 202898348)
1974
+ Fixture Insert (0.0ms) 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
+  (5.6ms) commit transaction
1976
+  (0.1ms) begin transaction
1977
+ ------------------------------------------
1978
+ CarTest: test_search_car_with_belong_to_id
1979
+ ------------------------------------------
1980
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
1981
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1982
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
1983
+  (0.1ms) rollback transaction
1984
+  (0.0ms) begin transaction
1985
+ ------------------------------------------
1986
+ CarTest: test_search_car_with_deep_through
1987
+ ------------------------------------------
1988
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
1989
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1990
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
1992
+  (0.0ms) begin transaction
1993
+ ----------------------------------
1994
+ CarTest: test_search_car_with_enum
1995
+ ----------------------------------
1996
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
1997
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
1998
+  (0.0ms) rollback transaction
1999
+  (0.0ms) begin transaction
2000
+ ------------------------------------------
2001
+ CarTest: test_search_car_with_exact_search
2002
+ ------------------------------------------
2003
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2004
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
2005
+  (0.0ms) rollback transaction
2006
+  (0.1ms) begin transaction
2007
+ -------------------------------------------------------------
2008
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
2009
+ -------------------------------------------------------------
2010
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2011
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
2012
+  (0.0ms) rollback transaction
2013
+  (0.0ms) begin transaction
2014
+ -------------------------------------------------------
2015
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
2016
+ -------------------------------------------------------
2017
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2018
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
2019
+  (0.0ms) rollback transaction
2020
+  (0.0ms) begin transaction
2021
+ ------------------------------------------------------------------------
2022
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
2023
+ ------------------------------------------------------------------------
2024
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2025
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
2026
+  (0.0ms) rollback transaction
2027
+  (0.1ms) begin transaction
2028
+ ----------------------------------------
2029
+ CarTest: test_search_car_with_i18n_field
2030
+ ----------------------------------------
2031
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2032
+  (0.0ms) SAVEPOINT active_record_1
2033
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
2034
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.482096"]]
2035
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2037
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.490853' WHERE "cars"."id" = 131351955
2038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2039
+  (0.0ms) SAVEPOINT active_record_1
2040
+ SQL (1.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.493062"]]
2041
+ SQL (0.3ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2043
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.497263' WHERE "cars"."id" = 131351955
2044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2045
+  (0.0ms) SAVEPOINT active_record_1
2046
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.499022"]]
2047
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2049
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.501967' WHERE "cars"."id" = 131351955
2050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2051
+  (0.0ms) SAVEPOINT active_record_1
2052
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.503585"]]
2053
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2055
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.506360' WHERE "cars"."id" = 131351955
2056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2057
+  (0.0ms) SAVEPOINT active_record_1
2058
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.508357"]]
2059
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:21:15.509671"]]
2060
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:21:15.510284' WHERE "cars"."id" = 131351955
2061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2062
+ Car Load (0.2ms) 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
+  (0.8ms) rollback transaction
2064
+  (0.1ms) begin transaction
2065
+ -----------------------------------
2066
+ CarTest: test_search_car_with_scope
2067
+ -----------------------------------
2068
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2069
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
2070
+  (0.1ms) rollback transaction
2071
+  (0.0ms) begin transaction
2072
+ --------------------------------------
2073
+ CarTest: test_search_car_with_tags_AND
2074
+ --------------------------------------
2075
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2076
+  (0.0ms) SAVEPOINT active_record_1
2077
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
2078
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.525740"]]
2079
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2080
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2081
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2082
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2083
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2084
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2086
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2088
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2089
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2090
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2092
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2094
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2095
+ Car Load (0.2ms) SELECT 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
2096
+  (0.6ms) rollback transaction
2097
+  (0.0ms) begin transaction
2098
+ -------------------------------------
2099
+ CarTest: test_search_car_with_tags_OR
2100
+ -------------------------------------
2101
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2102
+  (0.1ms) SAVEPOINT active_record_1
2103
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:21:15.616845"]]
2105
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2106
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2107
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2108
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2109
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2110
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
2111
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:21:15.624026"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2113
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2114
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2115
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:21:15.627349"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2117
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2118
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2120
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
2121
+ Car Load (0.2ms) 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
+  (0.7ms) rollback transaction
2123
+  (0.1ms) begin transaction
2124
+ -------------------------------------
2125
+ CarTest: test_search_car_with_through
2126
+ -------------------------------------
2127
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2128
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2129
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
2130
+  (0.1ms) rollback transaction
2131
+  (0.1ms) begin transaction
2132
+ --------------------------------------------------
2133
+ CarTest: test_search_car_with_through_on_any_field
2134
+ --------------------------------------------------
2135
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2136
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2137
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" ORDER BY "cars"."id" ASC
2138
+  (0.2ms) rollback transaction
2139
+  (0.1ms) begin transaction
2140
+ -------------------------------------------------------
2141
+ SearchableModelsTest: test_module_is_correctly_included
2142
+ -------------------------------------------------------
2143
+  (0.0ms) rollback transaction
2144
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2145
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2146
+  (0.1ms) begin transaction
2147
+ Fixture Delete (0.2ms) DELETE FROM "cars"
2148
+ Fixture Insert (0.1ms) INSERT 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)
2149
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2151
+ Fixture Delete (0.1ms) DELETE FROM "components"
2152
+ Fixture Insert (0.1ms) INSERT 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)
2153
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2155
+ Fixture Delete (0.1ms) DELETE FROM "doors"
2156
+ Fixture Insert (0.1ms) INSERT 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)
2157
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2159
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2160
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 972975755)
2161
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2163
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:22:31', '2014-12-11 08:22:31', 202898348)
2165
+ Fixture Insert (0.0ms) 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
+  (5.1ms) commit transaction
2167
+  (0.1ms) begin transaction
2168
+ ------------------------------------------
2169
+ CarTest: test_search_car_with_belong_to_id
2170
+ ------------------------------------------
2171
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
2172
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2173
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
2174
+  (0.1ms) rollback transaction
2175
+  (0.0ms) begin transaction
2176
+ ------------------------------------------
2177
+ CarTest: test_search_car_with_deep_through
2178
+ ------------------------------------------
2179
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
2180
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2181
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
2183
+  (0.0ms) begin transaction
2184
+ ----------------------------------
2185
+ CarTest: test_search_car_with_enum
2186
+ ----------------------------------
2187
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2188
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
2189
+  (0.0ms) rollback transaction
2190
+  (0.0ms) begin transaction
2191
+ ------------------------------------------
2192
+ CarTest: test_search_car_with_exact_search
2193
+ ------------------------------------------
2194
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2195
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
2196
+  (0.0ms) rollback transaction
2197
+  (0.0ms) begin transaction
2198
+ -------------------------------------------------------------
2199
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
2200
+ -------------------------------------------------------------
2201
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2202
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
2203
+  (0.0ms) rollback transaction
2204
+  (0.0ms) begin transaction
2205
+ -------------------------------------------------------
2206
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
2207
+ -------------------------------------------------------
2208
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2209
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
2210
+  (0.1ms) rollback transaction
2211
+  (0.0ms) begin transaction
2212
+ ------------------------------------------------------------------------
2213
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
2214
+ ------------------------------------------------------------------------
2215
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2216
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
2217
+  (0.0ms) rollback transaction
2218
+  (0.0ms) begin transaction
2219
+ ----------------------------------------
2220
+ CarTest: test_search_car_with_i18n_field
2221
+ ----------------------------------------
2222
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2223
+  (0.0ms) SAVEPOINT active_record_1
2224
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
2225
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.318435"]]
2226
+ SQL (0.4ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2228
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.331005' WHERE "cars"."id" = 131351955
2229
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2230
+  (0.1ms) SAVEPOINT active_record_1
2231
+ SQL (1.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.336747"]]
2232
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2234
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.340370' WHERE "cars"."id" = 131351955
2235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2236
+  (0.1ms) SAVEPOINT active_record_1
2237
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.341862"]]
2238
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2240
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.343991' WHERE "cars"."id" = 131351955
2241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2242
+  (0.0ms) SAVEPOINT active_record_1
2243
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.345440"]]
2244
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2246
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.347513' WHERE "cars"."id" = 131351955
2247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2248
+  (0.0ms) SAVEPOINT active_record_1
2249
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.348880"]]
2250
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:22:31.350222"]]
2251
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:22:31.350937' WHERE "cars"."id" = 131351955
2252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2253
+ Car Load (0.2ms) 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
+  (0.9ms) rollback transaction
2255
+  (0.1ms) begin transaction
2256
+ -----------------------------------
2257
+ CarTest: test_search_car_with_scope
2258
+ -----------------------------------
2259
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2260
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
2261
+  (0.1ms) rollback transaction
2262
+  (0.1ms) begin transaction
2263
+ --------------------------------------
2264
+ CarTest: test_search_car_with_tags_AND
2265
+ --------------------------------------
2266
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2267
+  (0.1ms) SAVEPOINT active_record_1
2268
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
2269
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.366871"]]
2270
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2271
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2272
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2273
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2274
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2275
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2277
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2279
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2280
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2281
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2283
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2285
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2286
+ Car Load (0.2ms) SELECT 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
2287
+  (0.5ms) rollback transaction
2288
+  (0.0ms) begin transaction
2289
+ -------------------------------------
2290
+ CarTest: test_search_car_with_tags_OR
2291
+ -------------------------------------
2292
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2293
+  (0.0ms) SAVEPOINT active_record_1
2294
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:22:31.456183"]]
2296
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2297
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2298
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2299
+ ActsAsTaggableOn::Tag Exists (0.0ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2300
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2301
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
2302
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:22:31.461596"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2304
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2305
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2306
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.0ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:22:31.464003"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2308
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2309
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2311
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
2312
+ Car Load (0.2ms) 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
+  (0.6ms) rollback transaction
2314
+  (0.1ms) begin transaction
2315
+ -------------------------------------
2316
+ CarTest: test_search_car_with_through
2317
+ -------------------------------------
2318
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2319
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2320
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
2321
+  (0.1ms) rollback transaction
2322
+  (0.0ms) begin transaction
2323
+ --------------------------------------------------
2324
+ CarTest: test_search_car_with_through_on_any_field
2325
+ --------------------------------------------------
2326
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2327
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2328
+ Car Load (0.2ms) 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
+  (0.2ms) rollback transaction
2330
+  (0.0ms) begin transaction
2331
+ -------------------------------------------------------
2332
+ SearchableModelsTest: test_module_is_correctly_included
2333
+ -------------------------------------------------------
2334
+  (0.0ms) rollback transaction
2335
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2336
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2337
+  (0.1ms) begin transaction
2338
+ Fixture Delete (0.2ms) DELETE FROM "cars"
2339
+ Fixture Insert (0.1ms) INSERT 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)
2340
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2342
+ Fixture Delete (0.1ms) DELETE FROM "components"
2343
+ Fixture Insert (0.1ms) INSERT 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)
2344
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2346
+ Fixture Delete (0.1ms) DELETE FROM "doors"
2347
+ Fixture Insert (0.1ms) INSERT 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)
2348
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2350
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2351
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 972975755)
2352
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2354
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:23:27', '2014-12-11 08:23:27', 202898348)
2356
+ Fixture Insert (0.1ms) 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
+  (5.2ms) commit transaction
2358
+  (0.1ms) begin transaction
2359
+ --------------------------------------------------
2360
+ CarTest: test_search_car_with_through_on_any_field
2361
+ --------------------------------------------------
2362
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2363
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2364
+ Car Load (0.3ms) 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
2365
+  (0.1ms) rollback transaction
2366
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2367
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2368
+  (0.1ms) begin transaction
2369
+ Fixture Delete (0.3ms) DELETE FROM "cars"
2370
+ Fixture Insert (0.2ms) INSERT 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)
2371
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2373
+ Fixture Delete (0.2ms) DELETE FROM "components"
2374
+ Fixture Insert (0.1ms) INSERT 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)
2375
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2377
+ Fixture Delete (0.2ms) DELETE FROM "doors"
2378
+ Fixture Insert (0.1ms) INSERT 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)
2379
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2381
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2382
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 972975755)
2383
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2385
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:23:55', '2014-12-11 08:23:55', 202898348)
2387
+ Fixture Insert (0.1ms) 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
+  (5.4ms) commit transaction
2389
+  (0.1ms) begin transaction
2390
+ --------------------------------------------------
2391
+ CarTest: test_search_car_with_through_on_any_field
2392
+ --------------------------------------------------
2393
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2394
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2395
+ Car Load (0.3ms) 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
2396
+  (0.4ms) rollback transaction
2397
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2398
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2399
+  (0.1ms) begin transaction
2400
+ Fixture Delete (0.2ms) DELETE FROM "cars"
2401
+ Fixture Insert (0.1ms) INSERT 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)
2402
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2404
+ Fixture Delete (0.1ms) DELETE FROM "components"
2405
+ Fixture Insert (0.1ms) INSERT 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)
2406
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2408
+ Fixture Delete (0.1ms) DELETE FROM "doors"
2409
+ Fixture Insert (0.1ms) INSERT 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)
2410
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2412
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2413
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 972975755)
2414
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2416
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:24:37', '2014-12-11 08:24:37', 202898348)
2418
+ Fixture Insert (0.0ms) 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
+  (1.1ms) commit transaction
2420
+  (0.0ms) begin transaction
2421
+ --------------------------------------------------
2422
+ CarTest: test_search_car_with_through_on_any_field
2423
+ --------------------------------------------------
2424
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2425
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2426
+ Car Load (0.3ms) 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
2427
+  (0.1ms) rollback transaction
2428
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2429
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2430
+  (0.1ms) begin transaction
2431
+ Fixture Delete (0.2ms) DELETE FROM "cars"
2432
+ Fixture Insert (0.1ms) INSERT 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)
2433
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2435
+ Fixture Delete (0.1ms) DELETE FROM "components"
2436
+ Fixture Insert (0.1ms) INSERT 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)
2437
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2439
+ Fixture Delete (0.1ms) DELETE FROM "doors"
2440
+ Fixture Insert (0.1ms) INSERT 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)
2441
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2443
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2444
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 972975755)
2445
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2447
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:24:42', '2014-12-11 08:24:42', 202898348)
2449
+ Fixture Insert (0.0ms) 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
+  (4.8ms) commit transaction
2451
+  (0.1ms) begin transaction
2452
+ -------------------------------------------------------
2453
+ SearchableModelsTest: test_module_is_correctly_included
2454
+ -------------------------------------------------------
2455
+  (0.0ms) rollback transaction
2456
+  (0.0ms) begin transaction
2457
+ ------------------------------------------
2458
+ CarTest: test_search_car_with_belong_to_id
2459
+ ------------------------------------------
2460
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
2461
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2462
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
2463
+  (0.1ms) rollback transaction
2464
+  (0.0ms) begin transaction
2465
+ ------------------------------------------
2466
+ CarTest: test_search_car_with_deep_through
2467
+ ------------------------------------------
2468
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
2469
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2470
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
2472
+  (0.0ms) begin transaction
2473
+ ----------------------------------
2474
+ CarTest: test_search_car_with_enum
2475
+ ----------------------------------
2476
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2477
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
2478
+  (0.0ms) rollback transaction
2479
+  (0.0ms) begin transaction
2480
+ ------------------------------------------
2481
+ CarTest: test_search_car_with_exact_search
2482
+ ------------------------------------------
2483
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2484
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
2485
+  (0.0ms) rollback transaction
2486
+  (0.1ms) begin transaction
2487
+ -------------------------------------------------------------
2488
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
2489
+ -------------------------------------------------------------
2490
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2491
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
2492
+  (0.1ms) rollback transaction
2493
+  (0.0ms) begin transaction
2494
+ -------------------------------------------------------
2495
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
2496
+ -------------------------------------------------------
2497
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2498
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
2499
+  (0.0ms) rollback transaction
2500
+  (0.0ms) begin transaction
2501
+ ------------------------------------------------------------------------
2502
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
2503
+ ------------------------------------------------------------------------
2504
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2505
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
2506
+  (0.0ms) rollback transaction
2507
+  (0.0ms) begin transaction
2508
+ ----------------------------------------
2509
+ CarTest: test_search_car_with_i18n_field
2510
+ ----------------------------------------
2511
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2512
+  (0.0ms) SAVEPOINT active_record_1
2513
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
2514
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.084171"]]
2515
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2517
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.092762' WHERE "cars"."id" = 131351955
2518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2519
+  (0.0ms) SAVEPOINT active_record_1
2520
+ SQL (1.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.095044"]]
2521
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2523
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.099830' WHERE "cars"."id" = 131351955
2524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2525
+  (0.0ms) SAVEPOINT active_record_1
2526
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.102186"]]
2527
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2529
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.105395' WHERE "cars"."id" = 131351955
2530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2531
+  (0.1ms) SAVEPOINT active_record_1
2532
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.107460"]]
2533
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2535
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.110691' WHERE "cars"."id" = 131351955
2536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.112687"]]
2539
+ SQL (0.2ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:24:42.114015"]]
2540
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:24:42.114650' WHERE "cars"."id" = 131351955
2541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2542
+ Car Load (0.2ms) 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
+  (1.0ms) rollback transaction
2544
+  (0.1ms) begin transaction
2545
+ -----------------------------------
2546
+ CarTest: test_search_car_with_scope
2547
+ -----------------------------------
2548
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2549
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
2550
+  (0.1ms) rollback transaction
2551
+  (0.0ms) begin transaction
2552
+ --------------------------------------
2553
+ CarTest: test_search_car_with_tags_AND
2554
+ --------------------------------------
2555
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2556
+  (0.0ms) SAVEPOINT active_record_1
2557
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
2558
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.127796"]]
2559
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2560
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2561
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2562
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2563
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2564
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2566
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2568
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2569
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2570
+ SQL (0.1ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2572
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2574
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2575
+ Car Load (0.2ms) SELECT 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
2576
+  (0.7ms) rollback transaction
2577
+  (0.1ms) begin transaction
2578
+ -------------------------------------
2579
+ CarTest: test_search_car_with_tags_OR
2580
+ -------------------------------------
2581
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2582
+  (0.1ms) SAVEPOINT active_record_1
2583
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:24:42.220471"]]
2585
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2586
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2587
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2588
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2589
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2590
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
2591
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:24:42.227575"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2593
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2594
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2595
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:24:42.230922"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2597
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2598
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2600
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
2601
+ Car Load (0.2ms) 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
+  (0.6ms) rollback transaction
2603
+  (0.1ms) begin transaction
2604
+ -------------------------------------
2605
+ CarTest: test_search_car_with_through
2606
+ -------------------------------------
2607
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2608
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2609
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
2610
+  (0.1ms) rollback transaction
2611
+  (0.1ms) begin transaction
2612
+ --------------------------------------------------
2613
+ CarTest: test_search_car_with_through_on_any_field
2614
+ --------------------------------------------------
2615
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2616
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2617
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
2619
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2620
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2621
+  (0.1ms) begin transaction
2622
+ Fixture Delete (0.2ms) DELETE FROM "cars"
2623
+ Fixture Insert (0.2ms) INSERT 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)
2624
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2626
+ Fixture Delete (0.1ms) DELETE FROM "components"
2627
+ Fixture Insert (0.1ms) INSERT 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)
2628
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2630
+ Fixture Delete (0.1ms) DELETE FROM "doors"
2631
+ Fixture Insert (0.1ms) INSERT 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)
2632
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2634
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2635
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 972975755)
2636
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2638
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:32:13', '2014-12-11 08:32:13', 202898348)
2640
+ Fixture Insert (0.1ms) 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
+  (5.4ms) commit transaction
2642
+  (0.1ms) begin transaction
2643
+ ------------------------------------------
2644
+ CarTest: test_search_car_with_belong_to_id
2645
+ ------------------------------------------
2646
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
2647
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2648
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
2649
+  (0.1ms) rollback transaction
2650
+  (0.0ms) begin transaction
2651
+ ------------------------------------------
2652
+ CarTest: test_search_car_with_deep_through
2653
+ ------------------------------------------
2654
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
2655
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2656
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
2658
+  (0.0ms) begin transaction
2659
+ ----------------------------------
2660
+ CarTest: test_search_car_with_enum
2661
+ ----------------------------------
2662
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2663
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
2664
+  (0.0ms) rollback transaction
2665
+  (0.0ms) begin transaction
2666
+ ------------------------------------------
2667
+ CarTest: test_search_car_with_exact_search
2668
+ ------------------------------------------
2669
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2670
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
2671
+  (0.0ms) rollback transaction
2672
+  (0.0ms) begin transaction
2673
+ -------------------------------------------------------------
2674
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
2675
+ -------------------------------------------------------------
2676
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2677
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
2678
+  (0.0ms) rollback transaction
2679
+  (0.0ms) begin transaction
2680
+ -------------------------------------------------------
2681
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
2682
+ -------------------------------------------------------
2683
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2684
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
2685
+  (0.0ms) rollback transaction
2686
+  (0.0ms) begin transaction
2687
+ ------------------------------------------------------------------------
2688
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
2689
+ ------------------------------------------------------------------------
2690
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2691
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
2692
+  (0.0ms) rollback transaction
2693
+  (0.0ms) begin transaction
2694
+ ----------------------------------------
2695
+ CarTest: test_search_car_with_i18n_field
2696
+ ----------------------------------------
2697
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2698
+  (0.0ms) SAVEPOINT active_record_1
2699
+ Car::Translation Load (0.2ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
2700
+ SQL (0.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.565329"]]
2701
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2703
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.576506' WHERE "cars"."id" = 131351955
2704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2705
+  (0.1ms) SAVEPOINT active_record_1
2706
+ SQL (0.9ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.578953"]]
2707
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2709
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.582453' WHERE "cars"."id" = 131351955
2710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2711
+  (0.0ms) SAVEPOINT active_record_1
2712
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.584048"]]
2713
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2715
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.586874' WHERE "cars"."id" = 131351955
2716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2717
+  (0.0ms) SAVEPOINT active_record_1
2718
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.588807"]]
2719
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2721
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.592592' WHERE "cars"."id" = 131351955
2722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2723
+  (0.0ms) SAVEPOINT active_record_1
2724
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.594165"]]
2725
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:32:13.595120"]]
2726
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:13.595593' WHERE "cars"."id" = 131351955
2727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2728
+ Car Load (0.1ms) 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
+  (0.8ms) rollback transaction
2730
+  (0.0ms) begin transaction
2731
+ -----------------------------------
2732
+ CarTest: test_search_car_with_scope
2733
+ -----------------------------------
2734
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2735
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
2736
+  (0.0ms) rollback transaction
2737
+  (0.0ms) begin transaction
2738
+ --------------------------------------
2739
+ CarTest: test_search_car_with_tags_AND
2740
+ --------------------------------------
2741
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2742
+  (0.0ms) SAVEPOINT active_record_1
2743
+ ActsAsTaggableOn::Tag Load (0.3ms) 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"]]
2744
+ SQL (0.6ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.609214"]]
2745
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2746
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2747
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2748
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2749
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2750
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2752
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2754
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2755
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2756
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2758
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2760
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2761
+ Car Load (0.2ms) SELECT 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
2762
+  (0.6ms) rollback transaction
2763
+  (0.1ms) begin transaction
2764
+ -------------------------------------
2765
+ CarTest: test_search_car_with_tags_OR
2766
+ -------------------------------------
2767
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2768
+  (0.0ms) SAVEPOINT active_record_1
2769
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:13.700177"]]
2771
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2772
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2773
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2774
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2775
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2776
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
2777
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:13.705274"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2779
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2780
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2781
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:13.708149"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2783
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2784
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2786
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
2787
+ Car Load (0.2ms) 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
+  (0.6ms) rollback transaction
2789
+  (0.1ms) begin transaction
2790
+ -------------------------------------
2791
+ CarTest: test_search_car_with_through
2792
+ -------------------------------------
2793
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2794
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2795
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
2796
+  (0.1ms) rollback transaction
2797
+  (0.0ms) begin transaction
2798
+ --------------------------------------------------
2799
+ CarTest: test_search_car_with_through_on_any_field
2800
+ --------------------------------------------------
2801
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2802
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2803
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
2805
+  (0.0ms) begin transaction
2806
+ -------------------------------------------------------
2807
+ SearchableModelsTest: test_module_is_correctly_included
2808
+ -------------------------------------------------------
2809
+  (0.0ms) rollback transaction
2810
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2811
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2812
+  (0.1ms) begin transaction
2813
+ Fixture Delete (0.2ms) DELETE FROM "cars"
2814
+ Fixture Insert (0.1ms) INSERT 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)
2815
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2817
+ Fixture Delete (0.2ms) DELETE FROM "components"
2818
+ Fixture Insert (0.1ms) INSERT 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)
2819
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2821
+ Fixture Delete (0.1ms) DELETE FROM "doors"
2822
+ Fixture Insert (0.1ms) INSERT 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)
2823
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2825
+ Fixture Delete (0.1ms) DELETE FROM "groups"
2826
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 972975755)
2827
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
2829
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:32:54', '2014-12-11 08:32:54', 202898348)
2831
+ Fixture Insert (0.1ms) 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
+  (4.9ms) commit transaction
2833
+  (0.1ms) begin transaction
2834
+ ------------------------------------------
2835
+ CarTest: test_search_car_with_belong_to_id
2836
+ ------------------------------------------
2837
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
2838
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2839
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
2840
+  (0.1ms) rollback transaction
2841
+  (0.0ms) begin transaction
2842
+ ------------------------------------------
2843
+ CarTest: test_search_car_with_deep_through
2844
+ ------------------------------------------
2845
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
2846
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2847
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
2849
+  (0.0ms) begin transaction
2850
+ ----------------------------------
2851
+ CarTest: test_search_car_with_enum
2852
+ ----------------------------------
2853
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2854
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
2855
+  (0.0ms) rollback transaction
2856
+  (0.1ms) begin transaction
2857
+ ------------------------------------------
2858
+ CarTest: test_search_car_with_exact_search
2859
+ ------------------------------------------
2860
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2861
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
2862
+  (0.0ms) rollback transaction
2863
+  (0.0ms) begin transaction
2864
+ -------------------------------------------------------------
2865
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
2866
+ -------------------------------------------------------------
2867
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2868
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
2869
+  (0.0ms) rollback transaction
2870
+  (0.0ms) begin transaction
2871
+ -------------------------------------------------------
2872
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
2873
+ -------------------------------------------------------
2874
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2875
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
2876
+  (0.0ms) rollback transaction
2877
+  (0.0ms) begin transaction
2878
+ ------------------------------------------------------------------------
2879
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
2880
+ ------------------------------------------------------------------------
2881
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2882
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
2883
+  (0.0ms) rollback transaction
2884
+  (0.0ms) begin transaction
2885
+ ----------------------------------------
2886
+ CarTest: test_search_car_with_i18n_field
2887
+ ----------------------------------------
2888
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2889
+  (0.0ms) SAVEPOINT active_record_1
2890
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
2891
+ SQL (0.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.189031"]]
2892
+ SQL (0.3ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2894
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.202939' WHERE "cars"."id" = 131351955
2895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2896
+  (0.1ms) SAVEPOINT active_record_1
2897
+ SQL (0.9ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.205305"]]
2898
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2900
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.208601' WHERE "cars"."id" = 131351955
2901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2902
+  (0.0ms) SAVEPOINT active_record_1
2903
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.210057"]]
2904
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2906
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.212280' WHERE "cars"."id" = 131351955
2907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2908
+  (0.0ms) SAVEPOINT active_record_1
2909
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.213834"]]
2910
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2912
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.216038' WHERE "cars"."id" = 131351955
2913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2914
+  (0.0ms) SAVEPOINT active_record_1
2915
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.217315"]]
2916
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:32:54.218252"]]
2917
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:32:54.218731' WHERE "cars"."id" = 131351955
2918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2919
+ Car Load (0.1ms) 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
+  (0.8ms) rollback transaction
2921
+  (0.0ms) begin transaction
2922
+ -----------------------------------
2923
+ CarTest: test_search_car_with_scope
2924
+ -----------------------------------
2925
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2926
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
2927
+  (0.0ms) rollback transaction
2928
+  (0.0ms) begin transaction
2929
+ --------------------------------------
2930
+ CarTest: test_search_car_with_tags_AND
2931
+ --------------------------------------
2932
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2933
+  (0.0ms) SAVEPOINT active_record_1
2934
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
2935
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.230478"]]
2936
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2937
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2938
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2939
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2940
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2941
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2943
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2945
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2946
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
2947
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2949
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2951
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2952
+ Car Load (0.2ms) SELECT 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
2953
+  (0.7ms) rollback transaction
2954
+  (0.1ms) begin transaction
2955
+ -------------------------------------
2956
+ CarTest: test_search_car_with_tags_OR
2957
+ -------------------------------------
2958
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2959
+  (0.1ms) SAVEPOINT active_record_1
2960
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:32:54.332249"]]
2962
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
2963
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
2964
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
2965
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
2966
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
2967
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
2968
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:54.339412"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2970
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
2971
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
2972
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:32:54.342657"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
2974
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
2975
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
2976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2977
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
2978
+ Car Load (0.2ms) 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
+  (0.5ms) rollback transaction
2980
+  (0.1ms) begin transaction
2981
+ -------------------------------------
2982
+ CarTest: test_search_car_with_through
2983
+ -------------------------------------
2984
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
2985
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2986
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
2987
+  (0.1ms) rollback transaction
2988
+  (0.0ms) begin transaction
2989
+ -----------------------------------------------
2990
+ CarTest: test_search_car_with_through_and_fuzzy
2991
+ -----------------------------------------------
2992
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
2993
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%')) ORDER BY "cars"."id" ASC
2994
+  (0.1ms) rollback transaction
2995
+  (0.0ms) begin transaction
2996
+ --------------------------------------------------
2997
+ CarTest: test_search_car_with_through_on_any_field
2998
+ --------------------------------------------------
2999
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3000
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3001
+ Car Load (0.2ms) 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
+  (0.1ms) rollback transaction
3003
+  (0.0ms) begin transaction
3004
+ -------------------------------------------------------
3005
+ SearchableModelsTest: test_module_is_correctly_included
3006
+ -------------------------------------------------------
3007
+  (0.0ms) rollback transaction
3008
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3009
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3010
+ Migrating to AddManufacturerToDoors (20141211083424)
3011
+  (0.1ms) begin transaction
3012
+  (0.4ms) ALTER TABLE "doors" ADD "manufacturer" varchar(255)
3013
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211083424"]]
3014
+  (4.8ms) commit transaction
3015
+  (0.1ms) begin transaction
3016
+ Fixture Delete (0.3ms) DELETE FROM "cars"
3017
+ Fixture Insert (0.2ms) INSERT 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)
3018
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3020
+ Fixture Delete (0.1ms) DELETE FROM "components"
3021
+ Fixture Insert (0.1ms) INSERT 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)
3022
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3024
+ Fixture Delete (0.1ms) DELETE FROM "doors"
3025
+ Fixture Insert (0.1ms) INSERT 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)
3026
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3028
+ Fixture Delete (0.1ms) DELETE FROM "groups"
3029
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 972975755)
3030
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
3032
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:35:16', '2014-12-11 08:35:16', 202898348)
3034
+ Fixture Insert (0.0ms) 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
+  (0.9ms) commit transaction
3036
+  (0.0ms) begin transaction
3037
+ ------------------------------------------
3038
+ CarTest: test_search_car_with_belong_to_id
3039
+ ------------------------------------------
3040
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
3041
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3042
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
3043
+  (0.1ms) rollback transaction
3044
+  (0.0ms) begin transaction
3045
+ ------------------------------------------
3046
+ CarTest: test_search_car_with_deep_through
3047
+ ------------------------------------------
3048
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
3049
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3050
+ Car Load (0.2ms) 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
+  (0.0ms) rollback transaction
3052
+  (0.0ms) begin transaction
3053
+ ----------------------------------
3054
+ CarTest: test_search_car_with_enum
3055
+ ----------------------------------
3056
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3057
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
3058
+  (0.1ms) rollback transaction
3059
+  (0.1ms) begin transaction
3060
+ ------------------------------------------
3061
+ CarTest: test_search_car_with_exact_search
3062
+ ------------------------------------------
3063
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3064
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
3065
+  (0.1ms) rollback transaction
3066
+  (0.0ms) begin transaction
3067
+ -------------------------------------------------------------
3068
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
3069
+ -------------------------------------------------------------
3070
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3071
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
3072
+  (0.1ms) rollback transaction
3073
+  (0.0ms) begin transaction
3074
+ -------------------------------------------------------
3075
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
3076
+ -------------------------------------------------------
3077
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3078
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
3079
+  (0.0ms) rollback transaction
3080
+  (0.0ms) begin transaction
3081
+ ------------------------------------------------------------------------
3082
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
3083
+ ------------------------------------------------------------------------
3084
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3085
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
3086
+  (0.0ms) rollback transaction
3087
+  (0.0ms) begin transaction
3088
+ ----------------------------------------
3089
+ CarTest: test_search_car_with_i18n_field
3090
+ ----------------------------------------
3091
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3092
+  (0.0ms) SAVEPOINT active_record_1
3093
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
3094
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.504104"]]
3095
+ SQL (0.6ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3097
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.517159' WHERE "cars"."id" = 131351955
3098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3099
+  (0.1ms) SAVEPOINT active_record_1
3100
+ SQL (1.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.520855"]]
3101
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3103
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.527053' WHERE "cars"."id" = 131351955
3104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3105
+  (0.0ms) SAVEPOINT active_record_1
3106
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.529593"]]
3107
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3109
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.535173' WHERE "cars"."id" = 131351955
3110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3111
+  (0.0ms) SAVEPOINT active_record_1
3112
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.537585"]]
3113
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3115
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.541554' WHERE "cars"."id" = 131351955
3116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3117
+  (0.0ms) SAVEPOINT active_record_1
3118
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.543735"]]
3119
+ SQL (0.2ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:35:16.545606"]]
3120
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:16.546539' WHERE "cars"."id" = 131351955
3121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3122
+ Car Load (0.3ms) 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
+  (0.9ms) rollback transaction
3124
+  (0.1ms) begin transaction
3125
+ -----------------------------------
3126
+ CarTest: test_search_car_with_scope
3127
+ -----------------------------------
3128
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3129
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
3130
+  (0.0ms) rollback transaction
3131
+  (0.0ms) begin transaction
3132
+ --------------------------------------
3133
+ CarTest: test_search_car_with_tags_AND
3134
+ --------------------------------------
3135
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3136
+  (0.0ms) SAVEPOINT active_record_1
3137
+ ActsAsTaggableOn::Tag Load (0.2ms) 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"]]
3138
+ SQL (0.5ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.564600"]]
3139
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3140
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
3141
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
3142
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
3143
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
3144
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
3146
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
3148
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
3149
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
3150
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
3152
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
3153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3154
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3155
+ Car Load (0.2ms) SELECT 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
3156
+  (0.7ms) rollback transaction
3157
+  (0.0ms) begin transaction
3158
+ -------------------------------------
3159
+ CarTest: test_search_car_with_tags_OR
3160
+ -------------------------------------
3161
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3162
+  (0.0ms) SAVEPOINT active_record_1
3163
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:16.684094"]]
3165
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3166
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
3167
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
3168
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
3169
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
3170
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
3171
+ ActsAsTaggableOn::Tagging Exists (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:16.691705"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3173
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
3174
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
3175
+ ActsAsTaggableOn::Tagging Exists (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:16.695785"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3177
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
3178
+ SQL (0.2ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
3179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3180
+ ActsAsTaggableOn::Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
3181
+ Car Load (0.4ms) 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
+  (0.6ms) rollback transaction
3183
+  (0.1ms) begin transaction
3184
+ -------------------------------------
3185
+ CarTest: test_search_car_with_through
3186
+ -------------------------------------
3187
+ Component Load (0.3ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3188
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3189
+ Car Load (0.3ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
3190
+  (0.1ms) rollback transaction
3191
+  (0.1ms) begin transaction
3192
+ -----------------------------------------------
3193
+ CarTest: test_search_car_with_through_and_fuzzy
3194
+ -----------------------------------------------
3195
+ Car Load (0.4ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3196
+ Car Load (0.5ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%')) ORDER BY "cars"."id" ASC
3197
+  (0.2ms) rollback transaction
3198
+  (0.1ms) begin transaction
3199
+ --------------------------------------------------
3200
+ CarTest: test_search_car_with_through_on_any_field
3201
+ --------------------------------------------------
3202
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3203
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3204
+ Car Load (0.4ms) 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
+  (0.1ms) rollback transaction
3206
+  (0.1ms) begin transaction
3207
+ -------------------------------------------------------
3208
+ SearchableModelsTest: test_module_is_correctly_included
3209
+ -------------------------------------------------------
3210
+  (0.0ms) rollback transaction
3211
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3212
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3213
+  (0.1ms) begin transaction
3214
+ Fixture Delete (0.3ms) DELETE FROM "cars"
3215
+ Fixture Insert (0.1ms) INSERT 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)
3216
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3218
+ Fixture Delete (0.1ms) DELETE FROM "components"
3219
+ Fixture Insert (0.1ms) INSERT 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)
3220
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3222
+ Fixture Delete (0.1ms) DELETE FROM "doors"
3223
+ Fixture Insert (0.1ms) INSERT 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)
3224
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3226
+ Fixture Delete (0.1ms) DELETE FROM "groups"
3227
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 972975755)
3228
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
3230
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:35:40', '2014-12-11 08:35:40', 202898348)
3232
+ Fixture Insert (0.0ms) 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
+  (5.1ms) commit transaction
3234
+  (0.1ms) begin transaction
3235
+ -------------------------------------------------------
3236
+ SearchableModelsTest: test_module_is_correctly_included
3237
+ -------------------------------------------------------
3238
+  (0.0ms) rollback transaction
3239
+  (0.1ms) begin transaction
3240
+ ------------------------------------------
3241
+ CarTest: test_search_car_with_belong_to_id
3242
+ ------------------------------------------
3243
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
3244
+  (0.2ms) rollback transaction
3245
+  (0.1ms) begin transaction
3246
+ ------------------------------------------
3247
+ CarTest: test_search_car_with_deep_through
3248
+ ------------------------------------------
3249
+ Provider Load (0.2ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
3250
+  (0.1ms) rollback transaction
3251
+  (0.0ms) begin transaction
3252
+ ----------------------------------
3253
+ CarTest: test_search_car_with_enum
3254
+ ----------------------------------
3255
+  (0.1ms) rollback transaction
3256
+  (0.1ms) begin transaction
3257
+ ------------------------------------------
3258
+ CarTest: test_search_car_with_exact_search
3259
+ ------------------------------------------
3260
+  (0.2ms) rollback transaction
3261
+  (0.1ms) begin transaction
3262
+ -------------------------------------------------------------
3263
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
3264
+ -------------------------------------------------------------
3265
+  (0.1ms) rollback transaction
3266
+  (0.1ms) begin transaction
3267
+ -------------------------------------------------------
3268
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
3269
+ -------------------------------------------------------
3270
+  (0.1ms) rollback transaction
3271
+  (0.0ms) begin transaction
3272
+ ------------------------------------------------------------------------
3273
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
3274
+ ------------------------------------------------------------------------
3275
+  (0.1ms) rollback transaction
3276
+  (0.1ms) begin transaction
3277
+ ----------------------------------------
3278
+ CarTest: test_search_car_with_i18n_field
3279
+ ----------------------------------------
3280
+ Car Load (0.4ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3281
+  (0.1ms) SAVEPOINT active_record_1
3282
+ Car::Translation Load (0.2ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
3283
+ SQL (0.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.049476"]]
3284
+ SQL (0.5ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3286
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.066950' WHERE "cars"."id" = 131351955
3287
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3288
+  (0.1ms) SAVEPOINT active_record_1
3289
+ SQL (1.5ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.072217"]]
3290
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3292
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.077214' WHERE "cars"."id" = 131351955
3293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3294
+  (0.0ms) SAVEPOINT active_record_1
3295
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.079158"]]
3296
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3298
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.082096' WHERE "cars"."id" = 131351955
3299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3300
+  (0.0ms) SAVEPOINT active_record_1
3301
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.083805"]]
3302
+ SQL (0.3ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3304
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.088164' WHERE "cars"."id" = 131351955
3305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3306
+  (0.0ms) SAVEPOINT active_record_1
3307
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.090704"]]
3308
+ SQL (0.2ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 08:35:41.092745"]]
3309
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 08:35:41.093834' WHERE "cars"."id" = 131351955
3310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3311
+  (0.9ms) rollback transaction
3312
+  (0.1ms) begin transaction
3313
+ -----------------------------------
3314
+ CarTest: test_search_car_with_scope
3315
+ -----------------------------------
3316
+  (0.1ms) rollback transaction
3317
+  (0.2ms) begin transaction
3318
+ --------------------------------------
3319
+ CarTest: test_search_car_with_tags_AND
3320
+ --------------------------------------
3321
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3322
+  (0.1ms) SAVEPOINT active_record_1
3323
+ ActsAsTaggableOn::Tag Load (0.4ms) 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
+ SQL (0.6ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.125094"]]
3325
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3326
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
3327
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
3328
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
3329
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
3330
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
3331
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:41.231281"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3333
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
3334
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
3335
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.0ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:41.234715"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3337
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
3338
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
3339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3340
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3341
+  (0.5ms) rollback transaction
3342
+  (0.1ms) begin transaction
3343
+ -------------------------------------
3344
+ CarTest: test_search_car_with_tags_OR
3345
+ -------------------------------------
3346
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3347
+  (0.1ms) SAVEPOINT active_record_1
3348
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 08:35:41.242744"]]
3350
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3351
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
3352
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
3353
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
3354
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
3355
+ ActsAsTaggableOn::Tag Load (0.1ms) 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"]]
3356
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:41.250913"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3358
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
3359
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
3360
+ ActsAsTaggableOn::Tagging Exists (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 08:35:41.254669"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3362
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
3363
+ SQL (0.2ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
3364
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3365
+ ActsAsTaggableOn::Tag Load (0.5ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
3366
+  (1.0ms) rollback transaction
3367
+  (0.2ms) begin transaction
3368
+ -------------------------------------
3369
+ CarTest: test_search_car_with_through
3370
+ -------------------------------------
3371
+ Component Load (0.4ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3372
+  (0.1ms) rollback transaction
3373
+  (0.1ms) begin transaction
3374
+ -----------------------------------------------
3375
+ CarTest: test_search_car_with_through_and_fuzzy
3376
+ -----------------------------------------------
3377
+  (0.1ms) rollback transaction
3378
+  (0.1ms) begin transaction
3379
+ --------------------------------------------------
3380
+ CarTest: test_search_car_with_through_on_any_field
3381
+ --------------------------------------------------
3382
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3383
+  (0.2ms) rollback transaction
3384
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3385
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3386
+  (0.1ms) begin transaction
3387
+ Fixture Delete (0.3ms) DELETE FROM "cars"
3388
+ Fixture Insert (0.2ms) INSERT 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)
3389
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3391
+ Fixture Delete (0.1ms) DELETE FROM "components"
3392
+ Fixture Insert (0.1ms) INSERT 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)
3393
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3395
+ Fixture Delete (0.1ms) DELETE FROM "doors"
3396
+ Fixture Insert (0.1ms) INSERT 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)
3397
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3399
+ Fixture Delete (0.1ms) DELETE FROM "groups"
3400
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 972975755)
3401
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
3403
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:36:11', '2014-12-11 08:36:11', 202898348)
3405
+ Fixture Insert (0.1ms) 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
+  (5.0ms) commit transaction
3407
+  (0.1ms) begin transaction
3408
+ -----------------------------------------------
3409
+ CarTest: test_search_car_with_through_and_fuzzy
3410
+ -----------------------------------------------
3411
+  (0.1ms) rollback transaction
3412
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3413
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3414
+  (0.1ms) begin transaction
3415
+ Fixture Delete (0.3ms) DELETE FROM "cars"
3416
+ Fixture Insert (0.2ms) INSERT 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)
3417
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3419
+ Fixture Delete (0.1ms) DELETE FROM "components"
3420
+ Fixture Insert (0.1ms) INSERT 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)
3421
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3423
+ Fixture Delete (0.1ms) DELETE FROM "doors"
3424
+ Fixture Insert (0.1ms) INSERT 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)
3425
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3427
+ Fixture Delete (0.1ms) DELETE FROM "groups"
3428
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 972975755)
3429
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
3431
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:37:29', '2014-12-11 08:37:29', 202898348)
3433
+ Fixture Insert (0.1ms) 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
+  (0.9ms) commit transaction
3435
+  (0.0ms) begin transaction
3436
+ -----------------------------------------------
3437
+ CarTest: test_search_car_with_through_and_fuzzy
3438
+ -----------------------------------------------
3439
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3440
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3441
+  (0.1ms) begin transaction
3442
+ Fixture Delete (0.3ms) DELETE FROM "cars"
3443
+ Fixture Insert (0.2ms) INSERT 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)
3444
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3446
+ Fixture Delete (0.1ms) DELETE FROM "components"
3447
+ Fixture Insert (0.1ms) INSERT 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)
3448
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3450
+ Fixture Delete (0.1ms) DELETE FROM "doors"
3451
+ Fixture Insert (0.1ms) INSERT 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)
3452
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3454
+ Fixture Delete (0.1ms) DELETE FROM "groups"
3455
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 972975755)
3456
+ Fixture Insert (0.1ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
3458
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 08:37:50', '2014-12-11 08:37:50', 202898348)
3460
+ Fixture Insert (0.1ms) 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
+  (5.2ms) commit transaction
3462
+  (0.1ms) begin transaction
3463
+ -----------------------------------------------
3464
+ CarTest: test_search_car_with_through_and_fuzzy
3465
+ -----------------------------------------------
3466
+  (0.1ms) rollback transaction
3467
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3468
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3469
+  (0.1ms) begin transaction
3470
+ Fixture Delete (0.2ms) DELETE FROM "cars"
3471
+ Fixture Insert (0.1ms) INSERT 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)
3472
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3474
+ Fixture Delete (0.1ms) DELETE FROM "components"
3475
+ Fixture Insert (0.1ms) INSERT 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)
3476
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
3478
+ Fixture Delete (0.1ms) DELETE FROM "doors"
3479
+ Fixture Insert (0.1ms) INSERT 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)
3480
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
3482
+ Fixture Delete (0.1ms) DELETE FROM "groups"
3483
+ Fixture Insert (0.0ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 972975755)
3484
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.1ms) DELETE FROM "providers"
3486
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2014-12-11 09:25:26', '2014-12-11 09:25:26', 202898348)
3488
+ Fixture Insert (0.0ms) 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
+  (0.9ms) commit transaction
3490
+  (0.0ms) begin transaction
3491
+ ------------------------------------------
3492
+ CarTest: test_search_car_with_belong_to_id
3493
+ ------------------------------------------
3494
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
3495
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3496
+ Car Load (0.3ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = 266440024 ORDER BY "cars"."id" ASC
3497
+  (0.2ms) rollback transaction
3498
+  (0.1ms) begin transaction
3499
+ ------------------------------------------
3500
+ CarTest: test_search_car_with_deep_through
3501
+ ------------------------------------------
3502
+ Provider Load (0.2ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
3503
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3504
+ Car Load (0.6ms) 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
+  (0.1ms) rollback transaction
3506
+  (0.1ms) begin transaction
3507
+ ----------------------------------
3508
+ CarTest: test_search_car_with_enum
3509
+ ----------------------------------
3510
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3511
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = 2 ORDER BY "cars"."id" ASC
3512
+  (0.1ms) rollback transaction
3513
+  (0.1ms) begin transaction
3514
+ ------------------------------------------
3515
+ CarTest: test_search_car_with_exact_search
3516
+ ------------------------------------------
3517
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3518
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = 2 ORDER BY "cars"."id" ASC
3519
+  (0.1ms) rollback transaction
3520
+  (0.0ms) begin transaction
3521
+ -------------------------------------------------------------
3522
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
3523
+ -------------------------------------------------------------
3524
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3525
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
3526
+  (0.1ms) rollback transaction
3527
+  (0.0ms) begin transaction
3528
+ -------------------------------------------------------
3529
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
3530
+ -------------------------------------------------------
3531
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3532
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
3533
+  (0.0ms) rollback transaction
3534
+  (0.0ms) begin transaction
3535
+ ------------------------------------------------------------------------
3536
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
3537
+ ------------------------------------------------------------------------
3538
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3539
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
3540
+  (0.0ms) rollback transaction
3541
+  (0.0ms) begin transaction
3542
+ ----------------------------------------
3543
+ CarTest: test_search_car_with_i18n_field
3544
+ ----------------------------------------
3545
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3546
+  (0.0ms) SAVEPOINT active_record_1
3547
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
3548
+ SQL (0.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.286904"]]
3549
+ SQL (0.3ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3551
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.298321' WHERE "cars"."id" = 131351955
3552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3553
+  (0.0ms) SAVEPOINT active_record_1
3554
+ SQL (1.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.303293"]]
3555
+ SQL (0.2ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3557
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.307944' WHERE "cars"."id" = 131351955
3558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3559
+  (0.0ms) SAVEPOINT active_record_1
3560
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.309769"]]
3561
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3563
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.312222' WHERE "cars"."id" = 131351955
3564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3565
+  (0.0ms) SAVEPOINT active_record_1
3566
+ SQL (0.0ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.313668"]]
3567
+ SQL (0.1ms) INSERT INTO "car_translations" ("car_id", "commercial_name", "created_at", "locale", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3569
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.316161' WHERE "cars"."id" = 131351955
3570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3571
+  (0.0ms) SAVEPOINT active_record_1
3572
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.317580"]]
3573
+ SQL (0.1ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = 4 [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2014-12-11 09:25:26.318559"]]
3574
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2014-12-11 09:25:26.319094' WHERE "cars"."id" = 131351955
3575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3576
+ Car Load (0.2ms) 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
+  (0.7ms) rollback transaction
3578
+  (0.1ms) begin transaction
3579
+ -----------------------------------
3580
+ CarTest: test_search_car_with_scope
3581
+ -----------------------------------
3582
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3583
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = '1990-10-20' ORDER BY "cars"."id" ASC
3584
+  (0.1ms) rollback transaction
3585
+  (0.0ms) begin transaction
3586
+ --------------------------------------
3587
+ CarTest: test_search_car_with_tags_AND
3588
+ --------------------------------------
3589
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3590
+  (0.0ms) SAVEPOINT active_record_1
3591
+ ActsAsTaggableOn::Tag Load (0.2ms) 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"]]
3592
+ SQL (0.6ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.336316"]]
3593
+ ActsAsTaggableOn::Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3594
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
3595
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
3596
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
3597
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
3598
+ ActsAsTaggableOn::Tag Load (0.0ms) 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
+ ActsAsTaggableOn::Tagging Exists (0.2ms) 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
3600
+ SQL (0.2ms) 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
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
3602
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
3603
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
3604
+ SQL (0.0ms) 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
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
3606
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
3607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3608
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3609
+ Car Load (0.2ms) SELECT 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
3610
+  (0.5ms) rollback transaction
3611
+  (0.1ms) begin transaction
3612
+ -------------------------------------
3613
+ CarTest: test_search_car_with_tags_OR
3614
+ -------------------------------------
3615
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3616
+  (0.1ms) SAVEPOINT active_record_1
3617
+ ActsAsTaggableOn::Tag Load (0.1ms) 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
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = 131351955 [["updated_at", "2014-12-11 09:25:26.466052"]]
3619
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
3620
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
3621
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
3622
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
3623
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
3624
+ ActsAsTaggableOn::Tag Load (0.0ms) 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"]]
3625
+ ActsAsTaggableOn::Tagging Exists (0.2ms) 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
+ SQL (0.2ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 09:25:26.473964"], ["tag_id", 1], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3627
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
3628
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
3629
+ ActsAsTaggableOn::Tagging Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["context", "tags"], ["created_at", "2014-12-11 09:25:26.477959"], ["tag_id", 2], ["taggable_id", 131351955], ["taggable_type", "Car"]]
3631
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
3632
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 2
3633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3634
+ ActsAsTaggableOn::Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
3635
+ Car Load (0.4ms) 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
+  (0.9ms) rollback transaction
3637
+  (0.2ms) begin transaction
3638
+ -------------------------------------
3639
+ CarTest: test_search_car_with_through
3640
+ -------------------------------------
3641
+ Component Load (0.3ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3642
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3643
+ Car Load (0.3ms) SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC
3644
+  (0.1ms) rollback transaction
3645
+  (0.1ms) begin transaction
3646
+ --------------------------------------------------
3647
+ CarTest: test_search_car_with_through_on_any_field
3648
+ --------------------------------------------------
3649
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
3650
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
3651
+ Car Load (0.3ms) 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
+  (0.1ms) rollback transaction
3653
+  (0.1ms) begin transaction
3654
+ -------------------------------------------------------
3655
+ SearchableModelsTest: test_module_is_correctly_included
3656
+ -------------------------------------------------------
3657
+  (0.0ms) rollback transaction