searchable_models 0.1.4 → 0.2.0

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: 07af5d498e9f235557d249bec15d99859064aa92
4
- data.tar.gz: c551310f00c3ff7a15a2181526ac9b023e616152
3
+ metadata.gz: dfdfc088fc68ad0bf651238c8c509285a281dc18
4
+ data.tar.gz: f54517888ade682cd43dbf807ab156e7d4f8d0f7
5
5
  SHA512:
6
- metadata.gz: fec8304cbeee956514650220bfde5648bdd62ff6fdf1602d2efd07c4103fa67bb711d476572993e9181e2f1c5ad04f68b2606a469a081c611d77b582487f6d5d
7
- data.tar.gz: abd5057e74e51b136d6756a96451d9a15c8af2be4d38e9758fc05832ca7ced2a221aec7a1495dedd9078949222bad796a344d8529ac19c64f3c887c657c82873
6
+ metadata.gz: 3885929121248fcf07dea388811387ec2e454254135a4291056ea8aef150f0d5ef026c0a121cfab5f4ca2a42c527b75b7a1ea677b9fd2cc200295e281a2adcfe
7
+ data.tar.gz: 853f3fe4d30ba633335aa81f62ed4fba50d841c688fcafba183c44274c330df02a427d63142a239abafd863bbb959bb27b8ca48f8942a7577c60a786d7500b37
data/README.md CHANGED
@@ -8,13 +8,14 @@ This idea is to describe which fields are searchable and the gem will do the res
8
8
  ## Compatibility
9
9
 
10
10
  SearchableModels has been used with:
11
- * ruby 2
12
- * rails 4.1
11
+ * ruby 2.x
12
+ * rails 4.2
13
13
 
14
14
  However this gem is built against:
15
15
  * ruby 1.9.3
16
16
  * ruby 2.0.0
17
17
  * ruby 2.1.3
18
+ * ruby 2.2.0
18
19
 
19
20
  Other versions may or may not work.
20
21
 
@@ -25,7 +26,7 @@ Other versions may or may not work.
25
26
  To use it, add it to your Gemfile:
26
27
 
27
28
  ```ruby
28
- gem 'searchable_models', '~> 0.1'
29
+ gem 'searchable_models', '~> 0.2'
29
30
  ```
30
31
 
31
32
  and bundle:
@@ -1,3 +1,3 @@
1
1
  module SearchableModels
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -20,7 +20,7 @@ Rails.application.configure do
20
20
  # config.action_dispatch.rack_cache = true
21
21
 
22
22
  # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
23
+ config.serve_static_files = false
24
24
 
25
25
  # Compress JavaScripts and CSS.
26
26
  config.assets.js_compressor = :uglifier
@@ -13,7 +13,7 @@ Rails.application.configure do
13
13
  config.eager_load = false
14
14
 
15
15
  # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
16
+ config.serve_static_files = true
17
17
  config.static_cache_control = 'public, max-age=3600'
18
18
 
19
19
  # Show full error reports and disable caching.
@@ -34,6 +34,8 @@ Rails.application.configure do
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
36
 
37
+ config.active_record.raise_in_transactional_callbacks = false
38
+
37
39
  # Raises error for missing translations
38
40
  # config.action_view.raise_on_missing_translations = true
39
41
  config.i18n.available_locales = [:en, :fr, :es, :pt]
@@ -3,7 +3,7 @@ class CreateGroups < ActiveRecord::Migration
3
3
  create_table :groups do |t|
4
4
  t.string :name
5
5
 
6
- t.timestamps
6
+ t.timestamps :null => false
7
7
  end
8
8
  end
9
9
  end
Binary file
@@ -4452,3 +4452,1836 @@ CarTest: test_search_car_with_through_on_any_field
4452
4452
  SearchableModelsTest: test_module_is_correctly_included
4453
4453
  -------------------------------------------------------
4454
4454
   (0.1ms) rollback transaction
4455
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4456
+  (1.2ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
4457
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
4458
+  (0.1ms) select sqlite_version(*)
4459
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4460
+  (0.1ms) SELECT version FROM "schema_migrations"
4461
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
4462
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4463
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4464
+ Migrating to CreateGroups (20141113142341)
4465
+  (0.1ms) begin transaction
4466
+  (0.4ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
4467
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
4468
+  (1.1ms) commit transaction
4469
+ Migrating to AddGroupIdToCars (20141113142350)
4470
+  (0.1ms) begin transaction
4471
+  (0.4ms) ALTER TABLE "cars" ADD "group_id" integer
4472
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
4473
+  (0.8ms) commit transaction
4474
+ Migrating to CreateDoors (20141113153040)
4475
+  (0.1ms) begin transaction
4476
+  (0.3ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
4477
+  (0.1ms) select sqlite_version(*)
4478
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
4479
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
4480
+  (0.9ms) commit transaction
4481
+ Migrating to CreateProviders (20141114120705)
4482
+  (0.0ms) begin transaction
4483
+  (0.2ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
4484
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
4485
+  (0.7ms) commit transaction
4486
+ Migrating to CreateComponents (20141114120731)
4487
+  (0.0ms) begin transaction
4488
+  (0.3ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
4489
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
4490
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
4491
+  (0.7ms) commit transaction
4492
+ Migrating to AddComponentIdToDoors (20141114120804)
4493
+  (0.1ms) begin transaction
4494
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
4495
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
4496
+  (0.7ms) commit transaction
4497
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
4498
+  (0.0ms) begin transaction
4499
+  (0.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
4500
+  (0.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
4501
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
4502
+  (0.1ms)  SELECT sql
4503
+ FROM sqlite_master
4504
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4505
+ UNION ALL
4506
+ SELECT sql
4507
+ FROM sqlite_temp_master
4508
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4509
+ 
4510
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
4511
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
4512
+  (0.7ms) commit transaction
4513
+ Migrating to AddMissingUniqueIndices (20141114122829)
4514
+  (0.1ms) begin transaction
4515
+  (0.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
4516
+  (0.1ms)  SELECT sql
4517
+ FROM sqlite_master
4518
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4519
+ UNION ALL
4520
+ SELECT sql
4521
+ FROM sqlite_temp_master
4522
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4523
+ 
4524
+  (0.1ms) SELECT sql
4525
+ FROM sqlite_master
4526
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4527
+ UNION ALL
4528
+ SELECT sql
4529
+ FROM sqlite_temp_master
4530
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4531
+
4532
+  (0.3ms) DROP INDEX "index_taggings_on_tag_id"
4533
+  (0.1ms) SELECT sql
4534
+ FROM sqlite_master
4535
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4536
+ UNION ALL
4537
+ SELECT sql
4538
+ FROM sqlite_temp_master
4539
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4540
+
4541
+  (0.2ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
4542
+  (0.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
4543
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
4544
+  (1.1ms) commit transaction
4545
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
4546
+  (0.1ms) begin transaction
4547
+  (0.3ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
4548
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
4549
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
4550
+  (0.7ms) commit transaction
4551
+ Migrating to AddMissingTaggableIndex (20141114122831)
4552
+  (0.1ms) begin transaction
4553
+  (0.1ms)  SELECT sql
4554
+ FROM sqlite_master
4555
+ WHERE name='taggings_idx' AND type='index'
4556
+ UNION ALL
4557
+ SELECT sql
4558
+ FROM sqlite_temp_master
4559
+ WHERE name='taggings_idx' AND type='index'
4560
+ 
4561
+  (0.3ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
4562
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
4563
+  (0.7ms) commit transaction
4564
+ Migrating to AddCarTranslations (20141114130703)
4565
+  (0.1ms) begin transaction
4566
+  (0.3ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
4567
+  (0.1ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
4568
+  (0.1ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
4569
+  (0.1ms)  SELECT sql
4570
+ FROM sqlite_master
4571
+ WHERE name='index_car_translations_on_car_id' AND type='index'
4572
+ UNION ALL
4573
+ SELECT sql
4574
+ FROM sqlite_temp_master
4575
+ WHERE name='index_car_translations_on_car_id' AND type='index'
4576
+ 
4577
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
4578
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
4579
+  (0.9ms) commit transaction
4580
+ Migrating to AddLongDescriptionToCar (20141211095408)
4581
+  (0.1ms) begin transaction
4582
+  (0.3ms) ALTER TABLE "cars" ADD "long_description" text
4583
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
4584
+  (0.6ms) commit transaction
4585
+  (0.1ms) begin transaction
4586
+ Fixture Delete (0.7ms) DELETE FROM "cars"
4587
+ Fixture Insert (0.2ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 835429954, 972975755)
4588
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 443394774, 972975755)
4589
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 131351955, 266440024)
4590
+ Fixture Delete (0.3ms) DELETE FROM "components"
4591
+ Fixture Insert (0.2ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 1012443712, 665974588)
4592
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 402564824, 202898348)
4593
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 172444051, 296621295)
4594
+ Fixture Delete (0.1ms) DELETE FROM "doors"
4595
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 546177811, 835429954, 1012443712)
4596
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 187174789, 443394774, 402564824)
4597
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 378659014, 131351955, 172444051)
4598
+ Fixture Delete (0.1ms) DELETE FROM "groups"
4599
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 972975755)
4600
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 266440024)
4601
+ Fixture Delete (0.1ms) DELETE FROM "providers"
4602
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 665974588)
4603
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 202898348)
4604
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 296621295)
4605
+  (1.0ms) commit transaction
4606
+  (0.1ms) begin transaction
4607
+ -------------------------------------------------------
4608
+ SearchableModelsTest: test_module_is_correctly_included
4609
+ -------------------------------------------------------
4610
+  (0.0ms) rollback transaction
4611
+  (0.1ms) begin transaction
4612
+ ------------------------------------------
4613
+ CarTest: test_search_car_with_belong_to_id
4614
+ ------------------------------------------
4615
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
4616
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4617
+ Car Load (0.5ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC [["group_id", 266440024]]
4618
+  (0.2ms) rollback transaction
4619
+  (0.1ms) begin transaction
4620
+ ------------------------------------------
4621
+ CarTest: test_search_car_with_deep_through
4622
+ ------------------------------------------
4623
+ Provider Load (0.3ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
4624
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4625
+ Car Load (0.5ms) 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
4626
+  (0.1ms) rollback transaction
4627
+  (0.0ms) begin transaction
4628
+ ----------------------------------
4629
+ CarTest: test_search_car_with_enum
4630
+ ----------------------------------
4631
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4632
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
4633
+  (0.1ms) rollback transaction
4634
+  (0.0ms) begin transaction
4635
+ ------------------------------------------
4636
+ CarTest: test_search_car_with_exact_search
4637
+ ------------------------------------------
4638
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4639
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
4640
+  (0.1ms) rollback transaction
4641
+  (0.0ms) begin transaction
4642
+ -------------------------------------------------------------
4643
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
4644
+ -------------------------------------------------------------
4645
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4646
+ 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
4647
+  (0.1ms) rollback transaction
4648
+  (0.0ms) begin transaction
4649
+ -------------------------------------------------------
4650
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
4651
+ -------------------------------------------------------
4652
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4653
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
4654
+  (0.1ms) rollback transaction
4655
+  (0.0ms) begin transaction
4656
+ ------------------------------------------------------------------------
4657
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
4658
+ ------------------------------------------------------------------------
4659
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4660
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
4661
+  (0.0ms) rollback transaction
4662
+  (0.0ms) begin transaction
4663
+ --------------------------------------------------------
4664
+ CarTest: test_search_car_with_fuzzy_search_on_text_field
4665
+ --------------------------------------------------------
4666
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4667
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
4668
+  (0.1ms) rollback transaction
4669
+  (0.0ms) begin transaction
4670
+ ----------------------------------------
4671
+ CarTest: test_search_car_with_i18n_field
4672
+ ----------------------------------------
4673
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4674
+  (0.0ms) SAVEPOINT active_record_1
4675
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
4676
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
4677
+  (0.0ms) rollback transaction
4678
+  (0.0ms) begin transaction
4679
+ -----------------------------------
4680
+ CarTest: test_search_car_with_scope
4681
+ -----------------------------------
4682
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4683
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
4684
+  (0.1ms) rollback transaction
4685
+  (0.0ms) begin transaction
4686
+ --------------------------------------
4687
+ CarTest: test_search_car_with_tags_AND
4688
+ --------------------------------------
4689
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4690
+  (0.0ms) SAVEPOINT active_record_1
4691
+ 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"]]
4692
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:47:45.172067"], ["id", 131351955]]
4693
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
4694
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
4695
+ SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
4696
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
4697
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
4698
+ 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"]]
4699
+ 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
4700
+ SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:47:45.276310"]]
4701
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
4702
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
4703
+ 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
4704
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:47:45.280581"]]
4705
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
4706
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
4707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4708
+ ActsAsTaggableOn::Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
4709
+ Car Load (0.5ms) SELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_9a0bbf9 ON cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id = 1 JOIN taggings cars_taggings_071bd4a ON cars_taggings_071bd4a.taggable_id = cars.id AND cars_taggings_071bd4a.taggable_type = 'Car' AND cars_taggings_071bd4a.tag_id = 2 ORDER BY "cars"."id" ASC
4710
+  (1.3ms) rollback transaction
4711
+  (0.1ms) begin transaction
4712
+ -------------------------------------
4713
+ CarTest: test_search_car_with_tags_OR
4714
+ -------------------------------------
4715
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4716
+  (0.0ms) SAVEPOINT active_record_1
4717
+ 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"]]
4718
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:47:45.294867"], ["id", 131351955]]
4719
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
4720
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
4721
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
4722
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
4723
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
4724
+ 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"]]
4725
+ 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
4726
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:47:45.301356"]]
4727
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
4728
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
4729
+ 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
4730
+ SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:47:45.304899"]]
4731
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
4732
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
4733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4734
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
4735
+ Car Load (0.1ms) SELECT DISTINCT cars.* FROM "cars" WHERE (EXISTS (SELECT 1 FROM taggings cars_taggings_9a0bbf9 WHERE cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id in (1))) ORDER BY "cars"."id" ASC
4736
+  (0.7ms) rollback transaction
4737
+  (0.1ms) begin transaction
4738
+ -------------------------------------
4739
+ CarTest: test_search_car_with_through
4740
+ -------------------------------------
4741
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
4742
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4743
+ 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
4744
+  (0.1ms) rollback transaction
4745
+  (0.0ms) begin transaction
4746
+ --------------------------------------------------
4747
+ CarTest: test_search_car_with_through_on_any_field
4748
+ --------------------------------------------------
4749
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
4750
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4751
+ 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" = '1234567654321234567890' ORDER BY "cars"."id" ASC
4752
+  (0.1ms) rollback transaction
4753
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4754
+  (5.6ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
4755
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
4756
+  (0.1ms) select sqlite_version(*)
4757
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4758
+  (0.1ms) SELECT version FROM "schema_migrations"
4759
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
4760
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4761
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4762
+ Migrating to CreateGroups (20141113142341)
4763
+  (0.1ms) begin transaction
4764
+  (0.4ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
4765
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
4766
+  (1.1ms) commit transaction
4767
+ Migrating to AddGroupIdToCars (20141113142350)
4768
+  (0.0ms) begin transaction
4769
+  (0.3ms) ALTER TABLE "cars" ADD "group_id" integer
4770
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
4771
+  (0.7ms) commit transaction
4772
+ Migrating to CreateDoors (20141113153040)
4773
+  (0.0ms) begin transaction
4774
+  (0.2ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
4775
+  (0.0ms) select sqlite_version(*)
4776
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
4777
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
4778
+  (0.9ms) commit transaction
4779
+ Migrating to CreateProviders (20141114120705)
4780
+  (0.1ms) begin transaction
4781
+  (0.4ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
4782
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
4783
+  (0.8ms) commit transaction
4784
+ Migrating to CreateComponents (20141114120731)
4785
+  (0.1ms) begin transaction
4786
+  (0.3ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
4787
+  (0.2ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
4788
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
4789
+  (0.8ms) commit transaction
4790
+ Migrating to AddComponentIdToDoors (20141114120804)
4791
+  (0.1ms) begin transaction
4792
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
4793
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
4794
+  (0.8ms) commit transaction
4795
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
4796
+  (0.1ms) begin transaction
4797
+  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
4798
+  (0.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
4799
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
4800
+  (0.1ms)  SELECT sql
4801
+ FROM sqlite_master
4802
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4803
+ UNION ALL
4804
+ SELECT sql
4805
+ FROM sqlite_temp_master
4806
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4807
+ 
4808
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
4809
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
4810
+  (0.8ms) commit transaction
4811
+ Migrating to AddMissingUniqueIndices (20141114122829)
4812
+  (0.1ms) begin transaction
4813
+  (0.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
4814
+  (0.1ms)  SELECT sql
4815
+ FROM sqlite_master
4816
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4817
+ UNION ALL
4818
+ SELECT sql
4819
+ FROM sqlite_temp_master
4820
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4821
+ 
4822
+  (0.1ms) SELECT sql
4823
+ FROM sqlite_master
4824
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4825
+ UNION ALL
4826
+ SELECT sql
4827
+ FROM sqlite_temp_master
4828
+ WHERE name='index_taggings_on_tag_id' AND type='index'
4829
+
4830
+  (0.3ms) DROP INDEX "index_taggings_on_tag_id"
4831
+  (0.1ms) SELECT sql
4832
+ FROM sqlite_master
4833
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4834
+ UNION ALL
4835
+ SELECT sql
4836
+ FROM sqlite_temp_master
4837
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
4838
+
4839
+  (0.1ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
4840
+  (0.1ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
4841
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
4842
+  (1.0ms) commit transaction
4843
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
4844
+  (0.0ms) begin transaction
4845
+  (0.3ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
4846
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
4847
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
4848
+  (0.7ms) commit transaction
4849
+ Migrating to AddMissingTaggableIndex (20141114122831)
4850
+  (0.0ms) begin transaction
4851
+  (0.1ms)  SELECT sql
4852
+ FROM sqlite_master
4853
+ WHERE name='taggings_idx' AND type='index'
4854
+ UNION ALL
4855
+ SELECT sql
4856
+ FROM sqlite_temp_master
4857
+ WHERE name='taggings_idx' AND type='index'
4858
+ 
4859
+  (0.3ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
4860
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
4861
+  (0.6ms) commit transaction
4862
+ Migrating to AddCarTranslations (20141114130703)
4863
+  (0.0ms) begin transaction
4864
+  (0.3ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
4865
+  (0.1ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
4866
+  (0.1ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
4867
+  (0.1ms)  SELECT sql
4868
+ FROM sqlite_master
4869
+ WHERE name='index_car_translations_on_car_id' AND type='index'
4870
+ UNION ALL
4871
+ SELECT sql
4872
+ FROM sqlite_temp_master
4873
+ WHERE name='index_car_translations_on_car_id' AND type='index'
4874
+ 
4875
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
4876
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
4877
+  (0.8ms) commit transaction
4878
+ Migrating to AddLongDescriptionToCar (20141211095408)
4879
+  (0.1ms) begin transaction
4880
+  (0.3ms) ALTER TABLE "cars" ADD "long_description" text
4881
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
4882
+  (0.7ms) commit transaction
4883
+  (0.1ms) begin transaction
4884
+ Fixture Delete (0.6ms) DELETE FROM "cars"
4885
+ Fixture Insert (0.2ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 835429954, 972975755)
4886
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 443394774, 972975755)
4887
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 131351955, 266440024)
4888
+ Fixture Delete (0.2ms) DELETE FROM "components"
4889
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 1012443712, 665974588)
4890
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 402564824, 202898348)
4891
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 172444051, 296621295)
4892
+ Fixture Delete (0.2ms) DELETE FROM "doors"
4893
+ Fixture Insert (0.2ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 546177811, 835429954, 1012443712)
4894
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 187174789, 443394774, 402564824)
4895
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 378659014, 131351955, 172444051)
4896
+ Fixture Delete (0.1ms) DELETE FROM "groups"
4897
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 972975755)
4898
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 266440024)
4899
+ Fixture Delete (0.1ms) DELETE FROM "providers"
4900
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 665974588)
4901
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 202898348)
4902
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 296621295)
4903
+  (1.1ms) commit transaction
4904
+  (0.1ms) begin transaction
4905
+ ------------------------------------------
4906
+ CarTest: test_search_car_with_belong_to_id
4907
+ ------------------------------------------
4908
+ Group Load (0.7ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
4909
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4910
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC [["group_id", 266440024]]
4911
+  (0.1ms) rollback transaction
4912
+  (0.0ms) begin transaction
4913
+ ------------------------------------------
4914
+ CarTest: test_search_car_with_deep_through
4915
+ ------------------------------------------
4916
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
4917
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4918
+ 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
4919
+  (0.0ms) rollback transaction
4920
+  (0.0ms) begin transaction
4921
+ ----------------------------------
4922
+ CarTest: test_search_car_with_enum
4923
+ ----------------------------------
4924
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4925
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
4926
+  (0.0ms) rollback transaction
4927
+  (0.0ms) begin transaction
4928
+ ------------------------------------------
4929
+ CarTest: test_search_car_with_exact_search
4930
+ ------------------------------------------
4931
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4932
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
4933
+  (0.0ms) rollback transaction
4934
+  (0.0ms) begin transaction
4935
+ -------------------------------------------------------------
4936
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
4937
+ -------------------------------------------------------------
4938
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4939
+ 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
4940
+  (0.0ms) rollback transaction
4941
+  (0.0ms) begin transaction
4942
+ -------------------------------------------------------
4943
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
4944
+ -------------------------------------------------------
4945
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4946
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
4947
+  (0.0ms) rollback transaction
4948
+  (0.0ms) begin transaction
4949
+ ------------------------------------------------------------------------
4950
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
4951
+ ------------------------------------------------------------------------
4952
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4953
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
4954
+  (0.1ms) rollback transaction
4955
+  (0.0ms) begin transaction
4956
+ --------------------------------------------------------
4957
+ CarTest: test_search_car_with_fuzzy_search_on_text_field
4958
+ --------------------------------------------------------
4959
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4960
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
4961
+  (0.1ms) rollback transaction
4962
+  (0.1ms) begin transaction
4963
+ ----------------------------------------
4964
+ CarTest: test_search_car_with_i18n_field
4965
+ ----------------------------------------
4966
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4967
+  (0.1ms) SAVEPOINT active_record_1
4968
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
4969
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
4970
+  (0.1ms) rollback transaction
4971
+  (0.0ms) begin transaction
4972
+ -----------------------------------
4973
+ CarTest: test_search_car_with_scope
4974
+ -----------------------------------
4975
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4976
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
4977
+  (0.0ms) rollback transaction
4978
+  (0.0ms) begin transaction
4979
+ --------------------------------------
4980
+ CarTest: test_search_car_with_tags_AND
4981
+ --------------------------------------
4982
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
4983
+  (0.0ms) SAVEPOINT active_record_1
4984
+ 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"]]
4985
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:49:20.530305"], ["id", 131351955]]
4986
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
4987
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
4988
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
4989
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
4990
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
4991
+ 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"]]
4992
+ 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
4993
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:20.634343"]]
4994
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
4995
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
4996
+ 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
4997
+ SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:20.638293"]]
4998
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
4999
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
5000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5001
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5002
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_9a0bbf9 ON cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id = 1 JOIN taggings cars_taggings_071bd4a ON cars_taggings_071bd4a.taggable_id = cars.id AND cars_taggings_071bd4a.taggable_type = 'Car' AND cars_taggings_071bd4a.tag_id = 2 ORDER BY "cars"."id" ASC
5003
+  (0.7ms) rollback transaction
5004
+  (0.1ms) begin transaction
5005
+ -------------------------------------
5006
+ CarTest: test_search_car_with_tags_OR
5007
+ -------------------------------------
5008
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5009
+  (0.1ms) SAVEPOINT active_record_1
5010
+ 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"]]
5011
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:49:20.647610"], ["id", 131351955]]
5012
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5013
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
5014
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
5015
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
5016
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
5017
+ 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"]]
5018
+ 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
5019
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:20.655827"]]
5020
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
5021
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
5022
+ 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
5023
+ SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:20.659225"]]
5024
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
5025
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
5026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5027
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
5028
+ Car Load (0.1ms) SELECT DISTINCT cars.* FROM "cars" WHERE (EXISTS (SELECT 1 FROM taggings cars_taggings_9a0bbf9 WHERE cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id in (1))) ORDER BY "cars"."id" ASC
5029
+  (0.6ms) rollback transaction
5030
+  (0.1ms) begin transaction
5031
+ -------------------------------------
5032
+ CarTest: test_search_car_with_through
5033
+ -------------------------------------
5034
+ Component Load (0.2ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
5035
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5036
+ 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
5037
+  (0.1ms) rollback transaction
5038
+  (0.0ms) begin transaction
5039
+ --------------------------------------------------
5040
+ CarTest: test_search_car_with_through_on_any_field
5041
+ --------------------------------------------------
5042
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
5043
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5044
+ 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" = '1234567654321234567890' ORDER BY "cars"."id" ASC
5045
+  (0.1ms) rollback transaction
5046
+  (0.1ms) begin transaction
5047
+ -------------------------------------------------------
5048
+ SearchableModelsTest: test_module_is_correctly_included
5049
+ -------------------------------------------------------
5050
+  (0.0ms) rollback transaction
5051
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5052
+  (5.5ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
5053
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5054
+  (0.1ms) select sqlite_version(*)
5055
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5056
+  (0.1ms) SELECT version FROM "schema_migrations"
5057
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
5058
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5059
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5060
+ Migrating to CreateGroups (20141113142341)
5061
+  (0.1ms) begin transaction
5062
+  (0.3ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5063
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
5064
+  (0.9ms) commit transaction
5065
+ Migrating to AddGroupIdToCars (20141113142350)
5066
+  (0.1ms) begin transaction
5067
+  (0.3ms) ALTER TABLE "cars" ADD "group_id" integer
5068
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
5069
+  (0.8ms) commit transaction
5070
+ Migrating to CreateDoors (20141113153040)
5071
+  (0.1ms) begin transaction
5072
+  (0.3ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
5073
+  (0.1ms) select sqlite_version(*)
5074
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
5075
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
5076
+  (0.8ms) commit transaction
5077
+ Migrating to CreateProviders (20141114120705)
5078
+  (0.0ms) begin transaction
5079
+  (0.2ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
5080
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
5081
+  (0.7ms) commit transaction
5082
+ Migrating to CreateComponents (20141114120731)
5083
+  (0.0ms) begin transaction
5084
+  (0.2ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
5085
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
5086
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
5087
+  (0.7ms) commit transaction
5088
+ Migrating to AddComponentIdToDoors (20141114120804)
5089
+  (0.0ms) begin transaction
5090
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
5091
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
5092
+  (0.7ms) commit transaction
5093
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
5094
+  (0.0ms) begin transaction
5095
+  (0.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
5096
+  (0.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
5097
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
5098
+  (0.1ms)  SELECT sql
5099
+ FROM sqlite_master
5100
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5101
+ UNION ALL
5102
+ SELECT sql
5103
+ FROM sqlite_temp_master
5104
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5105
+ 
5106
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5107
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
5108
+  (0.8ms) commit transaction
5109
+ Migrating to AddMissingUniqueIndices (20141114122829)
5110
+  (0.0ms) begin transaction
5111
+  (0.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
5112
+  (0.1ms)  SELECT sql
5113
+ FROM sqlite_master
5114
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5115
+ UNION ALL
5116
+ SELECT sql
5117
+ FROM sqlite_temp_master
5118
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5119
+ 
5120
+  (0.1ms) SELECT sql
5121
+ FROM sqlite_master
5122
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5123
+ UNION ALL
5124
+ SELECT sql
5125
+ FROM sqlite_temp_master
5126
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5127
+
5128
+  (0.3ms) DROP INDEX "index_taggings_on_tag_id"
5129
+  (0.1ms) SELECT sql
5130
+ FROM sqlite_master
5131
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5132
+ UNION ALL
5133
+ SELECT sql
5134
+ FROM sqlite_temp_master
5135
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5136
+
5137
+  (0.1ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
5138
+  (0.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
5139
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
5140
+  (1.0ms) commit transaction
5141
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
5142
+  (0.1ms) begin transaction
5143
+  (0.3ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
5144
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
5145
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
5146
+  (0.8ms) commit transaction
5147
+ Migrating to AddMissingTaggableIndex (20141114122831)
5148
+  (0.1ms) begin transaction
5149
+  (0.1ms)  SELECT sql
5150
+ FROM sqlite_master
5151
+ WHERE name='taggings_idx' AND type='index'
5152
+ UNION ALL
5153
+ SELECT sql
5154
+ FROM sqlite_temp_master
5155
+ WHERE name='taggings_idx' AND type='index'
5156
+ 
5157
+  (0.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5158
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
5159
+  (0.6ms) commit transaction
5160
+ Migrating to AddCarTranslations (20141114130703)
5161
+  (0.1ms) begin transaction
5162
+  (0.4ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
5163
+  (0.1ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
5164
+  (0.1ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
5165
+  (0.1ms)  SELECT sql
5166
+ FROM sqlite_master
5167
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5168
+ UNION ALL
5169
+ SELECT sql
5170
+ FROM sqlite_temp_master
5171
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5172
+ 
5173
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
5174
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
5175
+  (0.7ms) commit transaction
5176
+ Migrating to AddLongDescriptionToCar (20141211095408)
5177
+  (0.1ms) begin transaction
5178
+  (0.5ms) ALTER TABLE "cars" ADD "long_description" text
5179
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
5180
+  (0.7ms) commit transaction
5181
+  (0.3ms) begin transaction
5182
+ Fixture Delete (0.4ms) DELETE FROM "cars"
5183
+ Fixture Insert (0.2ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 835429954, 972975755)
5184
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 443394774, 972975755)
5185
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 131351955, 266440024)
5186
+ Fixture Delete (0.1ms) DELETE FROM "components"
5187
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 1012443712, 665974588)
5188
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 402564824, 202898348)
5189
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 172444051, 296621295)
5190
+ Fixture Delete (0.1ms) DELETE FROM "doors"
5191
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 546177811, 835429954, 1012443712)
5192
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 187174789, 443394774, 402564824)
5193
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 378659014, 131351955, 172444051)
5194
+ Fixture Delete (0.1ms) DELETE FROM "groups"
5195
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 972975755)
5196
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 266440024)
5197
+ Fixture Delete (0.1ms) DELETE FROM "providers"
5198
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 665974588)
5199
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 202898348)
5200
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 296621295)
5201
+  (0.9ms) commit transaction
5202
+  (0.0ms) begin transaction
5203
+ ------------------------------------------
5204
+ CarTest: test_search_car_with_belong_to_id
5205
+ ------------------------------------------
5206
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
5207
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5208
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC [["group_id", 266440024]]
5209
+  (0.1ms) rollback transaction
5210
+  (0.0ms) begin transaction
5211
+ ------------------------------------------
5212
+ CarTest: test_search_car_with_deep_through
5213
+ ------------------------------------------
5214
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
5215
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5216
+ 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
5217
+  (0.1ms) rollback transaction
5218
+  (0.0ms) begin transaction
5219
+ ----------------------------------
5220
+ CarTest: test_search_car_with_enum
5221
+ ----------------------------------
5222
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5223
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
5224
+  (0.1ms) rollback transaction
5225
+  (0.1ms) begin transaction
5226
+ ------------------------------------------
5227
+ CarTest: test_search_car_with_exact_search
5228
+ ------------------------------------------
5229
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5230
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
5231
+  (0.0ms) rollback transaction
5232
+  (0.0ms) begin transaction
5233
+ -------------------------------------------------------------
5234
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
5235
+ -------------------------------------------------------------
5236
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5237
+ Car Load (0.3ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
5238
+  (0.0ms) rollback transaction
5239
+  (0.1ms) begin transaction
5240
+ -------------------------------------------------------
5241
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
5242
+ -------------------------------------------------------
5243
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5244
+ Car Load (0.5ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
5245
+  (0.1ms) rollback transaction
5246
+  (0.0ms) begin transaction
5247
+ ------------------------------------------------------------------------
5248
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
5249
+ ------------------------------------------------------------------------
5250
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5251
+ Car Load (0.4ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
5252
+  (0.1ms) rollback transaction
5253
+  (0.0ms) begin transaction
5254
+ --------------------------------------------------------
5255
+ CarTest: test_search_car_with_fuzzy_search_on_text_field
5256
+ --------------------------------------------------------
5257
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5258
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
5259
+  (0.0ms) rollback transaction
5260
+  (0.0ms) begin transaction
5261
+ ----------------------------------------
5262
+ CarTest: test_search_car_with_i18n_field
5263
+ ----------------------------------------
5264
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5265
+  (0.0ms) SAVEPOINT active_record_1
5266
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
5267
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
5268
+  (0.1ms) rollback transaction
5269
+  (0.0ms) begin transaction
5270
+ -----------------------------------
5271
+ CarTest: test_search_car_with_scope
5272
+ -----------------------------------
5273
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5274
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
5275
+  (0.0ms) rollback transaction
5276
+  (0.0ms) begin transaction
5277
+ --------------------------------------
5278
+ CarTest: test_search_car_with_tags_AND
5279
+ --------------------------------------
5280
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5281
+  (0.1ms) SAVEPOINT active_record_1
5282
+ 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"]]
5283
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:49:47.172279"], ["id", 131351955]]
5284
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5285
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
5286
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
5287
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
5288
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
5289
+ 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"]]
5290
+ 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
5291
+ SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:47.283491"]]
5292
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
5293
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
5294
+ 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
5295
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:47.287665"]]
5296
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
5297
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
5298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5299
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5300
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_9a0bbf9 ON cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id = 1 JOIN taggings cars_taggings_071bd4a ON cars_taggings_071bd4a.taggable_id = cars.id AND cars_taggings_071bd4a.taggable_type = 'Car' AND cars_taggings_071bd4a.tag_id = 2 ORDER BY "cars"."id" ASC
5301
+  (0.6ms) rollback transaction
5302
+  (0.1ms) begin transaction
5303
+ -------------------------------------
5304
+ CarTest: test_search_car_with_tags_OR
5305
+ -------------------------------------
5306
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5307
+  (0.1ms) SAVEPOINT active_record_1
5308
+ 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"]]
5309
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:49:47.297030"], ["id", 131351955]]
5310
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5311
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
5312
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
5313
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
5314
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
5315
+ 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"]]
5316
+ 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
5317
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:47.304780"]]
5318
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
5319
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
5320
+ 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
5321
+ SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:47.308131"]]
5322
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
5323
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
5324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5325
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
5326
+ Car Load (0.1ms) SELECT DISTINCT cars.* FROM "cars" WHERE (EXISTS (SELECT 1 FROM taggings cars_taggings_9a0bbf9 WHERE cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id in (1))) ORDER BY "cars"."id" ASC
5327
+  (0.6ms) rollback transaction
5328
+  (0.1ms) begin transaction
5329
+ -------------------------------------
5330
+ CarTest: test_search_car_with_through
5331
+ -------------------------------------
5332
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
5333
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5334
+ 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
5335
+  (0.0ms) rollback transaction
5336
+  (0.0ms) begin transaction
5337
+ --------------------------------------------------
5338
+ CarTest: test_search_car_with_through_on_any_field
5339
+ --------------------------------------------------
5340
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
5341
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5342
+ 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" = '1234567654321234567890' ORDER BY "cars"."id" ASC
5343
+  (0.0ms) rollback transaction
5344
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5345
+  (5.6ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
5346
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5347
+  (0.1ms) select sqlite_version(*)
5348
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5349
+  (0.1ms) SELECT version FROM "schema_migrations"
5350
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
5351
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5352
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5353
+ Migrating to CreateGroups (20141113142341)
5354
+  (0.1ms) begin transaction
5355
+  (0.4ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5356
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
5357
+  (0.9ms) commit transaction
5358
+ Migrating to AddGroupIdToCars (20141113142350)
5359
+  (0.1ms) begin transaction
5360
+  (0.3ms) ALTER TABLE "cars" ADD "group_id" integer
5361
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
5362
+  (0.7ms) commit transaction
5363
+ Migrating to CreateDoors (20141113153040)
5364
+  (0.0ms) begin transaction
5365
+  (0.3ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
5366
+  (0.0ms) select sqlite_version(*)
5367
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
5368
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
5369
+  (0.8ms) commit transaction
5370
+ Migrating to CreateProviders (20141114120705)
5371
+  (0.0ms) begin transaction
5372
+  (0.2ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
5373
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
5374
+  (0.7ms) commit transaction
5375
+ Migrating to CreateComponents (20141114120731)
5376
+  (0.1ms) begin transaction
5377
+  (0.2ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
5378
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
5379
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
5380
+  (0.7ms) commit transaction
5381
+ Migrating to AddComponentIdToDoors (20141114120804)
5382
+  (0.0ms) begin transaction
5383
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
5384
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
5385
+  (0.7ms) commit transaction
5386
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
5387
+  (0.0ms) begin transaction
5388
+  (0.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
5389
+  (0.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
5390
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
5391
+  (0.2ms)  SELECT sql
5392
+ FROM sqlite_master
5393
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5394
+ UNION ALL
5395
+ SELECT sql
5396
+ FROM sqlite_temp_master
5397
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5398
+ 
5399
+  (0.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5400
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
5401
+  (0.9ms) commit transaction
5402
+ Migrating to AddMissingUniqueIndices (20141114122829)
5403
+  (0.0ms) begin transaction
5404
+  (0.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
5405
+  (0.1ms)  SELECT sql
5406
+ FROM sqlite_master
5407
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5408
+ UNION ALL
5409
+ SELECT sql
5410
+ FROM sqlite_temp_master
5411
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5412
+ 
5413
+  (0.1ms) SELECT sql
5414
+ FROM sqlite_master
5415
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5416
+ UNION ALL
5417
+ SELECT sql
5418
+ FROM sqlite_temp_master
5419
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5420
+
5421
+  (0.3ms) DROP INDEX "index_taggings_on_tag_id"
5422
+  (0.1ms) SELECT sql
5423
+ FROM sqlite_master
5424
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5425
+ UNION ALL
5426
+ SELECT sql
5427
+ FROM sqlite_temp_master
5428
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5429
+
5430
+  (0.1ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
5431
+  (0.1ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
5432
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
5433
+  (1.0ms) commit transaction
5434
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
5435
+  (0.1ms) begin transaction
5436
+  (0.3ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
5437
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
5438
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
5439
+  (0.8ms) commit transaction
5440
+ Migrating to AddMissingTaggableIndex (20141114122831)
5441
+  (0.1ms) begin transaction
5442
+  (0.1ms)  SELECT sql
5443
+ FROM sqlite_master
5444
+ WHERE name='taggings_idx' AND type='index'
5445
+ UNION ALL
5446
+ SELECT sql
5447
+ FROM sqlite_temp_master
5448
+ WHERE name='taggings_idx' AND type='index'
5449
+ 
5450
+  (0.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5451
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
5452
+  (0.7ms) commit transaction
5453
+ Migrating to AddCarTranslations (20141114130703)
5454
+  (0.1ms) begin transaction
5455
+  (0.3ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
5456
+  (0.1ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
5457
+  (0.2ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
5458
+  (0.1ms)  SELECT sql
5459
+ FROM sqlite_master
5460
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5461
+ UNION ALL
5462
+ SELECT sql
5463
+ FROM sqlite_temp_master
5464
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5465
+ 
5466
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
5467
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
5468
+  (0.7ms) commit transaction
5469
+ Migrating to AddLongDescriptionToCar (20141211095408)
5470
+  (0.1ms) begin transaction
5471
+  (0.5ms) ALTER TABLE "cars" ADD "long_description" text
5472
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
5473
+  (0.7ms) commit transaction
5474
+  (0.1ms) begin transaction
5475
+ Fixture Delete (0.4ms) DELETE FROM "cars"
5476
+ Fixture Insert (0.3ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 835429954, 972975755)
5477
+ Fixture Insert (0.2ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 443394774, 972975755)
5478
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 131351955, 266440024)
5479
+ Fixture Delete (0.2ms) DELETE FROM "components"
5480
+ Fixture Insert (0.2ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 1012443712, 665974588)
5481
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 402564824, 202898348)
5482
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 172444051, 296621295)
5483
+ Fixture Delete (0.1ms) DELETE FROM "doors"
5484
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 546177811, 835429954, 1012443712)
5485
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 187174789, 443394774, 402564824)
5486
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 378659014, 131351955, 172444051)
5487
+ Fixture Delete (0.1ms) DELETE FROM "groups"
5488
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 972975755)
5489
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 266440024)
5490
+ Fixture Delete (0.1ms) DELETE FROM "providers"
5491
+ Fixture Insert (0.2ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 665974588)
5492
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 202898348)
5493
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 296621295)
5494
+  (1.1ms) commit transaction
5495
+  (0.1ms) begin transaction
5496
+ ----------------------------------------
5497
+ CarTest: test_search_car_with_i18n_field
5498
+ ----------------------------------------
5499
+ Car Load (0.3ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5500
+  (0.1ms) SAVEPOINT active_record_1
5501
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
5502
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
5503
+  (0.1ms) rollback transaction
5504
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5505
+  (5.6ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
5506
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5507
+  (0.1ms) select sqlite_version(*)
5508
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5509
+  (0.1ms) SELECT version FROM "schema_migrations"
5510
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
5511
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5512
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5513
+ Migrating to CreateGroups (20141113142341)
5514
+  (0.1ms) begin transaction
5515
+  (0.3ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5516
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
5517
+  (0.8ms) commit transaction
5518
+ Migrating to AddGroupIdToCars (20141113142350)
5519
+  (0.1ms) begin transaction
5520
+  (0.3ms) ALTER TABLE "cars" ADD "group_id" integer
5521
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
5522
+  (0.8ms) commit transaction
5523
+ Migrating to CreateDoors (20141113153040)
5524
+  (0.0ms) begin transaction
5525
+  (0.3ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
5526
+  (0.1ms) select sqlite_version(*)
5527
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
5528
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
5529
+  (0.7ms) commit transaction
5530
+ Migrating to CreateProviders (20141114120705)
5531
+  (0.1ms) begin transaction
5532
+  (0.2ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
5533
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
5534
+  (0.7ms) commit transaction
5535
+ Migrating to CreateComponents (20141114120731)
5536
+  (0.1ms) begin transaction
5537
+  (0.2ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
5538
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
5539
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
5540
+  (0.8ms) commit transaction
5541
+ Migrating to AddComponentIdToDoors (20141114120804)
5542
+  (0.0ms) begin transaction
5543
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
5544
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
5545
+  (0.8ms) commit transaction
5546
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
5547
+  (0.1ms) begin transaction
5548
+  (0.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
5549
+  (0.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
5550
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
5551
+  (0.1ms)  SELECT sql
5552
+ FROM sqlite_master
5553
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5554
+ UNION ALL
5555
+ SELECT sql
5556
+ FROM sqlite_temp_master
5557
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5558
+ 
5559
+  (0.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5560
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
5561
+  (0.8ms) commit transaction
5562
+ Migrating to AddMissingUniqueIndices (20141114122829)
5563
+  (0.1ms) begin transaction
5564
+  (0.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
5565
+  (0.1ms)  SELECT sql
5566
+ FROM sqlite_master
5567
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5568
+ UNION ALL
5569
+ SELECT sql
5570
+ FROM sqlite_temp_master
5571
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5572
+ 
5573
+  (0.1ms) SELECT sql
5574
+ FROM sqlite_master
5575
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5576
+ UNION ALL
5577
+ SELECT sql
5578
+ FROM sqlite_temp_master
5579
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5580
+
5581
+  (0.4ms) DROP INDEX "index_taggings_on_tag_id"
5582
+  (0.1ms) SELECT sql
5583
+ FROM sqlite_master
5584
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5585
+ UNION ALL
5586
+ SELECT sql
5587
+ FROM sqlite_temp_master
5588
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5589
+
5590
+  (0.1ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
5591
+  (0.1ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
5592
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
5593
+  (1.0ms) commit transaction
5594
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
5595
+  (0.1ms) begin transaction
5596
+  (0.4ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
5597
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
5598
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
5599
+  (0.6ms) commit transaction
5600
+ Migrating to AddMissingTaggableIndex (20141114122831)
5601
+  (0.0ms) begin transaction
5602
+  (0.1ms)  SELECT sql
5603
+ FROM sqlite_master
5604
+ WHERE name='taggings_idx' AND type='index'
5605
+ UNION ALL
5606
+ SELECT sql
5607
+ FROM sqlite_temp_master
5608
+ WHERE name='taggings_idx' AND type='index'
5609
+ 
5610
+  (0.4ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5611
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
5612
+  (0.6ms) commit transaction
5613
+ Migrating to AddCarTranslations (20141114130703)
5614
+  (0.0ms) begin transaction
5615
+  (0.3ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
5616
+  (0.2ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
5617
+  (0.1ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
5618
+  (0.1ms)  SELECT sql
5619
+ FROM sqlite_master
5620
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5621
+ UNION ALL
5622
+ SELECT sql
5623
+ FROM sqlite_temp_master
5624
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5625
+ 
5626
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
5627
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
5628
+  (0.8ms) commit transaction
5629
+ Migrating to AddLongDescriptionToCar (20141211095408)
5630
+  (0.1ms) begin transaction
5631
+  (0.3ms) ALTER TABLE "cars" ADD "long_description" text
5632
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
5633
+  (0.6ms) commit transaction
5634
+  (0.1ms) begin transaction
5635
+ Fixture Delete (0.2ms) DELETE FROM "cars"
5636
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 835429954, 972975755)
5637
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 443394774, 972975755)
5638
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 131351955, 266440024)
5639
+ Fixture Delete (0.3ms) DELETE FROM "components"
5640
+ Fixture Insert (0.4ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 1012443712, 665974588)
5641
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 402564824, 202898348)
5642
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 172444051, 296621295)
5643
+ Fixture Delete (0.1ms) DELETE FROM "doors"
5644
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 546177811, 835429954, 1012443712)
5645
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 187174789, 443394774, 402564824)
5646
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 378659014, 131351955, 172444051)
5647
+ Fixture Delete (0.1ms) DELETE FROM "groups"
5648
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 972975755)
5649
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 266440024)
5650
+ Fixture Delete (0.1ms) DELETE FROM "providers"
5651
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 665974588)
5652
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 202898348)
5653
+ Fixture Insert (0.0ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 296621295)
5654
+  (0.9ms) commit transaction
5655
+  (0.0ms) begin transaction
5656
+ ----------------------------------------
5657
+ CarTest: test_search_car_with_i18n_field
5658
+ ----------------------------------------
5659
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5660
+  (0.1ms) SAVEPOINT active_record_1
5661
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
5662
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
5663
+  (0.1ms) rollback transaction
5664
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
5665
+  (1.1ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
5666
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5667
+  (0.1ms) select sqlite_version(*)
5668
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5669
+  (0.1ms) SELECT version FROM "schema_migrations"
5670
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
5671
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5672
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5673
+ Migrating to CreateGroups (20141113142341)
5674
+  (0.1ms) begin transaction
5675
+  (0.4ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5676
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
5677
+  (0.9ms) commit transaction
5678
+ Migrating to AddGroupIdToCars (20141113142350)
5679
+  (0.0ms) begin transaction
5680
+  (0.6ms) ALTER TABLE "cars" ADD "group_id" integer
5681
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
5682
+  (0.6ms) commit transaction
5683
+ Migrating to CreateDoors (20141113153040)
5684
+  (0.0ms) begin transaction
5685
+  (0.3ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
5686
+  (0.0ms) select sqlite_version(*)
5687
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
5688
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
5689
+  (0.8ms) commit transaction
5690
+ Migrating to CreateProviders (20141114120705)
5691
+  (0.1ms) begin transaction
5692
+  (0.2ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
5693
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
5694
+  (0.7ms) commit transaction
5695
+ Migrating to CreateComponents (20141114120731)
5696
+  (0.1ms) begin transaction
5697
+  (0.3ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
5698
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
5699
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
5700
+  (0.7ms) commit transaction
5701
+ Migrating to AddComponentIdToDoors (20141114120804)
5702
+  (0.1ms) begin transaction
5703
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
5704
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
5705
+  (0.7ms) commit transaction
5706
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
5707
+  (0.1ms) begin transaction
5708
+  (0.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
5709
+  (0.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
5710
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
5711
+  (0.1ms)  SELECT sql
5712
+ FROM sqlite_master
5713
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5714
+ UNION ALL
5715
+ SELECT sql
5716
+ FROM sqlite_temp_master
5717
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5718
+ 
5719
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5720
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
5721
+  (0.7ms) commit transaction
5722
+ Migrating to AddMissingUniqueIndices (20141114122829)
5723
+  (0.1ms) begin transaction
5724
+  (0.2ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
5725
+  (0.1ms)  SELECT sql
5726
+ FROM sqlite_master
5727
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5728
+ UNION ALL
5729
+ SELECT sql
5730
+ FROM sqlite_temp_master
5731
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5732
+ 
5733
+  (0.1ms) SELECT sql
5734
+ FROM sqlite_master
5735
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5736
+ UNION ALL
5737
+ SELECT sql
5738
+ FROM sqlite_temp_master
5739
+ WHERE name='index_taggings_on_tag_id' AND type='index'
5740
+
5741
+  (1.0ms) DROP INDEX "index_taggings_on_tag_id"
5742
+  (0.1ms) SELECT sql
5743
+ FROM sqlite_master
5744
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5745
+ UNION ALL
5746
+ SELECT sql
5747
+ FROM sqlite_temp_master
5748
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
5749
+
5750
+  (0.1ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
5751
+  (0.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
5752
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
5753
+  (1.2ms) commit transaction
5754
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
5755
+  (0.1ms) begin transaction
5756
+  (0.4ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
5757
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
5758
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
5759
+  (0.7ms) commit transaction
5760
+ Migrating to AddMissingTaggableIndex (20141114122831)
5761
+  (0.1ms) begin transaction
5762
+  (0.1ms)  SELECT sql
5763
+ FROM sqlite_master
5764
+ WHERE name='taggings_idx' AND type='index'
5765
+ UNION ALL
5766
+ SELECT sql
5767
+ FROM sqlite_temp_master
5768
+ WHERE name='taggings_idx' AND type='index'
5769
+ 
5770
+  (0.3ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
5771
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
5772
+  (0.6ms) commit transaction
5773
+ Migrating to AddCarTranslations (20141114130703)
5774
+  (0.0ms) begin transaction
5775
+  (8.8ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
5776
+  (0.2ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
5777
+  (0.1ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
5778
+  (0.1ms)  SELECT sql
5779
+ FROM sqlite_master
5780
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5781
+ UNION ALL
5782
+ SELECT sql
5783
+ FROM sqlite_temp_master
5784
+ WHERE name='index_car_translations_on_car_id' AND type='index'
5785
+ 
5786
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
5787
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
5788
+  (0.9ms) commit transaction
5789
+ Migrating to AddLongDescriptionToCar (20141211095408)
5790
+  (0.1ms) begin transaction
5791
+  (0.3ms) ALTER TABLE "cars" ADD "long_description" text
5792
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
5793
+  (0.6ms) commit transaction
5794
+  (0.1ms) begin transaction
5795
+ Fixture Delete (0.3ms) DELETE FROM "cars"
5796
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 835429954, 972975755)
5797
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 443394774, 972975755)
5798
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 131351955, 266440024)
5799
+ Fixture Delete (0.1ms) DELETE FROM "components"
5800
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 1012443712, 665974588)
5801
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 402564824, 202898348)
5802
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 172444051, 296621295)
5803
+ Fixture Delete (0.1ms) DELETE FROM "doors"
5804
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 546177811, 835429954, 1012443712)
5805
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 187174789, 443394774, 402564824)
5806
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 378659014, 131351955, 172444051)
5807
+ Fixture Delete (0.1ms) DELETE FROM "groups"
5808
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 972975755)
5809
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 266440024)
5810
+ Fixture Delete (0.1ms) DELETE FROM "providers"
5811
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 665974588)
5812
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 202898348)
5813
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 296621295)
5814
+  (1.3ms) commit transaction
5815
+  (0.2ms) begin transaction
5816
+ ------------------------------------------
5817
+ CarTest: test_search_car_with_belong_to_id
5818
+ ------------------------------------------
5819
+ Group Load (0.2ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
5820
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5821
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC [["group_id", 266440024]]
5822
+  (0.1ms) rollback transaction
5823
+  (0.0ms) begin transaction
5824
+ ------------------------------------------
5825
+ CarTest: test_search_car_with_deep_through
5826
+ ------------------------------------------
5827
+ Provider Load (0.1ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
5828
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5829
+ 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
5830
+  (0.1ms) rollback transaction
5831
+  (0.1ms) begin transaction
5832
+ ----------------------------------
5833
+ CarTest: test_search_car_with_enum
5834
+ ----------------------------------
5835
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5836
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
5837
+  (0.1ms) rollback transaction
5838
+  (0.1ms) begin transaction
5839
+ ------------------------------------------
5840
+ CarTest: test_search_car_with_exact_search
5841
+ ------------------------------------------
5842
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5843
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
5844
+  (0.1ms) rollback transaction
5845
+  (0.0ms) begin transaction
5846
+ -------------------------------------------------------------
5847
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
5848
+ -------------------------------------------------------------
5849
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5850
+ 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
5851
+  (0.1ms) rollback transaction
5852
+  (0.1ms) begin transaction
5853
+ -------------------------------------------------------
5854
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
5855
+ -------------------------------------------------------
5856
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5857
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
5858
+  (0.1ms) rollback transaction
5859
+  (0.0ms) begin transaction
5860
+ ------------------------------------------------------------------------
5861
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
5862
+ ------------------------------------------------------------------------
5863
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5864
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
5865
+  (0.1ms) rollback transaction
5866
+  (0.1ms) begin transaction
5867
+ --------------------------------------------------------
5868
+ CarTest: test_search_car_with_fuzzy_search_on_text_field
5869
+ --------------------------------------------------------
5870
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5871
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
5872
+  (0.1ms) rollback transaction
5873
+  (0.0ms) begin transaction
5874
+ ----------------------------------------
5875
+ CarTest: test_search_car_with_i18n_field
5876
+ ----------------------------------------
5877
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5878
+  (0.1ms) SAVEPOINT active_record_1
5879
+ Car::Translation Load (0.2ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
5880
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
5881
+  (0.1ms) rollback transaction
5882
+  (0.1ms) begin transaction
5883
+ -----------------------------------
5884
+ CarTest: test_search_car_with_scope
5885
+ -----------------------------------
5886
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5887
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
5888
+  (0.1ms) rollback transaction
5889
+  (0.1ms) begin transaction
5890
+ --------------------------------------
5891
+ CarTest: test_search_car_with_tags_AND
5892
+ --------------------------------------
5893
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5894
+  (0.1ms) SAVEPOINT active_record_1
5895
+ 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"]]
5896
+ SQL (0.3ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:41:02.410765"], ["id", 131351955]]
5897
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5898
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
5899
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
5900
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
5901
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
5902
+ 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"]]
5903
+ 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
5904
+ SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:41:02.511878"]]
5905
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
5906
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
5907
+ 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
5908
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:41:02.516009"]]
5909
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
5910
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
5911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5912
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5913
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_9a0bbf9 ON cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id = 1 JOIN taggings cars_taggings_071bd4a ON cars_taggings_071bd4a.taggable_id = cars.id AND cars_taggings_071bd4a.taggable_type = 'Car' AND cars_taggings_071bd4a.tag_id = 2 ORDER BY "cars"."id" ASC
5914
+  (0.6ms) rollback transaction
5915
+  (0.0ms) begin transaction
5916
+ -------------------------------------
5917
+ CarTest: test_search_car_with_tags_OR
5918
+ -------------------------------------
5919
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5920
+  (0.0ms) SAVEPOINT active_record_1
5921
+ 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"]]
5922
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:41:02.524157"], ["id", 131351955]]
5923
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
5924
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
5925
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
5926
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
5927
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
5928
+ 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"]]
5929
+ 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
5930
+ SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:41:02.531216"]]
5931
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
5932
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
5933
+ 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
5934
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:41:02.535950"]]
5935
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
5936
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
5937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5938
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
5939
+ Car Load (0.2ms) SELECT DISTINCT cars.* FROM "cars" WHERE (EXISTS (SELECT 1 FROM taggings cars_taggings_9a0bbf9 WHERE cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id in (1))) ORDER BY "cars"."id" ASC
5940
+  (0.7ms) rollback transaction
5941
+  (0.1ms) begin transaction
5942
+ -------------------------------------
5943
+ CarTest: test_search_car_with_through
5944
+ -------------------------------------
5945
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
5946
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5947
+ 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
5948
+  (0.1ms) rollback transaction
5949
+  (0.1ms) begin transaction
5950
+ --------------------------------------------------
5951
+ CarTest: test_search_car_with_through_on_any_field
5952
+ --------------------------------------------------
5953
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
5954
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
5955
+ 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" = '1234567654321234567890' ORDER BY "cars"."id" ASC
5956
+  (0.1ms) rollback transaction
5957
+  (0.1ms) begin transaction
5958
+ -------------------------------------------------------
5959
+ SearchableModelsTest: test_module_is_correctly_included
5960
+ -------------------------------------------------------
5961
+  (0.0ms) rollback transaction
5962
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5963
+  (5.5ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "number_of_doors" integer, "brand" varchar, "model" varchar, "import_date" date, "kind" integer, "created_at" datetime, "updated_at" datetime) 
5964
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
5965
+  (0.1ms) select sqlite_version(*)
5966
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5967
+  (0.1ms) SELECT version FROM "schema_migrations"
5968
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
5969
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5970
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5971
+ Migrating to CreateGroups (20141113142341)
5972
+  (0.1ms) begin transaction
5973
+  (0.7ms) CREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
5974
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
5975
+  (1.0ms) commit transaction
5976
+ Migrating to AddGroupIdToCars (20141113142350)
5977
+  (0.1ms) begin transaction
5978
+  (0.4ms) ALTER TABLE "cars" ADD "group_id" integer
5979
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
5980
+  (0.8ms) commit transaction
5981
+ Migrating to CreateDoors (20141113153040)
5982
+  (0.1ms) begin transaction
5983
+  (0.3ms) CREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) 
5984
+  (0.1ms) select sqlite_version(*)
5985
+  (0.1ms) CREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")
5986
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
5987
+  (0.8ms) commit transaction
5988
+ Migrating to CreateProviders (20141114120705)
5989
+  (0.1ms) begin transaction
5990
+  (0.3ms) CREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
5991
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
5992
+  (0.8ms) commit transaction
5993
+ Migrating to CreateComponents (20141114120731)
5994
+  (0.0ms) begin transaction
5995
+  (0.3ms) CREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) 
5996
+  (0.1ms) CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
5997
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120731"]]
5998
+  (0.8ms) commit transaction
5999
+ Migrating to AddComponentIdToDoors (20141114120804)
6000
+  (0.1ms) begin transaction
6001
+  (0.3ms) ALTER TABLE "doors" ADD "component_id" integer
6002
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120804"]]
6003
+  (0.6ms) commit transaction
6004
+ Migrating to ActsAsTaggableOnMigration (20141114122828)
6005
+  (0.1ms) begin transaction
6006
+  (0.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
6007
+  (0.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_id" integer, "taggable_type" varchar, "tagger_id" integer, "tagger_type" varchar, "context" varchar(128), "created_at" datetime) 
6008
+  (0.1ms) CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
6009
+  (0.1ms)  SELECT sql
6010
+ FROM sqlite_master
6011
+ WHERE name='index_taggings_on_tag_id' AND type='index'
6012
+ UNION ALL
6013
+ SELECT sql
6014
+ FROM sqlite_temp_master
6015
+ WHERE name='index_taggings_on_tag_id' AND type='index'
6016
+ 
6017
+  (0.1ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
6018
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122828"]]
6019
+  (0.8ms) commit transaction
6020
+ Migrating to AddMissingUniqueIndices (20141114122829)
6021
+  (0.1ms) begin transaction
6022
+  (0.8ms) CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
6023
+  (0.2ms)  SELECT sql
6024
+ FROM sqlite_master
6025
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
6026
+ UNION ALL
6027
+ SELECT sql
6028
+ FROM sqlite_temp_master
6029
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
6030
+ 
6031
+  (0.1ms) SELECT sql
6032
+ FROM sqlite_master
6033
+ WHERE name='index_taggings_on_tag_id' AND type='index'
6034
+ UNION ALL
6035
+ SELECT sql
6036
+ FROM sqlite_temp_master
6037
+ WHERE name='index_taggings_on_tag_id' AND type='index'
6038
+
6039
+  (0.7ms) DROP INDEX "index_taggings_on_tag_id"
6040
+  (0.1ms) SELECT sql
6041
+ FROM sqlite_master
6042
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
6043
+ UNION ALL
6044
+ SELECT sql
6045
+ FROM sqlite_temp_master
6046
+ WHERE name='index_taggings_on_taggable_id_and_taggable_type_and_context' AND type='index'
6047
+
6048
+  (0.1ms) DROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"
6049
+  (0.2ms) CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
6050
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122829"]]
6051
+  (0.9ms) commit transaction
6052
+ Migrating to AddTaggingsCounterCacheToTags (20141114122830)
6053
+  (0.5ms) begin transaction
6054
+  (0.3ms) ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
6055
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000
6056
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
6057
+  (0.8ms) commit transaction
6058
+ Migrating to AddMissingTaggableIndex (20141114122831)
6059
+  (0.1ms) begin transaction
6060
+  (0.1ms)  SELECT sql
6061
+ FROM sqlite_master
6062
+ WHERE name='taggings_idx' AND type='index'
6063
+ UNION ALL
6064
+ SELECT sql
6065
+ FROM sqlite_temp_master
6066
+ WHERE name='taggings_idx' AND type='index'
6067
+ 
6068
+  (0.2ms) CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
6069
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122831"]]
6070
+  (0.7ms) commit transaction
6071
+ Migrating to AddCarTranslations (20141114130703)
6072
+  (0.0ms) begin transaction
6073
+  (0.4ms) CREATE TABLE "car_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "car_id" integer NOT NULL, "locale" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)
6074
+  (0.1ms) ALTER TABLE "car_translations" ADD "commercial_name" varchar
6075
+  (0.1ms) CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
6076
+  (0.1ms)  SELECT sql
6077
+ FROM sqlite_master
6078
+ WHERE name='index_car_translations_on_car_id' AND type='index'
6079
+ UNION ALL
6080
+ SELECT sql
6081
+ FROM sqlite_temp_master
6082
+ WHERE name='index_car_translations_on_car_id' AND type='index'
6083
+ 
6084
+  (0.1ms) CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
6085
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114130703"]]
6086
+  (0.8ms) commit transaction
6087
+ Migrating to AddLongDescriptionToCar (20141211095408)
6088
+  (0.1ms) begin transaction
6089
+  (0.3ms) ALTER TABLE "cars" ADD "long_description" text
6090
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141211095408"]]
6091
+  (0.6ms) commit transaction
6092
+  (0.1ms) begin transaction
6093
+ Fixture Delete (0.2ms) DELETE FROM "cars"
6094
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car One', 'This is Car One', 4, 'Brand One Ultimate', 'Model One', '1990-10-10', 0, 'This is Car One long description', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 835429954, 972975755)
6095
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "created_at", "updated_at", "id", "group_id") VALUES ('Car Two', 'This is Car Two', 3, 'Brand Two Ultimate', 'Model Two', '1990-10-15', 1, 'This is Car Two long description', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 443394774, 972975755)
6096
+ Fixture Insert (0.1ms) INSERT INTO "cars" ("name", "description", "number_of_doors", "brand", "model", "import_date", "kind", "long_description", "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, 'This is Car Foo bar long description', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 131351955, 266440024)
6097
+ Fixture Delete (0.1ms) DELETE FROM "components"
6098
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component one', '1234567890987654321', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 1012443712, 665974588)
6099
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component two', '1234567890987654321', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 402564824, 202898348)
6100
+ Fixture Insert (0.1ms) INSERT INTO "components" ("name", "serial", "created_at", "updated_at", "id", "provider_id") VALUES ('Component foo', '1234567654321234567890', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 172444051, 296621295)
6101
+ Fixture Delete (0.1ms) DELETE FROM "doors"
6102
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door one', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 546177811, 835429954, 1012443712)
6103
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Two', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 187174789, 443394774, 402564824)
6104
+ Fixture Insert (0.1ms) INSERT INTO "doors" ("name", "created_at", "updated_at", "id", "car_id", "component_id") VALUES ('Door Foo', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 378659014, 131351955, 172444051)
6105
+ Fixture Delete (0.1ms) DELETE FROM "groups"
6106
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 972975755)
6107
+ Fixture Insert (0.1ms) INSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group foo', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 266440024)
6108
+ Fixture Delete (0.1ms) DELETE FROM "providers"
6109
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider one', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 665974588)
6110
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 202898348)
6111
+ Fixture Insert (0.1ms) INSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider foo', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 296621295)
6112
+  (0.8ms) commit transaction
6113
+  (0.0ms) begin transaction
6114
+ ------------------------------------------
6115
+ CarTest: test_search_car_with_belong_to_id
6116
+ ------------------------------------------
6117
+ Group Load (0.1ms) SELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1 [["id", 266440024]]
6118
+ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6119
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC [["group_id", 266440024]]
6120
+  (0.1ms) rollback transaction
6121
+  (0.0ms) begin transaction
6122
+ ------------------------------------------
6123
+ CarTest: test_search_car_with_deep_through
6124
+ ------------------------------------------
6125
+ Provider Load (0.2ms) SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
6126
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6127
+ 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
6128
+  (0.1ms) rollback transaction
6129
+  (0.0ms) begin transaction
6130
+ ----------------------------------
6131
+ CarTest: test_search_car_with_enum
6132
+ ----------------------------------
6133
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6134
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
6135
+  (0.1ms) rollback transaction
6136
+  (0.1ms) begin transaction
6137
+ ------------------------------------------
6138
+ CarTest: test_search_car_with_exact_search
6139
+ ------------------------------------------
6140
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6141
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
6142
+  (0.0ms) rollback transaction
6143
+  (0.0ms) begin transaction
6144
+ -------------------------------------------------------------
6145
+ CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
6146
+ -------------------------------------------------------------
6147
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6148
+ 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
6149
+  (0.1ms) rollback transaction
6150
+  (0.0ms) begin transaction
6151
+ -------------------------------------------------------
6152
+ CarTest: test_search_car_with_fuzzy_search_on_one_field
6153
+ -------------------------------------------------------
6154
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6155
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
6156
+  (0.0ms) rollback transaction
6157
+  (0.0ms) begin transaction
6158
+ ------------------------------------------------------------------------
6159
+ CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
6160
+ ------------------------------------------------------------------------
6161
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6162
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
6163
+  (0.0ms) rollback transaction
6164
+  (0.0ms) begin transaction
6165
+ --------------------------------------------------------
6166
+ CarTest: test_search_car_with_fuzzy_search_on_text_field
6167
+ --------------------------------------------------------
6168
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6169
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
6170
+  (0.0ms) rollback transaction
6171
+  (0.0ms) begin transaction
6172
+ ----------------------------------------
6173
+ CarTest: test_search_car_with_i18n_field
6174
+ ----------------------------------------
6175
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6176
+  (0.1ms) SAVEPOINT active_record_1
6177
+ Car::Translation Load (0.1ms) SELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ? [["car_id", 131351955]]
6178
+ SQL (0.5ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.639624"], ["id", 131351955]]
6179
+ SQL (0.2ms) INSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "en"], ["car_id", 131351955], ["commercial_name", "Commercial Name en"], ["created_at", "2015-01-08 08:43:22.647790"], ["updated_at", "2015-01-08 08:43:22.647790"]]
6180
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6181
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.652699' WHERE "cars"."id" = ? [["id", 131351955]]
6182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6183
+  (0.1ms) SAVEPOINT active_record_1
6184
+ SQL (0.4ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.656472"], ["id", 131351955]]
6185
+ SQL (0.1ms) INSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "fr"], ["car_id", 131351955], ["commercial_name", "Commercial Name fr"], ["created_at", "2015-01-08 08:43:22.659016"], ["updated_at", "2015-01-08 08:43:22.659016"]]
6186
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6187
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.660659' WHERE "cars"."id" = ? [["id", 131351955]]
6188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6189
+  (0.0ms) SAVEPOINT active_record_1
6190
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.662854"], ["id", 131351955]]
6191
+ SQL (0.1ms) INSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "es"], ["car_id", 131351955], ["commercial_name", "Commercial Name es"], ["created_at", "2015-01-08 08:43:22.664877"], ["updated_at", "2015-01-08 08:43:22.664877"]]
6192
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6193
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.667108' WHERE "cars"."id" = ? [["id", 131351955]]
6194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6195
+  (0.0ms) SAVEPOINT active_record_1
6196
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.670175"], ["id", 131351955]]
6197
+ SQL (0.1ms) INSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["locale", "pt"], ["car_id", 131351955], ["commercial_name", "Commercial Name pt"], ["created_at", "2015-01-08 08:43:22.672766"], ["updated_at", "2015-01-08 08:43:22.672766"]]
6198
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6199
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.675231' WHERE "cars"."id" = ? [["id", 131351955]]
6200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6201
+  (0.0ms) SAVEPOINT active_record_1
6202
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.678637"], ["id", 131351955]]
6203
+ SQL (0.2ms) UPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = ? [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2015-01-08 08:43:22.681297"], ["id", 4]]
6204
+ SQL (0.1ms) UPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.682687' WHERE "cars"."id" = ? [["id", 131351955]]
6205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6206
+ 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
6207
+  (0.7ms) rollback transaction
6208
+  (0.1ms) begin transaction
6209
+ -----------------------------------
6210
+ CarTest: test_search_car_with_scope
6211
+ -----------------------------------
6212
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6213
+ Car Load (0.1ms) SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
6214
+  (0.1ms) rollback transaction
6215
+  (0.0ms) begin transaction
6216
+ --------------------------------------
6217
+ CarTest: test_search_car_with_tags_AND
6218
+ --------------------------------------
6219
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6220
+  (0.1ms) SAVEPOINT active_record_1
6221
+ 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"]]
6222
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.704441"], ["id", 131351955]]
6223
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
6224
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
6225
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
6226
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
6227
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
6228
+ 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"]]
6229
+ 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
6230
+ SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:43:22.800813"]]
6231
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
6232
+ SQL (0.1ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
6233
+ 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
6234
+ SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:43:22.804806"]]
6235
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
6236
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
6237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6238
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
6239
+ Car Load (0.2ms) SELECT DISTINCT "cars".* FROM "cars" JOIN taggings cars_taggings_9a0bbf9 ON cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id = 1 JOIN taggings cars_taggings_071bd4a ON cars_taggings_071bd4a.taggable_id = cars.id AND cars_taggings_071bd4a.taggable_type = 'Car' AND cars_taggings_071bd4a.tag_id = 2 ORDER BY "cars"."id" ASC
6240
+  (0.7ms) rollback transaction
6241
+  (0.1ms) begin transaction
6242
+ -------------------------------------
6243
+ CarTest: test_search_car_with_tags_OR
6244
+ -------------------------------------
6245
+ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6246
+  (0.1ms) SAVEPOINT active_record_1
6247
+ 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"]]
6248
+ SQL (0.2ms) UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.814087"], ["id", 131351955]]
6249
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
6250
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
6251
+ SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
6252
+ ActsAsTaggableOn::Tag Exists (0.1ms) SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
6253
+ SQL (0.0ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
6254
+ 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"]]
6255
+ 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
6256
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:43:22.823641"]]
6257
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
6258
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
6259
+ 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
6260
+ SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?) [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:43:22.828159"]]
6261
+ ActsAsTaggableOn::Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
6262
+ SQL (0.0ms) UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
6263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6264
+ ActsAsTaggableOn::Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))
6265
+ Car Load (0.1ms) SELECT DISTINCT cars.* FROM "cars" WHERE (EXISTS (SELECT 1 FROM taggings cars_taggings_9a0bbf9 WHERE cars_taggings_9a0bbf9.taggable_id = cars.id AND cars_taggings_9a0bbf9.taggable_type = 'Car' AND cars_taggings_9a0bbf9.tag_id in (1))) ORDER BY "cars"."id" ASC
6266
+  (0.6ms) rollback transaction
6267
+  (0.1ms) begin transaction
6268
+ -------------------------------------
6269
+ CarTest: test_search_car_with_through
6270
+ -------------------------------------
6271
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
6272
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6273
+ 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
6274
+  (0.1ms) rollback transaction
6275
+  (0.0ms) begin transaction
6276
+ --------------------------------------------------
6277
+ CarTest: test_search_car_with_through_on_any_field
6278
+ --------------------------------------------------
6279
+ Component Load (0.1ms) SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
6280
+ Car Load (0.0ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
6281
+ 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" = '1234567654321234567890' ORDER BY "cars"."id" ASC
6282
+  (0.0ms) rollback transaction
6283
+  (0.0ms) begin transaction
6284
+ -------------------------------------------------------
6285
+ SearchableModelsTest: test_module_is_correctly_included
6286
+ -------------------------------------------------------
6287
+  (0.0ms) rollback transaction