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 +4 -4
- data/README.md +4 -3
- data/lib/searchable_models/version.rb +1 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy/config/environments/test.rb +3 -1
- data/test/dummy/db/migrate/20141113142341_create_groups.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1833 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfdfc088fc68ad0bf651238c8c509285a281dc18
|
4
|
+
data.tar.gz: f54517888ade682cd43dbf807ab156e7d4f8d0f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
29
|
+
gem 'searchable_models', '~> 0.2'
|
29
30
|
```
|
30
31
|
|
31
32
|
and bundle:
|
@@ -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.
|
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.
|
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]
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -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
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4455
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4456
|
+
[1m[36m (1.2ms)[0m [1mCREATE 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) [0m
|
4457
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
4458
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4459
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4460
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4461
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
4462
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4463
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4464
|
+
Migrating to CreateGroups (20141113142341)
|
4465
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4466
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
4467
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
4468
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4469
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
4470
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4471
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
4472
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
4473
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
4474
|
+
Migrating to CreateDoors (20141113153040)
|
4475
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4476
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
4477
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4478
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
4479
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
4480
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
4481
|
+
Migrating to CreateProviders (20141114120705)
|
4482
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4483
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
4484
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
4485
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
4486
|
+
Migrating to CreateComponents (20141114120731)
|
4487
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4488
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
4489
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
4490
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
4491
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4492
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
4493
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4494
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
4495
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
4496
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4497
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
4498
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4499
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
4500
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
4501
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
4502
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4510
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
4511
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
4512
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4513
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
4514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4515
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
4516
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4524
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
4533
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
4542
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
4543
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
4544
|
+
[1m[35m (1.1ms)[0m commit transaction
|
4545
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
4546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4547
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
4548
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
4549
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
4550
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
4551
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
4552
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4553
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4561
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
4562
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
4563
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4564
|
+
Migrating to AddCarTranslations (20141114130703)
|
4565
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4566
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
4568
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
4569
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4577
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
4578
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
4579
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4580
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
4581
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4582
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
4583
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
4584
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4586
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "cars"
|
4587
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
4588
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4590
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "components"
|
4591
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
4592
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4594
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
4595
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4596
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4598
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
4599
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 972975755)[0m
|
4600
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
4602
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:47:45', '2015-01-07 07:47:45', 202898348)[0m
|
4604
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4606
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4607
|
+
-------------------------------------------------------
|
4608
|
+
SearchableModelsTest: test_module_is_correctly_included
|
4609
|
+
-------------------------------------------------------
|
4610
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4611
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4612
|
+
------------------------------------------
|
4613
|
+
CarTest: test_search_car_with_belong_to_id
|
4614
|
+
------------------------------------------
|
4615
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
4616
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
4617
|
+
[1m[36mCar Load (0.5ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC[0m [["group_id", 266440024]]
|
4618
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
4619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4620
|
+
------------------------------------------
|
4621
|
+
CarTest: test_search_car_with_deep_through
|
4622
|
+
------------------------------------------
|
4623
|
+
[1m[35mProvider Load (0.3ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
4624
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4625
|
+
[1m[35mCar Load (0.5ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
4626
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4627
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4628
|
+
----------------------------------
|
4629
|
+
CarTest: test_search_car_with_enum
|
4630
|
+
----------------------------------
|
4631
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4632
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
|
4633
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4634
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4635
|
+
------------------------------------------
|
4636
|
+
CarTest: test_search_car_with_exact_search
|
4637
|
+
------------------------------------------
|
4638
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4639
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
|
4640
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4641
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4642
|
+
-------------------------------------------------------------
|
4643
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
4644
|
+
-------------------------------------------------------------
|
4645
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4646
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
4647
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4648
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4649
|
+
-------------------------------------------------------
|
4650
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
4651
|
+
-------------------------------------------------------
|
4652
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4653
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
4654
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4655
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4656
|
+
------------------------------------------------------------------------
|
4657
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
4658
|
+
------------------------------------------------------------------------
|
4659
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4660
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
4661
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4662
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4663
|
+
--------------------------------------------------------
|
4664
|
+
CarTest: test_search_car_with_fuzzy_search_on_text_field
|
4665
|
+
--------------------------------------------------------
|
4666
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4667
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
|
4668
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4669
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4670
|
+
----------------------------------------
|
4671
|
+
CarTest: test_search_car_with_i18n_field
|
4672
|
+
----------------------------------------
|
4673
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4674
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4675
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
4676
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4677
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4678
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4679
|
+
-----------------------------------
|
4680
|
+
CarTest: test_search_car_with_scope
|
4681
|
+
-----------------------------------
|
4682
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4683
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
|
4684
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4685
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4686
|
+
--------------------------------------
|
4687
|
+
CarTest: test_search_car_with_tags_AND
|
4688
|
+
--------------------------------------
|
4689
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4690
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4691
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
4692
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:47:45.172067"], ["id", 131351955]]
|
4693
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
4694
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
4695
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
4696
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
4697
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
4698
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
4699
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
4700
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
4702
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
|
4703
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
4704
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
4706
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
|
4707
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4708
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.3ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
4709
|
+
[1m[36mCar Load (0.5ms)[0m [1mSELECT 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[0m
|
4710
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
4711
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4712
|
+
-------------------------------------
|
4713
|
+
CarTest: test_search_car_with_tags_OR
|
4714
|
+
-------------------------------------
|
4715
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
4716
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
4717
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
4718
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ?[0m [["updated_at", "2015-01-07 07:47:45.294867"], ["id", 131351955]]
|
4719
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
4720
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
4721
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
4722
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
4723
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
4724
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
4725
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
4726
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:47:45.301356"]]
|
4727
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
4728
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 1]]
|
4729
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
4730
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:47:45.304899"]]
|
4731
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
4732
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 2]]
|
4733
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
4734
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
4735
|
+
[1m[35mCar Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
4737
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4738
|
+
-------------------------------------
|
4739
|
+
CarTest: test_search_car_with_through
|
4740
|
+
-------------------------------------
|
4741
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
4742
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
4743
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
4744
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4746
|
+
--------------------------------------------------
|
4747
|
+
CarTest: test_search_car_with_through_on_any_field
|
4748
|
+
--------------------------------------------------
|
4749
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
4750
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4751
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567654321234567890' ORDER BY "cars"."id" ASC
|
4752
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4753
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4754
|
+
[1m[36m (5.6ms)[0m [1mCREATE 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) [0m
|
4755
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
4756
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4757
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4758
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4759
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
4760
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4761
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4762
|
+
Migrating to CreateGroups (20141113142341)
|
4763
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4764
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
4765
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
4766
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4767
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
4768
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4769
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
4770
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
4771
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
4772
|
+
Migrating to CreateDoors (20141113153040)
|
4773
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4774
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
4775
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
4776
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
4777
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
4778
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
4779
|
+
Migrating to CreateProviders (20141114120705)
|
4780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4781
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
4782
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
4783
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
4784
|
+
Migrating to CreateComponents (20141114120731)
|
4785
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4786
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
4787
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
4788
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
4789
|
+
[1m[35m (0.8ms)[0m commit transaction
|
4790
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
4791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4792
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
4793
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
4794
|
+
[1m[35m (0.8ms)[0m commit transaction
|
4795
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
4796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4797
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
4798
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
4799
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
4800
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4808
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
4809
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
4810
|
+
[1m[35m (0.8ms)[0m commit transaction
|
4811
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
4812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4813
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
4814
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4822
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
4831
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
4840
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
4841
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
4842
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4843
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
4844
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4845
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
4846
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
4847
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
4848
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
4849
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
4850
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4851
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4859
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
4860
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
4861
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4862
|
+
Migrating to AddCarTranslations (20141114130703)
|
4863
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4864
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
4866
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
4867
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
4875
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
4876
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
4877
|
+
[1m[35m (0.8ms)[0m commit transaction
|
4878
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
4879
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4880
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
4881
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
4882
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4883
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4884
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "cars"
|
4885
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
4886
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4888
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "components"
|
4889
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4890
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4892
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "doors"
|
4893
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
4894
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
4896
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
4897
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 972975755)[0m
|
4898
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
4900
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:49:20', '2015-01-07 07:49:20', 202898348)[0m
|
4902
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4904
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4905
|
+
------------------------------------------
|
4906
|
+
CarTest: test_search_car_with_belong_to_id
|
4907
|
+
------------------------------------------
|
4908
|
+
[1m[36mGroup Load (0.7ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
4909
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
4910
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC[0m [["group_id", 266440024]]
|
4911
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4912
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4913
|
+
------------------------------------------
|
4914
|
+
CarTest: test_search_car_with_deep_through
|
4915
|
+
------------------------------------------
|
4916
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
4917
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4918
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
4919
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4920
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4921
|
+
----------------------------------
|
4922
|
+
CarTest: test_search_car_with_enum
|
4923
|
+
----------------------------------
|
4924
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4925
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
|
4926
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4927
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4928
|
+
------------------------------------------
|
4929
|
+
CarTest: test_search_car_with_exact_search
|
4930
|
+
------------------------------------------
|
4931
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4932
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
|
4933
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4934
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4935
|
+
-------------------------------------------------------------
|
4936
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
4937
|
+
-------------------------------------------------------------
|
4938
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4939
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
4940
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4941
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4942
|
+
-------------------------------------------------------
|
4943
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
4944
|
+
-------------------------------------------------------
|
4945
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4946
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
4947
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4949
|
+
------------------------------------------------------------------------
|
4950
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
4951
|
+
------------------------------------------------------------------------
|
4952
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4953
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
4954
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4955
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4956
|
+
--------------------------------------------------------
|
4957
|
+
CarTest: test_search_car_with_fuzzy_search_on_text_field
|
4958
|
+
--------------------------------------------------------
|
4959
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4960
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
|
4961
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4962
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4963
|
+
----------------------------------------
|
4964
|
+
CarTest: test_search_car_with_i18n_field
|
4965
|
+
----------------------------------------
|
4966
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4967
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4968
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
4969
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4970
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
4971
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4972
|
+
-----------------------------------
|
4973
|
+
CarTest: test_search_car_with_scope
|
4974
|
+
-----------------------------------
|
4975
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4976
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
|
4977
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
4978
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4979
|
+
--------------------------------------
|
4980
|
+
CarTest: test_search_car_with_tags_AND
|
4981
|
+
--------------------------------------
|
4982
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
4983
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
4984
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
4985
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:49:20.530305"], ["id", 131351955]]
|
4986
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
4987
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
4988
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
4989
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
4990
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
4991
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
4992
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
4993
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
4995
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
|
4996
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
4997
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
4999
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
|
5000
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5001
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
5002
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT 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[0m
|
5003
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
5004
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5005
|
+
-------------------------------------
|
5006
|
+
CarTest: test_search_car_with_tags_OR
|
5007
|
+
-------------------------------------
|
5008
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5009
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5010
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5011
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ?[0m [["updated_at", "2015-01-07 07:49:20.647610"], ["id", 131351955]]
|
5012
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
5013
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
5014
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
5015
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
5016
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
5017
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5018
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
5019
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:20.655827"]]
|
5020
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
5021
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 1]]
|
5022
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
5023
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:20.659225"]]
|
5024
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
5025
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 2]]
|
5026
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5027
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
5028
|
+
[1m[35mCar Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
5030
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5031
|
+
-------------------------------------
|
5032
|
+
CarTest: test_search_car_with_through
|
5033
|
+
-------------------------------------
|
5034
|
+
[1m[36mComponent Load (0.2ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
5035
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5036
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
5037
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5038
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5039
|
+
--------------------------------------------------
|
5040
|
+
CarTest: test_search_car_with_through_on_any_field
|
5041
|
+
--------------------------------------------------
|
5042
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
5043
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5044
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567654321234567890' ORDER BY "cars"."id" ASC
|
5045
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5047
|
+
-------------------------------------------------------
|
5048
|
+
SearchableModelsTest: test_module_is_correctly_included
|
5049
|
+
-------------------------------------------------------
|
5050
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5051
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5052
|
+
[1m[36m (5.5ms)[0m [1mCREATE 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) [0m
|
5053
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5054
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5055
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5056
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5057
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
5058
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5059
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5060
|
+
Migrating to CreateGroups (20141113142341)
|
5061
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5062
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
5063
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
5064
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5065
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
5066
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5067
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
5068
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
5069
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5070
|
+
Migrating to CreateDoors (20141113153040)
|
5071
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5072
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5073
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5074
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
5075
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
5076
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5077
|
+
Migrating to CreateProviders (20141114120705)
|
5078
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5079
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5080
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
5081
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5082
|
+
Migrating to CreateComponents (20141114120731)
|
5083
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5084
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5085
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
5086
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
5087
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5088
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
5089
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5090
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
5091
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
5092
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5093
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
5094
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5095
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
5096
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
5097
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
5098
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5106
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5107
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
5108
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5109
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
5110
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5111
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
5112
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5120
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
5129
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
5138
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
5139
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
5140
|
+
[1m[35m (1.0ms)[0m commit transaction
|
5141
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
5142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5143
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
5144
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
5145
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
5146
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5147
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
5148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5149
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5157
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5158
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
5159
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5160
|
+
Migrating to AddCarTranslations (20141114130703)
|
5161
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5162
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
5164
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
5165
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5173
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
5174
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
5175
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5176
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
5177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5178
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
5179
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
5180
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5181
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
5182
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "cars"
|
5183
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
5184
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5186
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
5187
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5188
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5190
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
5191
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5192
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5194
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
5195
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 972975755)[0m
|
5196
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
5198
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:49:47', '2015-01-07 07:49:47', 202898348)[0m
|
5200
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5202
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5203
|
+
------------------------------------------
|
5204
|
+
CarTest: test_search_car_with_belong_to_id
|
5205
|
+
------------------------------------------
|
5206
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
5207
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5208
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC[0m [["group_id", 266440024]]
|
5209
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5211
|
+
------------------------------------------
|
5212
|
+
CarTest: test_search_car_with_deep_through
|
5213
|
+
------------------------------------------
|
5214
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
5215
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5216
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
5217
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5218
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5219
|
+
----------------------------------
|
5220
|
+
CarTest: test_search_car_with_enum
|
5221
|
+
----------------------------------
|
5222
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5223
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
|
5224
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5226
|
+
------------------------------------------
|
5227
|
+
CarTest: test_search_car_with_exact_search
|
5228
|
+
------------------------------------------
|
5229
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5230
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
|
5231
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5232
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5233
|
+
-------------------------------------------------------------
|
5234
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
5235
|
+
-------------------------------------------------------------
|
5236
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5237
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
5238
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5239
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5240
|
+
-------------------------------------------------------
|
5241
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
5242
|
+
-------------------------------------------------------
|
5243
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5244
|
+
[1m[35mCar Load (0.5ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
5245
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5246
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5247
|
+
------------------------------------------------------------------------
|
5248
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
5249
|
+
------------------------------------------------------------------------
|
5250
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5251
|
+
[1m[35mCar Load (0.4ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
5252
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5253
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5254
|
+
--------------------------------------------------------
|
5255
|
+
CarTest: test_search_car_with_fuzzy_search_on_text_field
|
5256
|
+
--------------------------------------------------------
|
5257
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5258
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
|
5259
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5260
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5261
|
+
----------------------------------------
|
5262
|
+
CarTest: test_search_car_with_i18n_field
|
5263
|
+
----------------------------------------
|
5264
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5266
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
5267
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5268
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5269
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5270
|
+
-----------------------------------
|
5271
|
+
CarTest: test_search_car_with_scope
|
5272
|
+
-----------------------------------
|
5273
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5274
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
|
5275
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5277
|
+
--------------------------------------
|
5278
|
+
CarTest: test_search_car_with_tags_AND
|
5279
|
+
--------------------------------------
|
5280
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5282
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5283
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-07 07:49:47.172279"], ["id", 131351955]]
|
5284
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
5285
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
5286
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
5287
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
5288
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
5289
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5290
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
5291
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
5293
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
|
5294
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
5295
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
5297
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
|
5298
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5299
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
5300
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT 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[0m
|
5301
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
5302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5303
|
+
-------------------------------------
|
5304
|
+
CarTest: test_search_car_with_tags_OR
|
5305
|
+
-------------------------------------
|
5306
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5307
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5308
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5309
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ?[0m [["updated_at", "2015-01-07 07:49:47.297030"], ["id", 131351955]]
|
5310
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
5311
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
5312
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
5313
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
5314
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
5315
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5316
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
5317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:47.304780"]]
|
5318
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
5319
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 1]]
|
5320
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
5321
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-07 07:49:47.308131"]]
|
5322
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
5323
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 2]]
|
5324
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5325
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
5326
|
+
[1m[35mCar Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
5328
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5329
|
+
-------------------------------------
|
5330
|
+
CarTest: test_search_car_with_through
|
5331
|
+
-------------------------------------
|
5332
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
5333
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5334
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
5335
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5336
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5337
|
+
--------------------------------------------------
|
5338
|
+
CarTest: test_search_car_with_through_on_any_field
|
5339
|
+
--------------------------------------------------
|
5340
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
5341
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5342
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567654321234567890' ORDER BY "cars"."id" ASC
|
5343
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5344
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5345
|
+
[1m[36m (5.6ms)[0m [1mCREATE 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) [0m
|
5346
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5347
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5348
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5349
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5350
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
5351
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5352
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5353
|
+
Migrating to CreateGroups (20141113142341)
|
5354
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5355
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
5356
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
5357
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5358
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
5359
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5360
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
5361
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
5362
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5363
|
+
Migrating to CreateDoors (20141113153040)
|
5364
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5365
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5366
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
5367
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
5368
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
5369
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5370
|
+
Migrating to CreateProviders (20141114120705)
|
5371
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5372
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5373
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
5374
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5375
|
+
Migrating to CreateComponents (20141114120731)
|
5376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5377
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5378
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
5379
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
5380
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5381
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
5382
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5383
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
5384
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
5385
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5386
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
5387
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5388
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
5389
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
5390
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
5391
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
5399
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5400
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
5401
|
+
[1m[35m (0.9ms)[0m commit transaction
|
5402
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
5403
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5404
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
5405
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5413
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
5422
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
5431
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
5432
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
5433
|
+
[1m[35m (1.0ms)[0m commit transaction
|
5434
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
5435
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5436
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
5437
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
5438
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
5439
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5440
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
5441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5442
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5450
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5451
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
5452
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5453
|
+
Migrating to AddCarTranslations (20141114130703)
|
5454
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5455
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
5457
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
5458
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5466
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
5467
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
5468
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5469
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
5470
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5471
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
5472
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
5473
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5474
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5475
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "cars"
|
5476
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m
|
5477
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5479
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "components"
|
5480
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
5481
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5483
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
5484
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5485
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5487
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
5488
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 972975755)[0m
|
5489
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
5491
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:50:08', '2015-01-07 07:50:08', 202898348)[0m
|
5493
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
5495
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5496
|
+
----------------------------------------
|
5497
|
+
CarTest: test_search_car_with_i18n_field
|
5498
|
+
----------------------------------------
|
5499
|
+
[1m[36mCar Load (0.3ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5500
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5501
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
5502
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5503
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5504
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5505
|
+
[1m[36m (5.6ms)[0m [1mCREATE 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) [0m
|
5506
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5507
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5508
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5509
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5510
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
5511
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5512
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5513
|
+
Migrating to CreateGroups (20141113142341)
|
5514
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5515
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
5516
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
5517
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5518
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
5519
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5520
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
5521
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
5522
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5523
|
+
Migrating to CreateDoors (20141113153040)
|
5524
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5525
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5526
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5527
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
5528
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
5529
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5530
|
+
Migrating to CreateProviders (20141114120705)
|
5531
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5532
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5533
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
5534
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5535
|
+
Migrating to CreateComponents (20141114120731)
|
5536
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5537
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5538
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
5539
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
5540
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5541
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
5542
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5543
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
5544
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
5545
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5546
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
5547
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5548
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
5549
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
5550
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
5551
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5559
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5560
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
5561
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5562
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
5563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5564
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
5565
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5573
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
5582
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
5591
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
5592
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
5593
|
+
[1m[35m (1.0ms)[0m commit transaction
|
5594
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
5595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5596
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
5597
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
5598
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
5599
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5600
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
5601
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5602
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5610
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5611
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
5612
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5613
|
+
Migrating to AddCarTranslations (20141114130703)
|
5614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5615
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
5617
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
5618
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5626
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
5627
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
5628
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5629
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
5630
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5631
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
5632
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
5633
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5634
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5635
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
5636
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5637
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5639
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "components"
|
5640
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m
|
5641
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5643
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
5644
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5645
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5647
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
5648
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 972975755)[0m
|
5649
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
5651
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-07 07:51:45', '2015-01-07 07:51:45', 202898348)[0m
|
5653
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5655
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5656
|
+
----------------------------------------
|
5657
|
+
CarTest: test_search_car_with_i18n_field
|
5658
|
+
----------------------------------------
|
5659
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5660
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5661
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
5662
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5663
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5664
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5665
|
+
[1m[36m (1.1ms)[0m [1mCREATE 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) [0m
|
5666
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5667
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5668
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5669
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5670
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
5671
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5672
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5673
|
+
Migrating to CreateGroups (20141113142341)
|
5674
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5675
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
5676
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
5677
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5678
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
5679
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5680
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
5681
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
5682
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5683
|
+
Migrating to CreateDoors (20141113153040)
|
5684
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5685
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5686
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
5687
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
5688
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
5689
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5690
|
+
Migrating to CreateProviders (20141114120705)
|
5691
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5692
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5693
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
5694
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5695
|
+
Migrating to CreateComponents (20141114120731)
|
5696
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5697
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5698
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
5699
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
5700
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5701
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
5702
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5703
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
5704
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
5705
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5706
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
5707
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5708
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
5709
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
5710
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
5711
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5719
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5720
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
5721
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5722
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
5723
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5724
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
5725
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5733
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
5742
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
5751
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
5752
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
5753
|
+
[1m[35m (1.2ms)[0m commit transaction
|
5754
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
5755
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5756
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
5757
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
5758
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
5759
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5760
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
5761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5762
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5770
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
5771
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
5772
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5773
|
+
Migrating to AddCarTranslations (20141114130703)
|
5774
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5775
|
+
[1m[35m (8.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
5777
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
5778
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
5786
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
5787
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
5788
|
+
[1m[35m (0.9ms)[0m commit transaction
|
5789
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
5790
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5791
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
5792
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
5793
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5794
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5795
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "cars"
|
5796
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5797
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5799
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
5800
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5801
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5803
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
5804
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5805
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
5807
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
5808
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 972975755)[0m
|
5809
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
5811
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-08 08:41:02', '2015-01-08 08:41:02', 202898348)[0m
|
5813
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
5815
|
+
[1m[35m (0.2ms)[0m begin transaction
|
5816
|
+
------------------------------------------
|
5817
|
+
CarTest: test_search_car_with_belong_to_id
|
5818
|
+
------------------------------------------
|
5819
|
+
[1m[36mGroup Load (0.2ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
5820
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5821
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC[0m [["group_id", 266440024]]
|
5822
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5823
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5824
|
+
------------------------------------------
|
5825
|
+
CarTest: test_search_car_with_deep_through
|
5826
|
+
------------------------------------------
|
5827
|
+
[1m[35mProvider Load (0.1ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
5828
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5829
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
5830
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5832
|
+
----------------------------------
|
5833
|
+
CarTest: test_search_car_with_enum
|
5834
|
+
----------------------------------
|
5835
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5836
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
|
5837
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5839
|
+
------------------------------------------
|
5840
|
+
CarTest: test_search_car_with_exact_search
|
5841
|
+
------------------------------------------
|
5842
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5843
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
|
5844
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5845
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5846
|
+
-------------------------------------------------------------
|
5847
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
5848
|
+
-------------------------------------------------------------
|
5849
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5850
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
5851
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5853
|
+
-------------------------------------------------------
|
5854
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
5855
|
+
-------------------------------------------------------
|
5856
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5857
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
5858
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5859
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5860
|
+
------------------------------------------------------------------------
|
5861
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
5862
|
+
------------------------------------------------------------------------
|
5863
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5864
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
5865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5866
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5867
|
+
--------------------------------------------------------
|
5868
|
+
CarTest: test_search_car_with_fuzzy_search_on_text_field
|
5869
|
+
--------------------------------------------------------
|
5870
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5871
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
|
5872
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5873
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5874
|
+
----------------------------------------
|
5875
|
+
CarTest: test_search_car_with_i18n_field
|
5876
|
+
----------------------------------------
|
5877
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5878
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5879
|
+
[1m[36mCar::Translation Load (0.2ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
5880
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5881
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5883
|
+
-----------------------------------
|
5884
|
+
CarTest: test_search_car_with_scope
|
5885
|
+
-----------------------------------
|
5886
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5887
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
|
5888
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5889
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5890
|
+
--------------------------------------
|
5891
|
+
CarTest: test_search_car_with_tags_AND
|
5892
|
+
--------------------------------------
|
5893
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5894
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5895
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5896
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:41:02.410765"], ["id", 131351955]]
|
5897
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
5898
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
5899
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
5900
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
5901
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
5902
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5903
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
5904
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
5906
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
|
5907
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
5908
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
5910
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
|
5911
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5912
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
5913
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT 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[0m
|
5914
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
5915
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5916
|
+
-------------------------------------
|
5917
|
+
CarTest: test_search_car_with_tags_OR
|
5918
|
+
-------------------------------------
|
5919
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5920
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5921
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5922
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ?[0m [["updated_at", "2015-01-08 08:41:02.524157"], ["id", 131351955]]
|
5923
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
5924
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
5925
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
5926
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
5927
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
5928
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
5929
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
5930
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:41:02.531216"]]
|
5931
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
5932
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 1]]
|
5933
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
5934
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:41:02.535950"]]
|
5935
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
5936
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 2]]
|
5937
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5938
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
5939
|
+
[1m[35mCar Load (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
5941
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5942
|
+
-------------------------------------
|
5943
|
+
CarTest: test_search_car_with_through
|
5944
|
+
-------------------------------------
|
5945
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
5946
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
5947
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
5948
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5949
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5950
|
+
--------------------------------------------------
|
5951
|
+
CarTest: test_search_car_with_through_on_any_field
|
5952
|
+
--------------------------------------------------
|
5953
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
5954
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
5955
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567654321234567890' ORDER BY "cars"."id" ASC
|
5956
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5957
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5958
|
+
-------------------------------------------------------
|
5959
|
+
SearchableModelsTest: test_module_is_correctly_included
|
5960
|
+
-------------------------------------------------------
|
5961
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5962
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5963
|
+
[1m[36m (5.5ms)[0m [1mCREATE 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) [0m
|
5964
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5965
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5966
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5967
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
5968
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141113130904')
|
5969
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5970
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5971
|
+
Migrating to CreateGroups (20141113142341)
|
5972
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5973
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
5974
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142341"]]
|
5975
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
5976
|
+
Migrating to AddGroupIdToCars (20141113142350)
|
5977
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5978
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "cars" ADD "group_id" integer[0m
|
5979
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113142350"]]
|
5980
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5981
|
+
Migrating to CreateDoors (20141113153040)
|
5982
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5983
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "doors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "car_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5984
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5985
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_doors_on_car_id" ON "doors" ("car_id")[0m
|
5986
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113153040"]]
|
5987
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5988
|
+
Migrating to CreateProviders (20141114120705)
|
5989
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5990
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "providers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
5991
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114120705"]]
|
5992
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
5993
|
+
Migrating to CreateComponents (20141114120731)
|
5994
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5995
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "components" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "serial" varchar, "provider_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
5996
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_components_on_provider_id" ON "components" ("provider_id")
|
5997
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120731"]]
|
5998
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5999
|
+
Migrating to AddComponentIdToDoors (20141114120804)
|
6000
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6001
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "doors" ADD "component_id" integer
|
6002
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114120804"]]
|
6003
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6004
|
+
Migrating to ActsAsTaggableOnMigration (20141114122828)
|
6005
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6006
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
|
6007
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
6008
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_tag_id" ON "taggings" ("tag_id")
|
6009
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6017
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
6018
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122828"]]
|
6019
|
+
[1m[35m (0.8ms)[0m commit transaction
|
6020
|
+
Migrating to AddMissingUniqueIndices (20141114122829)
|
6021
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6022
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_tags_on_name" ON "tags" ("name")
|
6023
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
6031
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mDROP INDEX "index_taggings_on_tag_id"[0m
|
6040
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mDROP INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context"[0m
|
6049
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "taggings_idx" ON "taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type")
|
6050
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122829"]]
|
6051
|
+
[1m[35m (0.9ms)[0m commit transaction
|
6052
|
+
Migrating to AddTaggingsCounterCacheToTags (20141114122830)
|
6053
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
6054
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "tags" ADD "taggings_count" integer DEFAULT 0
|
6055
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" ORDER BY "tags"."id" ASC LIMIT 1000[0m
|
6056
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141114122830"]]
|
6057
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
6058
|
+
Migrating to AddMissingTaggableIndex (20141114122831)
|
6059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6060
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6068
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_taggings_on_taggable_id_and_taggable_type_and_context" ON "taggings" ("taggable_id", "taggable_type", "context")
|
6069
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114122831"]]
|
6070
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6071
|
+
Migrating to AddCarTranslations (20141114130703)
|
6072
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6073
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "car_translations" ADD "commercial_name" varchar[0m
|
6075
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_car_id" ON "car_translations" ("car_id")
|
6076
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
6084
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_car_translations_on_locale" ON "car_translations" ("locale")
|
6085
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141114130703"]]
|
6086
|
+
[1m[35m (0.8ms)[0m commit transaction
|
6087
|
+
Migrating to AddLongDescriptionToCar (20141211095408)
|
6088
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6089
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "cars" ADD "long_description" text
|
6090
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141211095408"]]
|
6091
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6092
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6093
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "cars"
|
6094
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
6095
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
6097
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "components"
|
6098
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
6099
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
6101
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "doors"
|
6102
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
6103
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
6105
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "groups"
|
6106
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "groups" ("name", "created_at", "updated_at", "id") VALUES ('Group one', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 972975755)[0m
|
6107
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "providers"[0m
|
6109
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "providers" ("name", "created_at", "updated_at", "id") VALUES ('Provider two', '2015-01-08 08:43:22', '2015-01-08 08:43:22', 202898348)[0m
|
6111
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
6113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6114
|
+
------------------------------------------
|
6115
|
+
CarTest: test_search_car_with_belong_to_id
|
6116
|
+
------------------------------------------
|
6117
|
+
[1m[36mGroup Load (0.1ms)[0m [1mSELECT "groups".* FROM "groups" WHERE "groups"."id" = ? LIMIT 1[0m [["id", 266440024]]
|
6118
|
+
[1m[35mCar Load (0.2ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6119
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."group_id" = ? ORDER BY "cars"."id" ASC[0m [["group_id", 266440024]]
|
6120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6122
|
+
------------------------------------------
|
6123
|
+
CarTest: test_search_car_with_deep_through
|
6124
|
+
------------------------------------------
|
6125
|
+
[1m[35mProvider Load (0.2ms)[0m SELECT "providers".* FROM "providers" WHERE "providers"."id" = ? LIMIT 1 [["id", 296621295]]
|
6126
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6127
|
+
[1m[35mCar Load (0.3ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."provider_id" = 296621295 ORDER BY "cars"."id" ASC
|
6128
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6130
|
+
----------------------------------
|
6131
|
+
CarTest: test_search_car_with_enum
|
6132
|
+
----------------------------------
|
6133
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6134
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."kind" = ? ORDER BY "cars"."id" ASC [["kind", 2]]
|
6135
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6137
|
+
------------------------------------------
|
6138
|
+
CarTest: test_search_car_with_exact_search
|
6139
|
+
------------------------------------------
|
6140
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6141
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."number_of_doors" = ? ORDER BY "cars"."id" ASC [["number_of_doors", 2]]
|
6142
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6143
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6144
|
+
-------------------------------------------------------------
|
6145
|
+
CarTest: test_search_car_with_fuzzy_search_on_multiple_fields
|
6146
|
+
-------------------------------------------------------------
|
6147
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6148
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.name) like '%foo%' OR LOWER(cars.description) like '%foo%')) ORDER BY "cars"."id" ASC
|
6149
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6150
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6151
|
+
-------------------------------------------------------
|
6152
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field
|
6153
|
+
-------------------------------------------------------
|
6154
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6155
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.brand) like '%foo%')) ORDER BY "cars"."id" ASC
|
6156
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6158
|
+
------------------------------------------------------------------------
|
6159
|
+
CarTest: test_search_car_with_fuzzy_search_on_one_field_with_named_param
|
6160
|
+
------------------------------------------------------------------------
|
6161
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6162
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.model) like '%foo%')) ORDER BY "cars"."id" ASC
|
6163
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6164
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6165
|
+
--------------------------------------------------------
|
6166
|
+
CarTest: test_search_car_with_fuzzy_search_on_text_field
|
6167
|
+
--------------------------------------------------------
|
6168
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6169
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE ((LOWER(cars.long_description) like '%foo%')) ORDER BY "cars"."id" ASC
|
6170
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6171
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6172
|
+
----------------------------------------
|
6173
|
+
CarTest: test_search_car_with_i18n_field
|
6174
|
+
----------------------------------------
|
6175
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6177
|
+
[1m[36mCar::Translation Load (0.1ms)[0m [1mSELECT "car_translations".* FROM "car_translations" WHERE "car_translations"."car_id" = ?[0m [["car_id", 131351955]]
|
6178
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.639624"], ["id", 131351955]]
|
6179
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6181
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.652699' WHERE "cars"."id" = ?[0m [["id", 131351955]]
|
6182
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6183
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6184
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.656472"], ["id", 131351955]]
|
6185
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6187
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.660659' WHERE "cars"."id" = ?[0m [["id", 131351955]]
|
6188
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6189
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6190
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.662854"], ["id", 131351955]]
|
6191
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6193
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.667108' WHERE "cars"."id" = ?[0m [["id", 131351955]]
|
6194
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6195
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6196
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.670175"], ["id", 131351955]]
|
6197
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "car_translations" ("locale", "car_id", "commercial_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6199
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.675231' WHERE "cars"."id" = ?[0m [["id", 131351955]]
|
6200
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6201
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6202
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.678637"], ["id", 131351955]]
|
6203
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "car_translations" SET "commercial_name" = ?, "updated_at" = ? WHERE "car_translations"."id" = ?[0m [["commercial_name", "Commercial Name foobarish! pt"], ["updated_at", "2015-01-08 08:43:22.681297"], ["id", 4]]
|
6204
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "cars" SET "updated_at" = '2015-01-08 08:43:22.682687' WHERE "cars"."id" = ? [["id", 131351955]]
|
6205
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6206
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "car_translations" ON "car_translations"."car_id" = "cars"."id" WHERE ((LOWER(car_translations.commercial_name) like '%bar%')) ORDER BY "cars"."id" ASC
|
6207
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
6208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6209
|
+
-----------------------------------
|
6210
|
+
CarTest: test_search_car_with_scope
|
6211
|
+
-----------------------------------
|
6212
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6213
|
+
[1m[35mCar Load (0.1ms)[0m SELECT DISTINCT "cars".* FROM "cars" WHERE "cars"."import_date" = ? ORDER BY "cars"."id" ASC [["import_date", "1990-10-20"]]
|
6214
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6215
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6216
|
+
--------------------------------------
|
6217
|
+
CarTest: test_search_car_with_tags_AND
|
6218
|
+
--------------------------------------
|
6219
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6220
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6221
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
6222
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ? [["updated_at", "2015-01-08 08:43:22.704441"], ["id", 131351955]]
|
6223
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))[0m
|
6224
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1
|
6225
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_1"]]
|
6226
|
+
[1m[35mActsAsTaggableOn::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1
|
6227
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "tags" ("name") VALUES (?)[0m [["name", "version_2"]]
|
6228
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
6229
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
6230
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 1]]
|
6232
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 1]]
|
6233
|
+
[1m[36mActsAsTaggableOn::Tagging Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
6234
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.0ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
6236
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ? [["id", 2]]
|
6237
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6238
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
6239
|
+
[1m[36mCar Load (0.2ms)[0m [1mSELECT 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[0m
|
6240
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
6241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6242
|
+
-------------------------------------
|
6243
|
+
CarTest: test_search_car_with_tags_OR
|
6244
|
+
-------------------------------------
|
6245
|
+
[1m[35mCar Load (0.1ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6246
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6247
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
6248
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "cars" SET "updated_at" = ? WHERE "cars"."id" = ?[0m [["updated_at", "2015-01-08 08:43:22.814087"], ["id", 131351955]]
|
6249
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1') OR LOWER(name) = LOWER('version_2'))
|
6250
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_1' LIMIT 1[0m
|
6251
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_1"]]
|
6252
|
+
[1m[36mActsAsTaggableOn::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'version_2' LIMIT 1[0m
|
6253
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "version_2"]]
|
6254
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m [["taggable_id", 131351955], ["taggable_type", "Car"]]
|
6255
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
6256
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 1], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:43:22.823641"]]
|
6257
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 1]]
|
6258
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 1]]
|
6259
|
+
[1m[35mActsAsTaggableOn::Tagging Exists (0.1ms)[0m SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Car' AND "taggings"."taggable_id" = 131351955 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
|
6260
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "taggings" ("tag_id", "context", "taggable_id", "taggable_type", "created_at") VALUES (?, ?, ?, ?, ?)[0m [["tag_id", 2], ["context", "tags"], ["taggable_id", 131351955], ["taggable_type", "Car"], ["created_at", "2015-01-08 08:43:22.828159"]]
|
6261
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.0ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]]
|
6262
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = ?[0m [["id", 2]]
|
6263
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6264
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('version_1'))[0m
|
6265
|
+
[1m[35mCar Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6267
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6268
|
+
-------------------------------------
|
6269
|
+
CarTest: test_search_car_with_through
|
6270
|
+
-------------------------------------
|
6271
|
+
[1m[36mComponent Load (0.1ms)[0m [1mSELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1[0m [["id", 172444051]]
|
6272
|
+
[1m[35mCar Load (0.0ms)[0m SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 131351955]]
|
6273
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" WHERE "doors"."component_id" = 172444051 ORDER BY "cars"."id" ASC[0m
|
6274
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6276
|
+
--------------------------------------------------
|
6277
|
+
CarTest: test_search_car_with_through_on_any_field
|
6278
|
+
--------------------------------------------------
|
6279
|
+
[1m[35mComponent Load (0.1ms)[0m SELECT "components".* FROM "components" WHERE "components"."id" = ? LIMIT 1 [["id", 172444051]]
|
6280
|
+
[1m[36mCar Load (0.0ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 131351955]]
|
6281
|
+
[1m[35mCar Load (0.2ms)[0m SELECT DISTINCT "cars".* FROM "cars" INNER JOIN "doors" ON "doors"."car_id" = "cars"."id" INNER JOIN "components" ON "components"."id" = "doors"."component_id" WHERE "components"."serial" = '1234567654321234567890' ORDER BY "cars"."id" ASC
|
6282
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6283
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6284
|
+
-------------------------------------------------------
|
6285
|
+
SearchableModelsTest: test_module_is_correctly_included
|
6286
|
+
-------------------------------------------------------
|
6287
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|