indexes 0.0.1 → 4.0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,7 @@ module Indexes
31
31
  end
32
32
  end
33
33
 
34
- def add_computed_sort(name, &block)
34
+ def computed_sort(name, &block)
35
35
  self.computed_sorts[name] = block
36
36
  end
37
37
 
@@ -0,0 +1,25 @@
1
+ module Indexes
2
+ class Definitions
3
+
4
+ def add(*args)
5
+ index = Index.new(*args)
6
+ registry[index.name] = index
7
+ end
8
+
9
+ def find(name)
10
+ registry[name]
11
+ end
12
+ alias_method :[], :find
13
+
14
+ def each(&block)
15
+ registry.values.sort.each &block
16
+ end
17
+
18
+ private
19
+
20
+ def registry
21
+ @registry ||= {}
22
+ end
23
+
24
+ end
25
+ end
@@ -1,10 +1,10 @@
1
1
  module Indexes
2
2
  module Dsl
3
- class Serializer < Api
3
+ class Serialization < Api
4
4
 
5
- def set(object, *names)
5
+ def extract(record, *names)
6
6
  names.each do |name|
7
- send name, object.send(name)
7
+ send name, record.send(name)
8
8
  end
9
9
  end
10
10
 
@@ -8,7 +8,7 @@ module Indexes
8
8
  @name = name
9
9
  @type = @name.to_s.singularize
10
10
  @options = options
11
- make_indexable
11
+ indexify_model
12
12
  end
13
13
 
14
14
  def mappings
@@ -132,10 +132,10 @@ module Indexes
132
132
  end
133
133
 
134
134
  def serialize(record)
135
- Dsl::Serializer.new(record, &options[:serializer]).to_h
135
+ Dsl::Serialization.new(record, &options[:serialization]).to_h
136
136
  end
137
137
 
138
- def make_indexable
138
+ def indexify_model
139
139
  index = self
140
140
  model.class_eval do
141
141
  include Indexes::Concern
@@ -4,10 +4,10 @@ module Indexes
4
4
  def initialize(name, options={}, &block)
5
5
  @options = options
6
6
  instance_eval &block
7
- Indexes.add name, @options
7
+ Indexes.definitions.add name, @options
8
8
  end
9
9
 
10
- %i(mappings serializer search).each do |name|
10
+ %i(mappings serialization search).each do |name|
11
11
  define_method name do |&block|
12
12
  @options[name] = block
13
13
  end
@@ -1,9 +1,9 @@
1
1
  module Indexes
2
2
  class Railtie < Rails::Railtie
3
3
 
4
- initializer :indexes do
5
- Dir[Rails.root.join('app/indexes/*')].each do |index|
6
- load index
4
+ config.after_initialize do
5
+ Dir[Rails.root.join('app/indexes/*')].each do |file|
6
+ load file
7
7
  end
8
8
  end
9
9
 
@@ -1,5 +1,5 @@
1
1
  module Indexes
2
2
 
3
- VERSION = '0.0.1'
3
+ VERSION = '4.0.0.0'
4
4
 
5
5
  end
@@ -5,8 +5,8 @@ Indexes.define :products do
5
5
  _parent type: 'shop'
6
6
  end
7
7
 
8
- serializer do |record|
9
- set record, :name, :category, :shop_id, :price, :currency
8
+ serialization do |record|
9
+ extract record, :name, :category, :shop_id, :price, :currency
10
10
  product_suggestions do
11
11
  input [record.name, transliterate(record.name)].uniq
12
12
  output record.name
@@ -4,8 +4,8 @@ Indexes.define :other, class_name: 'Shop' do
4
4
  properties :name
5
5
  end
6
6
 
7
- serializer do |record|
8
- set record, :name
7
+ serialization do |record|
8
+ name record.name
9
9
  end
10
10
 
11
11
  search do |*args|
@@ -54,7 +54,7 @@ Indexes.configure do |config|
54
54
  end
55
55
  end
56
56
 
57
- config.add_computed_sort :price do |direction|
57
+ config.computed_sort :price do |direction|
58
58
  _script do
59
59
  type 'number'
60
60
  script do
@@ -406,3 +406,2090 @@ GeneratorsTest: test_index
406
406
  GeneratorsTest: test_install
407
407
  ----------------------------
408
408
   (0.3ms) ROLLBACK
409
+ ActiveRecord::SchemaMigration Load (28.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
410
+  (0.2ms) BEGIN
411
+ ---------------------
412
+ TasksTest: test_build
413
+ ---------------------
414
+ Product Load (3.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
415
+ Shop Load (1.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
416
+  (0.4ms) ROLLBACK
417
+  (0.1ms) BEGIN
418
+ -----------------------
419
+ TasksTest: test_rebuild
420
+ -----------------------
421
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
422
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
423
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
424
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
425
+  (0.3ms) ROLLBACK
426
+  (0.1ms) BEGIN
427
+ ----------------------
428
+ IndexesTest: test_find
429
+ ----------------------
430
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
431
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
432
+  (0.4ms) ROLLBACK
433
+  (0.1ms) BEGIN
434
+ -------------------------
435
+ IndexesTest: test_suggest
436
+ -------------------------
437
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
438
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
439
+  (0.2ms) SAVEPOINT active_record_1
440
+ SQL (28.0ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:09:37.379145"], ["updated_at", "2016-11-30 22:09:37.379145"]]
441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
442
+  (0.2ms) SAVEPOINT active_record_1
443
+ SQL (7.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 9], ["created_at", "2016-11-30 22:09:37.429246"], ["updated_at", "2016-11-30 22:09:37.429246"]]
444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
445
+  (0.6ms) ROLLBACK
446
+  (0.1ms) BEGIN
447
+ -----------------------
448
+ IndexesTest: test_exist
449
+ -----------------------
450
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
451
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
452
+  (0.4ms) ROLLBACK
453
+  (0.2ms) BEGIN
454
+ ---------------------------
455
+ IndexesTest: test_namespace
456
+ ---------------------------
457
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
458
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
459
+  (0.3ms) ROLLBACK
460
+  (0.2ms) BEGIN
461
+ -------------------------
462
+ SearchTest: test_includes
463
+ -------------------------
464
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
465
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
466
+  (0.1ms) SAVEPOINT active_record_1
467
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:09:37.663352"], ["updated_at", "2016-11-30 22:09:37.663352"]]
468
+  (0.2ms) RELEASE SAVEPOINT active_record_1
469
+  (0.1ms) SAVEPOINT active_record_1
470
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 10], ["created_at", "2016-11-30 22:09:37.666783"], ["updated_at", "2016-11-30 22:09:37.666783"]]
471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
472
+  (0.3ms) ROLLBACK
473
+  (0.1ms) BEGIN
474
+ ----------------------
475
+ SearchTest: test_order
476
+ ----------------------
477
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
478
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
479
+  (0.1ms) SAVEPOINT active_record_1
480
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:09:37.737428"], ["updated_at", "2016-11-30 22:09:37.737428"]]
481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
482
+  (0.3ms) ROLLBACK
483
+  (0.1ms) BEGIN
484
+ ---------------------------
485
+ SearchTest: test_pagination
486
+ ---------------------------
487
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
488
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
489
+  (0.1ms) SAVEPOINT active_record_1
490
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:09:37.812572"], ["updated_at", "2016-11-30 22:09:37.812572"]]
491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
492
+  (0.3ms) ROLLBACK
493
+  (0.2ms) BEGIN
494
+ ---------------------------------
495
+ SearchTest: test_with_and_without
496
+ ---------------------------------
497
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
498
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
499
+  (0.2ms) SAVEPOINT active_record_1
500
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:09:37.884395"], ["updated_at", "2016-11-30 22:09:37.884395"]]
501
+  (0.2ms) RELEASE SAVEPOINT active_record_1
502
+  (0.4ms) ROLLBACK
503
+  (0.1ms) BEGIN
504
+ --------------------
505
+ DslTest: test_search
506
+ --------------------
507
+  (0.2ms) ROLLBACK
508
+  (0.1ms) BEGIN
509
+ --------------------------
510
+ GeneratorsTest: test_index
511
+ --------------------------
512
+  (0.2ms) ROLLBACK
513
+  (0.1ms) BEGIN
514
+ ----------------------------
515
+ GeneratorsTest: test_install
516
+ ----------------------------
517
+  (0.2ms) ROLLBACK
518
+  (0.1ms) BEGIN
519
+ -------------------------
520
+ RecordTest: test_indexing
521
+ -------------------------
522
+ Product Load (2.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
523
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
524
+  (0.2ms) SAVEPOINT active_record_1
525
+ SQL (0.3ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:09:38.001480"], ["updated_at", "2016-11-30 22:09:38.001480"]]
526
+  (0.5ms) RELEASE SAVEPOINT active_record_1
527
+  (1.2ms) SAVEPOINT active_record_1
528
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 12], ["created_at", "2016-11-30 22:09:38.006459"], ["updated_at", "2016-11-30 22:09:38.006459"]]
529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
530
+  (0.3ms) ROLLBACK
531
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
532
+  (0.2ms) BEGIN
533
+ -------------------------
534
+ RecordTest: test_indexing
535
+ -------------------------
536
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
537
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
538
+  (0.2ms) SAVEPOINT active_record_1
539
+ SQL (0.4ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:10:35.170969"], ["updated_at", "2016-11-30 22:10:35.170969"]]
540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
541
+  (0.3ms) SAVEPOINT active_record_1
542
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 13], ["created_at", "2016-11-30 22:10:35.190327"], ["updated_at", "2016-11-30 22:10:35.190327"]]
543
+  (0.2ms) RELEASE SAVEPOINT active_record_1
544
+  (0.4ms) ROLLBACK
545
+  (0.2ms) BEGIN
546
+ ---------------------
547
+ TasksTest: test_build
548
+ ---------------------
549
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
550
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
551
+  (0.3ms) ROLLBACK
552
+  (0.1ms) BEGIN
553
+ -----------------------
554
+ TasksTest: test_rebuild
555
+ -----------------------
556
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
557
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
558
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
559
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
560
+  (0.3ms) ROLLBACK
561
+  (0.1ms) BEGIN
562
+ --------------------------
563
+ GeneratorsTest: test_index
564
+ --------------------------
565
+  (0.2ms) ROLLBACK
566
+  (0.1ms) BEGIN
567
+ ----------------------------
568
+ GeneratorsTest: test_install
569
+ ----------------------------
570
+  (0.2ms) ROLLBACK
571
+  (0.1ms) BEGIN
572
+ ---------------------------------
573
+ SearchTest: test_with_and_without
574
+ ---------------------------------
575
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
576
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
577
+  (0.1ms) SAVEPOINT active_record_1
578
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:10:35.514040"], ["updated_at", "2016-11-30 22:10:35.514040"]]
579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
580
+  (0.3ms) ROLLBACK
581
+  (0.1ms) BEGIN
582
+ -------------------------
583
+ SearchTest: test_includes
584
+ -------------------------
585
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
586
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
587
+  (0.1ms) SAVEPOINT active_record_1
588
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:10:35.591115"], ["updated_at", "2016-11-30 22:10:35.591115"]]
589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
590
+  (0.1ms) SAVEPOINT active_record_1
591
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 14], ["created_at", "2016-11-30 22:10:35.594040"], ["updated_at", "2016-11-30 22:10:35.594040"]]
592
+  (0.2ms) RELEASE SAVEPOINT active_record_1
593
+  (0.3ms) ROLLBACK
594
+  (0.2ms) BEGIN
595
+ ----------------------
596
+ SearchTest: test_order
597
+ ----------------------
598
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
599
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
600
+  (0.1ms) SAVEPOINT active_record_1
601
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:10:35.654000"], ["updated_at", "2016-11-30 22:10:35.654000"]]
602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
603
+  (0.4ms) ROLLBACK
604
+  (0.2ms) BEGIN
605
+ ---------------------------
606
+ SearchTest: test_pagination
607
+ ---------------------------
608
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
609
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
610
+  (0.2ms) SAVEPOINT active_record_1
611
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:10:35.717261"], ["updated_at", "2016-11-30 22:10:35.717261"]]
612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
613
+  (0.4ms) ROLLBACK
614
+  (0.1ms) BEGIN
615
+ --------------------
616
+ DslTest: test_search
617
+ --------------------
618
+  (0.2ms) ROLLBACK
619
+  (0.2ms) BEGIN
620
+ ----------------------
621
+ IndexesTest: test_find
622
+ ----------------------
623
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
624
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
625
+  (0.3ms) ROLLBACK
626
+  (0.1ms) BEGIN
627
+ -----------------------
628
+ IndexesTest: test_exist
629
+ -----------------------
630
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
631
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
632
+  (0.3ms) ROLLBACK
633
+  (0.2ms) BEGIN
634
+ ---------------------------
635
+ IndexesTest: test_namespace
636
+ ---------------------------
637
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
638
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
639
+  (0.3ms) ROLLBACK
640
+  (0.2ms) BEGIN
641
+ -------------------------
642
+ IndexesTest: test_suggest
643
+ -------------------------
644
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
645
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
646
+  (0.1ms) SAVEPOINT active_record_1
647
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:10:35.959191"], ["updated_at", "2016-11-30 22:10:35.959191"]]
648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
649
+  (0.1ms) SAVEPOINT active_record_1
650
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 16], ["created_at", "2016-11-30 22:10:35.961310"], ["updated_at", "2016-11-30 22:10:35.961310"]]
651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
652
+  (0.3ms) ROLLBACK
653
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
654
+  (0.2ms) BEGIN
655
+ -------------------------
656
+ RecordTest: test_indexing
657
+ -------------------------
658
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
659
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
660
+  (0.2ms) SAVEPOINT active_record_1
661
+ SQL (0.4ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:12:42.973694"], ["updated_at", "2016-11-30 22:12:42.973694"]]
662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
663
+  (0.2ms) SAVEPOINT active_record_1
664
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 17], ["created_at", "2016-11-30 22:12:42.992714"], ["updated_at", "2016-11-30 22:12:42.992714"]]
665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
666
+  (0.4ms) ROLLBACK
667
+  (0.1ms) BEGIN
668
+ --------------------------
669
+ GeneratorsTest: test_index
670
+ --------------------------
671
+  (0.2ms) ROLLBACK
672
+  (0.2ms) BEGIN
673
+ ----------------------------
674
+ GeneratorsTest: test_install
675
+ ----------------------------
676
+  (0.2ms) ROLLBACK
677
+  (0.1ms) BEGIN
678
+ ---------------------
679
+ TasksTest: test_build
680
+ ---------------------
681
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
682
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
683
+  (0.3ms) ROLLBACK
684
+  (0.1ms) BEGIN
685
+ -----------------------
686
+ TasksTest: test_rebuild
687
+ -----------------------
688
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
689
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
690
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
691
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
692
+  (0.4ms) ROLLBACK
693
+  (0.2ms) BEGIN
694
+ --------------------
695
+ DslTest: test_search
696
+ --------------------
697
+  (0.2ms) ROLLBACK
698
+  (0.2ms) BEGIN
699
+ ---------------------------
700
+ IndexesTest: test_namespace
701
+ ---------------------------
702
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
703
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
704
+  (0.4ms) ROLLBACK
705
+  (0.2ms) BEGIN
706
+ -------------------------
707
+ IndexesTest: test_suggest
708
+ -------------------------
709
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
710
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
711
+  (0.1ms) SAVEPOINT active_record_1
712
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:12:45.436502"], ["updated_at", "2016-11-30 22:12:45.436502"]]
713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
714
+  (0.1ms) SAVEPOINT active_record_1
715
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 18], ["created_at", "2016-11-30 22:12:45.440134"], ["updated_at", "2016-11-30 22:12:45.440134"]]
716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
717
+  (0.2ms) SAVEPOINT active_record_1
718
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 18], ["created_at", "2016-11-30 22:12:45.450803"], ["updated_at", "2016-11-30 22:12:45.450803"]]
719
+  (0.2ms) RELEASE SAVEPOINT active_record_1
720
+  (0.5ms) ROLLBACK
721
+  (0.1ms) BEGIN
722
+ -----------------------
723
+ IndexesTest: test_exist
724
+ -----------------------
725
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
726
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
727
+  (0.3ms) ROLLBACK
728
+  (0.1ms) BEGIN
729
+ ----------------------
730
+ IndexesTest: test_find
731
+ ----------------------
732
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
733
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
734
+  (0.3ms) ROLLBACK
735
+  (0.2ms) BEGIN
736
+ ---------------------------
737
+ SearchTest: test_pagination
738
+ ---------------------------
739
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
740
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
741
+  (0.1ms) SAVEPOINT active_record_1
742
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:12:47.653796"], ["updated_at", "2016-11-30 22:12:47.653796"]]
743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
744
+  (0.2ms) SAVEPOINT active_record_1
745
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:12:47.661861"], ["updated_at", "2016-11-30 22:12:47.661861"]]
746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
747
+  (0.2ms) SAVEPOINT active_record_1
748
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:12:47.668597"], ["updated_at", "2016-11-30 22:12:47.668597"]]
749
+  (0.2ms) RELEASE SAVEPOINT active_record_1
750
+  (0.3ms) SAVEPOINT active_record_1
751
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:12:47.675621"], ["updated_at", "2016-11-30 22:12:47.675621"]]
752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
753
+  (0.2ms) SAVEPOINT active_record_1
754
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:12:47.682022"], ["updated_at", "2016-11-30 22:12:47.682022"]]
755
+  (0.2ms) RELEASE SAVEPOINT active_record_1
756
+  (0.3ms) ROLLBACK
757
+  (0.2ms) BEGIN
758
+ -------------------------
759
+ SearchTest: test_includes
760
+ -------------------------
761
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
762
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
763
+  (0.1ms) SAVEPOINT active_record_1
764
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:12:49.836641"], ["updated_at", "2016-11-30 22:12:49.836641"]]
765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
766
+  (0.1ms) SAVEPOINT active_record_1
767
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 19], ["created_at", "2016-11-30 22:12:49.838870"], ["updated_at", "2016-11-30 22:12:49.838870"]]
768
+  (0.2ms) RELEASE SAVEPOINT active_record_1
769
+  (0.3ms) ROLLBACK
770
+  (0.2ms) BEGIN
771
+ ----------------------
772
+ SearchTest: test_order
773
+ ----------------------
774
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
775
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
776
+  (0.1ms) SAVEPOINT active_record_1
777
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:12:51.900858"], ["updated_at", "2016-11-30 22:12:51.900858"]]
778
+  (0.2ms) RELEASE SAVEPOINT active_record_1
779
+  (0.2ms) SAVEPOINT active_record_1
780
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 20], ["created_at", "2016-11-30 22:12:51.906754"], ["updated_at", "2016-11-30 22:12:51.906754"]]
781
+  (0.2ms) RELEASE SAVEPOINT active_record_1
782
+  (0.2ms) SAVEPOINT active_record_1
783
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 20], ["created_at", "2016-11-30 22:12:51.914503"], ["updated_at", "2016-11-30 22:12:51.914503"]]
784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
785
+  (0.3ms) SAVEPOINT active_record_1
786
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 20], ["created_at", "2016-11-30 22:12:51.920968"], ["updated_at", "2016-11-30 22:12:51.920968"]]
787
+  (0.2ms) RELEASE SAVEPOINT active_record_1
788
+  (0.3ms) ROLLBACK
789
+  (0.1ms) BEGIN
790
+ ---------------------------------
791
+ SearchTest: test_with_and_without
792
+ ---------------------------------
793
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
794
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
795
+  (0.1ms) SAVEPOINT active_record_1
796
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:12:53.985672"], ["updated_at", "2016-11-30 22:12:53.985672"]]
797
+  (0.2ms) RELEASE SAVEPOINT active_record_1
798
+  (0.2ms) SAVEPOINT active_record_1
799
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:12:53.991395"], ["updated_at", "2016-11-30 22:12:53.991395"]]
800
+  (0.2ms) RELEASE SAVEPOINT active_record_1
801
+  (0.2ms) SAVEPOINT active_record_1
802
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:12:53.997389"], ["updated_at", "2016-11-30 22:12:53.997389"]]
803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
804
+  (0.2ms) SAVEPOINT active_record_1
805
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:12:54.003275"], ["updated_at", "2016-11-30 22:12:54.003275"]]
806
+  (0.2ms) RELEASE SAVEPOINT active_record_1
807
+  (0.3ms) ROLLBACK
808
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
809
+  (0.2ms) BEGIN
810
+ ----------------------
811
+ IndexesTest: test_find
812
+ ----------------------
813
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
814
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
815
+  (0.4ms) ROLLBACK
816
+  (0.2ms) BEGIN
817
+ -------------------------
818
+ IndexesTest: test_suggest
819
+ -------------------------
820
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
821
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
822
+  (0.2ms) SAVEPOINT active_record_1
823
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:13:20.675161"], ["updated_at", "2016-11-30 22:13:20.675161"]]
824
+  (0.2ms) RELEASE SAVEPOINT active_record_1
825
+  (0.2ms) SAVEPOINT active_record_1
826
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 21], ["created_at", "2016-11-30 22:13:20.693132"], ["updated_at", "2016-11-30 22:13:20.693132"]]
827
+  (0.2ms) RELEASE SAVEPOINT active_record_1
828
+  (0.2ms) SAVEPOINT active_record_1
829
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 21], ["created_at", "2016-11-30 22:13:20.720488"], ["updated_at", "2016-11-30 22:13:20.720488"]]
830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
831
+  (0.4ms) ROLLBACK
832
+  (0.2ms) BEGIN
833
+ -----------------------
834
+ IndexesTest: test_exist
835
+ -----------------------
836
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
837
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
838
+  (0.4ms) ROLLBACK
839
+  (0.1ms) BEGIN
840
+ ---------------------------
841
+ IndexesTest: test_namespace
842
+ ---------------------------
843
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
844
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
845
+  (0.7ms) ROLLBACK
846
+  (0.2ms) BEGIN
847
+ -------------------------
848
+ SearchTest: test_includes
849
+ -------------------------
850
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
851
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
852
+  (0.1ms) SAVEPOINT active_record_1
853
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:13:22.934325"], ["updated_at", "2016-11-30 22:13:22.934325"]]
854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
855
+  (0.2ms) SAVEPOINT active_record_1
856
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 22], ["created_at", "2016-11-30 22:13:22.937093"], ["updated_at", "2016-11-30 22:13:22.937093"]]
857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
858
+  (0.4ms) ROLLBACK
859
+  (0.2ms) BEGIN
860
+ ----------------------
861
+ SearchTest: test_order
862
+ ----------------------
863
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
864
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
865
+  (0.2ms) SAVEPOINT active_record_1
866
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:13:25.052563"], ["updated_at", "2016-11-30 22:13:25.052563"]]
867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
868
+  (0.2ms) SAVEPOINT active_record_1
869
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 23], ["created_at", "2016-11-30 22:13:25.060266"], ["updated_at", "2016-11-30 22:13:25.060266"]]
870
+  (0.2ms) RELEASE SAVEPOINT active_record_1
871
+  (0.4ms) SAVEPOINT active_record_1
872
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 23], ["created_at", "2016-11-30 22:13:25.069104"], ["updated_at", "2016-11-30 22:13:25.069104"]]
873
+  (0.2ms) RELEASE SAVEPOINT active_record_1
874
+  (0.2ms) SAVEPOINT active_record_1
875
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 23], ["created_at", "2016-11-30 22:13:25.075974"], ["updated_at", "2016-11-30 22:13:25.075974"]]
876
+  (0.2ms) RELEASE SAVEPOINT active_record_1
877
+  (0.4ms) ROLLBACK
878
+  (0.2ms) BEGIN
879
+ ---------------------------------
880
+ SearchTest: test_with_and_without
881
+ ---------------------------------
882
+ Product Load (1.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
883
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
884
+  (0.1ms) SAVEPOINT active_record_1
885
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:13:27.145772"], ["updated_at", "2016-11-30 22:13:27.145772"]]
886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
887
+  (0.1ms) SAVEPOINT active_record_1
888
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:13:27.151880"], ["updated_at", "2016-11-30 22:13:27.151880"]]
889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
890
+  (0.2ms) SAVEPOINT active_record_1
891
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:13:27.159606"], ["updated_at", "2016-11-30 22:13:27.159606"]]
892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
893
+  (0.3ms) SAVEPOINT active_record_1
894
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:13:27.167092"], ["updated_at", "2016-11-30 22:13:27.167092"]]
895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
896
+  (0.4ms) ROLLBACK
897
+  (0.2ms) BEGIN
898
+ ---------------------------
899
+ SearchTest: test_pagination
900
+ ---------------------------
901
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
902
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
903
+  (0.1ms) SAVEPOINT active_record_1
904
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:13:29.244815"], ["updated_at", "2016-11-30 22:13:29.244815"]]
905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
906
+  (0.2ms) SAVEPOINT active_record_1
907
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:13:29.251598"], ["updated_at", "2016-11-30 22:13:29.251598"]]
908
+  (0.2ms) RELEASE SAVEPOINT active_record_1
909
+  (0.2ms) SAVEPOINT active_record_1
910
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:13:29.271166"], ["updated_at", "2016-11-30 22:13:29.271166"]]
911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
912
+  (0.2ms) SAVEPOINT active_record_1
913
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:13:29.280759"], ["updated_at", "2016-11-30 22:13:29.280759"]]
914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
915
+  (0.3ms) SAVEPOINT active_record_1
916
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:13:29.287306"], ["updated_at", "2016-11-30 22:13:29.287306"]]
917
+  (0.2ms) RELEASE SAVEPOINT active_record_1
918
+  (0.2ms) ROLLBACK
919
+  (0.1ms) BEGIN
920
+ --------------------------
921
+ GeneratorsTest: test_index
922
+ --------------------------
923
+  (0.2ms) ROLLBACK
924
+  (0.1ms) BEGIN
925
+ ----------------------------
926
+ GeneratorsTest: test_install
927
+ ----------------------------
928
+  (0.2ms) ROLLBACK
929
+  (0.2ms) BEGIN
930
+ ---------------------
931
+ TasksTest: test_build
932
+ ---------------------
933
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
934
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
935
+  (0.3ms) ROLLBACK
936
+  (0.2ms) BEGIN
937
+ -----------------------
938
+ TasksTest: test_rebuild
939
+ -----------------------
940
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
941
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
942
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
943
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
944
+  (0.4ms) ROLLBACK
945
+  (0.1ms) BEGIN
946
+ -------------------------
947
+ RecordTest: test_indexing
948
+ -------------------------
949
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
950
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
951
+  (0.1ms) SAVEPOINT active_record_1
952
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:13:31.607074"], ["updated_at", "2016-11-30 22:13:31.607074"]]
953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
954
+  (0.1ms) SAVEPOINT active_record_1
955
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 24], ["created_at", "2016-11-30 22:13:31.609632"], ["updated_at", "2016-11-30 22:13:31.609632"]]
956
+  (0.2ms) RELEASE SAVEPOINT active_record_1
957
+  (0.4ms) ROLLBACK
958
+  (0.1ms) BEGIN
959
+ --------------------
960
+ DslTest: test_search
961
+ --------------------
962
+  (0.2ms) ROLLBACK
963
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
964
+  (0.2ms) BEGIN
965
+ ----------------------
966
+ SearchTest: test_order
967
+ ----------------------
968
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
969
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
970
+  (0.2ms) SAVEPOINT active_record_1
971
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:17:56.059968"], ["updated_at", "2016-11-30 22:17:56.059968"]]
972
+  (0.2ms) RELEASE SAVEPOINT active_record_1
973
+  (0.2ms) ROLLBACK
974
+  (0.1ms) BEGIN
975
+ -------------------------
976
+ SearchTest: test_includes
977
+ -------------------------
978
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
979
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:17:56.113591"], ["updated_at", "2016-11-30 22:17:56.113591"]]
982
+  (0.9ms) RELEASE SAVEPOINT active_record_1
983
+  (0.2ms) SAVEPOINT active_record_1
984
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 26], ["created_at", "2016-11-30 22:17:56.130744"], ["updated_at", "2016-11-30 22:17:56.130744"]]
985
+  (0.2ms) RELEASE SAVEPOINT active_record_1
986
+  (0.3ms) ROLLBACK
987
+  (0.2ms) BEGIN
988
+ ---------------------------------
989
+ SearchTest: test_with_and_without
990
+ ---------------------------------
991
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
992
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
993
+  (0.1ms) SAVEPOINT active_record_1
994
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:17:56.184950"], ["updated_at", "2016-11-30 22:17:56.184950"]]
995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
996
+  (0.3ms) ROLLBACK
997
+  (0.1ms) BEGIN
998
+ ---------------------------
999
+ SearchTest: test_pagination
1000
+ ---------------------------
1001
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1002
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1003
+  (0.1ms) SAVEPOINT active_record_1
1004
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:17:56.249443"], ["updated_at", "2016-11-30 22:17:56.249443"]]
1005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1006
+  (0.4ms) ROLLBACK
1007
+  (0.1ms) BEGIN
1008
+ -------------------------
1009
+ IndexesTest: test_suggest
1010
+ -------------------------
1011
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1012
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1013
+  (0.1ms) SAVEPOINT active_record_1
1014
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:17:56.302946"], ["updated_at", "2016-11-30 22:17:56.302946"]]
1015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1016
+  (0.1ms) SAVEPOINT active_record_1
1017
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 27], ["created_at", "2016-11-30 22:17:56.305075"], ["updated_at", "2016-11-30 22:17:56.305075"]]
1018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1019
+  (0.4ms) ROLLBACK
1020
+  (0.2ms) BEGIN
1021
+ ----------------------
1022
+ IndexesTest: test_find
1023
+ ----------------------
1024
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1025
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1026
+  (0.2ms) ROLLBACK
1027
+  (0.1ms) BEGIN
1028
+ ---------------------------
1029
+ IndexesTest: test_namespace
1030
+ ---------------------------
1031
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1032
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1033
+  (0.3ms) ROLLBACK
1034
+  (0.1ms) BEGIN
1035
+ -----------------------
1036
+ IndexesTest: test_exist
1037
+ -----------------------
1038
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1039
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1040
+  (0.3ms) ROLLBACK
1041
+  (0.1ms) BEGIN
1042
+ --------------------
1043
+ DslTest: test_search
1044
+ --------------------
1045
+  (0.2ms) ROLLBACK
1046
+  (0.2ms) BEGIN
1047
+ -------------------------
1048
+ RecordTest: test_indexing
1049
+ -------------------------
1050
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1051
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1052
+  (0.1ms) SAVEPOINT active_record_1
1053
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:17:56.503354"], ["updated_at", "2016-11-30 22:17:56.503354"]]
1054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1055
+  (0.1ms) SAVEPOINT active_record_1
1056
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 28], ["created_at", "2016-11-30 22:17:56.505598"], ["updated_at", "2016-11-30 22:17:56.505598"]]
1057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1058
+  (0.3ms) ROLLBACK
1059
+  (0.2ms) BEGIN
1060
+ --------------------------
1061
+ GeneratorsTest: test_index
1062
+ --------------------------
1063
+  (0.2ms) ROLLBACK
1064
+  (0.1ms) BEGIN
1065
+ ----------------------------
1066
+ GeneratorsTest: test_install
1067
+ ----------------------------
1068
+  (0.2ms) ROLLBACK
1069
+  (0.2ms) BEGIN
1070
+ ---------------------
1071
+ TasksTest: test_build
1072
+ ---------------------
1073
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1074
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1075
+  (0.3ms) ROLLBACK
1076
+  (0.1ms) BEGIN
1077
+ -----------------------
1078
+ TasksTest: test_rebuild
1079
+ -----------------------
1080
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1081
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1082
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1083
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1084
+  (0.3ms) ROLLBACK
1085
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1086
+  (0.2ms) BEGIN
1087
+ -------------------------
1088
+ RecordTest: test_indexing
1089
+ -------------------------
1090
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1091
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1092
+  (0.2ms) SAVEPOINT active_record_1
1093
+ SQL (0.4ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:18:24.419367"], ["updated_at", "2016-11-30 22:18:24.419367"]]
1094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1095
+  (0.3ms) SAVEPOINT active_record_1
1096
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 29], ["created_at", "2016-11-30 22:18:24.435591"], ["updated_at", "2016-11-30 22:18:24.435591"]]
1097
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.6ms) ROLLBACK
1099
+  (0.2ms) BEGIN
1100
+ ---------------------------
1101
+ IndexesTest: test_namespace
1102
+ ---------------------------
1103
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1104
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1105
+  (0.3ms) ROLLBACK
1106
+  (0.2ms) BEGIN
1107
+ -------------------------
1108
+ IndexesTest: test_suggest
1109
+ -------------------------
1110
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1111
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1112
+  (0.1ms) SAVEPOINT active_record_1
1113
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:24.535392"], ["updated_at", "2016-11-30 22:18:24.535392"]]
1114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1115
+  (0.1ms) SAVEPOINT active_record_1
1116
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 30], ["created_at", "2016-11-30 22:18:24.537601"], ["updated_at", "2016-11-30 22:18:24.537601"]]
1117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1118
+  (0.3ms) ROLLBACK
1119
+  (0.1ms) BEGIN
1120
+ ----------------------
1121
+ IndexesTest: test_find
1122
+ ----------------------
1123
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1124
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1125
+  (0.2ms) ROLLBACK
1126
+  (0.1ms) BEGIN
1127
+ -----------------------
1128
+ IndexesTest: test_exist
1129
+ -----------------------
1130
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1131
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1132
+  (0.3ms) ROLLBACK
1133
+  (0.1ms) BEGIN
1134
+ ---------------------
1135
+ TasksTest: test_build
1136
+ ---------------------
1137
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1138
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1139
+  (0.2ms) ROLLBACK
1140
+  (0.1ms) BEGIN
1141
+ -----------------------
1142
+ TasksTest: test_rebuild
1143
+ -----------------------
1144
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1145
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1146
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1147
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1148
+  (0.4ms) ROLLBACK
1149
+  (0.2ms) BEGIN
1150
+ --------------------
1151
+ DslTest: test_search
1152
+ --------------------
1153
+  (0.2ms) ROLLBACK
1154
+  (0.2ms) BEGIN
1155
+ --------------------------
1156
+ GeneratorsTest: test_index
1157
+ --------------------------
1158
+  (0.3ms) ROLLBACK
1159
+  (0.1ms) BEGIN
1160
+ ----------------------------
1161
+ GeneratorsTest: test_install
1162
+ ----------------------------
1163
+  (0.2ms) ROLLBACK
1164
+  (0.2ms) BEGIN
1165
+ -------------------------
1166
+ SearchTest: test_includes
1167
+ -------------------------
1168
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1169
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1170
+  (0.1ms) SAVEPOINT active_record_1
1171
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:24.900989"], ["updated_at", "2016-11-30 22:18:24.900989"]]
1172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1173
+  (0.1ms) SAVEPOINT active_record_1
1174
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 31], ["created_at", "2016-11-30 22:18:24.903761"], ["updated_at", "2016-11-30 22:18:24.903761"]]
1175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1176
+  (0.4ms) ROLLBACK
1177
+  (0.2ms) BEGIN
1178
+ ----------------------
1179
+ SearchTest: test_order
1180
+ ----------------------
1181
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1182
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1183
+  (0.1ms) SAVEPOINT active_record_1
1184
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:24.951148"], ["updated_at", "2016-11-30 22:18:24.951148"]]
1185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1186
+  (0.6ms) ROLLBACK
1187
+  (0.1ms) BEGIN
1188
+ ---------------------------
1189
+ SearchTest: test_pagination
1190
+ ---------------------------
1191
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1192
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1193
+  (0.1ms) SAVEPOINT active_record_1
1194
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:18:25.000842"], ["updated_at", "2016-11-30 22:18:25.000842"]]
1195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1196
+  (0.3ms) ROLLBACK
1197
+  (0.1ms) BEGIN
1198
+ ---------------------------------
1199
+ SearchTest: test_with_and_without
1200
+ ---------------------------------
1201
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1202
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1203
+  (0.1ms) SAVEPOINT active_record_1
1204
+ SQL (0.8ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:18:25.054668"], ["updated_at", "2016-11-30 22:18:25.054668"]]
1205
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1206
+  (0.3ms) ROLLBACK
1207
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1208
+  (0.2ms) BEGIN
1209
+ ----------------------
1210
+ SearchTest: test_order
1211
+ ----------------------
1212
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1213
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1214
+  (0.2ms) SAVEPOINT active_record_1
1215
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:47.339539"], ["updated_at", "2016-11-30 22:18:47.339539"]]
1216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1217
+  (0.3ms) ROLLBACK
1218
+  (0.1ms) BEGIN
1219
+ ---------------------------
1220
+ SearchTest: test_pagination
1221
+ ---------------------------
1222
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1223
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1224
+  (0.2ms) SAVEPOINT active_record_1
1225
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:18:47.383193"], ["updated_at", "2016-11-30 22:18:47.383193"]]
1226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1227
+  (0.3ms) ROLLBACK
1228
+  (0.1ms) BEGIN
1229
+ ---------------------------------
1230
+ SearchTest: test_with_and_without
1231
+ ---------------------------------
1232
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1233
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1234
+  (0.1ms) SAVEPOINT active_record_1
1235
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:18:47.425450"], ["updated_at", "2016-11-30 22:18:47.425450"]]
1236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1237
+  (0.4ms) ROLLBACK
1238
+  (0.1ms) BEGIN
1239
+ -------------------------
1240
+ SearchTest: test_includes
1241
+ -------------------------
1242
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1243
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1244
+  (0.1ms) SAVEPOINT active_record_1
1245
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:47.473703"], ["updated_at", "2016-11-30 22:18:47.473703"]]
1246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1247
+  (0.2ms) SAVEPOINT active_record_1
1248
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 34], ["created_at", "2016-11-30 22:18:47.488781"], ["updated_at", "2016-11-30 22:18:47.488781"]]
1249
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1250
+  (0.4ms) ROLLBACK
1251
+  (0.2ms) BEGIN
1252
+ --------------------
1253
+ DslTest: test_search
1254
+ --------------------
1255
+  (0.2ms) ROLLBACK
1256
+  (0.1ms) BEGIN
1257
+ ---------------------------
1258
+ IndexesTest: test_namespace
1259
+ ---------------------------
1260
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1261
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1262
+  (0.3ms) ROLLBACK
1263
+  (0.2ms) BEGIN
1264
+ -------------------------
1265
+ IndexesTest: test_suggest
1266
+ -------------------------
1267
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1268
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1269
+  (0.1ms) SAVEPOINT active_record_1
1270
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:47.606526"], ["updated_at", "2016-11-30 22:18:47.606526"]]
1271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1272
+  (0.1ms) SAVEPOINT active_record_1
1273
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 35], ["created_at", "2016-11-30 22:18:47.609208"], ["updated_at", "2016-11-30 22:18:47.609208"]]
1274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1275
+  (0.4ms) ROLLBACK
1276
+  (0.2ms) BEGIN
1277
+ -----------------------
1278
+ IndexesTest: test_exist
1279
+ -----------------------
1280
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1281
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1282
+  (0.4ms) ROLLBACK
1283
+  (0.2ms) BEGIN
1284
+ ----------------------
1285
+ IndexesTest: test_find
1286
+ ----------------------
1287
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1288
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1289
+  (0.4ms) ROLLBACK
1290
+  (0.2ms) BEGIN
1291
+ ---------------------
1292
+ TasksTest: test_build
1293
+ ---------------------
1294
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1295
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1296
+  (0.4ms) ROLLBACK
1297
+  (0.1ms) BEGIN
1298
+ -----------------------
1299
+ TasksTest: test_rebuild
1300
+ -----------------------
1301
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1302
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1303
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1304
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1305
+  (0.2ms) ROLLBACK
1306
+  (0.1ms) BEGIN
1307
+ -------------------------
1308
+ RecordTest: test_indexing
1309
+ -------------------------
1310
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1311
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1312
+  (0.1ms) SAVEPOINT active_record_1
1313
+ SQL (0.3ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:18:47.924090"], ["updated_at", "2016-11-30 22:18:47.924090"]]
1314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1315
+  (0.2ms) SAVEPOINT active_record_1
1316
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 36], ["created_at", "2016-11-30 22:18:47.927271"], ["updated_at", "2016-11-30 22:18:47.927271"]]
1317
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1318
+  (0.3ms) ROLLBACK
1319
+  (0.1ms) BEGIN
1320
+ --------------------------
1321
+ GeneratorsTest: test_index
1322
+ --------------------------
1323
+  (0.2ms) ROLLBACK
1324
+  (0.2ms) BEGIN
1325
+ ----------------------------
1326
+ GeneratorsTest: test_install
1327
+ ----------------------------
1328
+  (0.2ms) ROLLBACK
1329
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1330
+  (0.3ms) BEGIN
1331
+ --------------------
1332
+ DslTest: test_search
1333
+ --------------------
1334
+  (0.2ms) ROLLBACK
1335
+  (0.2ms) BEGIN
1336
+ ----------------------
1337
+ IndexesTest: test_find
1338
+ ----------------------
1339
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1340
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1341
+  (0.3ms) ROLLBACK
1342
+  (0.1ms) BEGIN
1343
+ -------------------------
1344
+ IndexesTest: test_suggest
1345
+ -------------------------
1346
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1347
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1348
+  (0.2ms) SAVEPOINT active_record_1
1349
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:56.150417"], ["updated_at", "2016-11-30 22:18:56.150417"]]
1350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1351
+  (0.2ms) SAVEPOINT active_record_1
1352
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 37], ["created_at", "2016-11-30 22:18:56.165681"], ["updated_at", "2016-11-30 22:18:56.165681"]]
1353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1354
+  (0.2ms) SAVEPOINT active_record_1
1355
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 37], ["created_at", "2016-11-30 22:18:56.173157"], ["updated_at", "2016-11-30 22:18:56.173157"]]
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
+  (0.4ms) ROLLBACK
1358
+  (0.1ms) BEGIN
1359
+ -----------------------
1360
+ IndexesTest: test_exist
1361
+ -----------------------
1362
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1363
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1364
+  (0.4ms) ROLLBACK
1365
+  (0.2ms) BEGIN
1366
+ ---------------------------
1367
+ IndexesTest: test_namespace
1368
+ ---------------------------
1369
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1370
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1371
+  (0.3ms) ROLLBACK
1372
+  (0.1ms) BEGIN
1373
+ ---------------------
1374
+ TasksTest: test_build
1375
+ ---------------------
1376
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1377
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1378
+  (0.3ms) ROLLBACK
1379
+  (0.2ms) BEGIN
1380
+ -----------------------
1381
+ TasksTest: test_rebuild
1382
+ -----------------------
1383
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1384
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1385
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1386
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1387
+  (0.3ms) ROLLBACK
1388
+  (0.1ms) BEGIN
1389
+ -------------------------
1390
+ SearchTest: test_includes
1391
+ -------------------------
1392
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1393
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1394
+  (0.1ms) SAVEPOINT active_record_1
1395
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:18:58.501325"], ["updated_at", "2016-11-30 22:18:58.501325"]]
1396
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1397
+  (0.2ms) SAVEPOINT active_record_1
1398
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 38], ["created_at", "2016-11-30 22:18:58.504235"], ["updated_at", "2016-11-30 22:18:58.504235"]]
1399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1400
+  (0.3ms) ROLLBACK
1401
+  (0.2ms) BEGIN
1402
+ ---------------------------------
1403
+ SearchTest: test_with_and_without
1404
+ ---------------------------------
1405
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1406
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1407
+  (0.1ms) SAVEPOINT active_record_1
1408
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:19:00.565899"], ["updated_at", "2016-11-30 22:19:00.565899"]]
1409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1410
+  (0.2ms) SAVEPOINT active_record_1
1411
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:19:00.572997"], ["updated_at", "2016-11-30 22:19:00.572997"]]
1412
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1413
+  (0.2ms) SAVEPOINT active_record_1
1414
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:19:00.579758"], ["updated_at", "2016-11-30 22:19:00.579758"]]
1415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1416
+  (0.2ms) SAVEPOINT active_record_1
1417
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:19:00.587502"], ["updated_at", "2016-11-30 22:19:00.587502"]]
1418
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1419
+  (8.0ms) ROLLBACK
1420
+  (0.1ms) BEGIN
1421
+ ----------------------
1422
+ SearchTest: test_order
1423
+ ----------------------
1424
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1425
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1426
+  (0.1ms) SAVEPOINT active_record_1
1427
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:19:02.704206"], ["updated_at", "2016-11-30 22:19:02.704206"]]
1428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1429
+  (0.2ms) SAVEPOINT active_record_1
1430
+ SQL (0.9ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 39], ["created_at", "2016-11-30 22:19:02.712702"], ["updated_at", "2016-11-30 22:19:02.712702"]]
1431
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1432
+  (4.2ms) SAVEPOINT active_record_1
1433
+ SQL (0.4ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 39], ["created_at", "2016-11-30 22:19:02.729040"], ["updated_at", "2016-11-30 22:19:02.729040"]]
1434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1435
+  (0.2ms) SAVEPOINT active_record_1
1436
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 39], ["created_at", "2016-11-30 22:19:02.737311"], ["updated_at", "2016-11-30 22:19:02.737311"]]
1437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1438
+  (0.4ms) ROLLBACK
1439
+  (0.2ms) BEGIN
1440
+ ---------------------------
1441
+ SearchTest: test_pagination
1442
+ ---------------------------
1443
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1444
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1445
+  (0.2ms) SAVEPOINT active_record_1
1446
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:19:04.797913"], ["updated_at", "2016-11-30 22:19:04.797913"]]
1447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1448
+  (0.2ms) SAVEPOINT active_record_1
1449
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:19:04.803477"], ["updated_at", "2016-11-30 22:19:04.803477"]]
1450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1451
+  (0.2ms) SAVEPOINT active_record_1
1452
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:19:04.809547"], ["updated_at", "2016-11-30 22:19:04.809547"]]
1453
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1454
+  (0.2ms) SAVEPOINT active_record_1
1455
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:19:04.815208"], ["updated_at", "2016-11-30 22:19:04.815208"]]
1456
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1457
+  (0.2ms) SAVEPOINT active_record_1
1458
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:19:04.820405"], ["updated_at", "2016-11-30 22:19:04.820405"]]
1459
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1460
+  (0.3ms) ROLLBACK
1461
+  (0.2ms) BEGIN
1462
+ -------------------------
1463
+ RecordTest: test_indexing
1464
+ -------------------------
1465
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1466
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1467
+  (0.1ms) SAVEPOINT active_record_1
1468
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:19:06.882066"], ["updated_at", "2016-11-30 22:19:06.882066"]]
1469
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1470
+  (0.1ms) SAVEPOINT active_record_1
1471
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 40], ["created_at", "2016-11-30 22:19:06.884488"], ["updated_at", "2016-11-30 22:19:06.884488"]]
1472
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1473
+  (0.4ms) ROLLBACK
1474
+  (0.2ms) BEGIN
1475
+ --------------------------
1476
+ GeneratorsTest: test_index
1477
+ --------------------------
1478
+  (0.2ms) ROLLBACK
1479
+  (0.2ms) BEGIN
1480
+ ----------------------------
1481
+ GeneratorsTest: test_install
1482
+ ----------------------------
1483
+  (0.2ms) ROLLBACK
1484
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1485
+  (0.2ms) BEGIN
1486
+ --------------------
1487
+ DslTest: test_search
1488
+ --------------------
1489
+  (0.1ms) ROLLBACK
1490
+  (0.1ms) BEGIN
1491
+ ---------------------
1492
+ TasksTest: test_build
1493
+ ---------------------
1494
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1495
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1496
+  (0.3ms) ROLLBACK
1497
+  (0.2ms) BEGIN
1498
+ -----------------------
1499
+ TasksTest: test_rebuild
1500
+ -----------------------
1501
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1502
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1503
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1504
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1505
+  (0.3ms) ROLLBACK
1506
+  (0.1ms) BEGIN
1507
+ --------------------------
1508
+ GeneratorsTest: test_index
1509
+ --------------------------
1510
+  (0.2ms) ROLLBACK
1511
+  (0.1ms) BEGIN
1512
+ ----------------------------
1513
+ GeneratorsTest: test_install
1514
+ ----------------------------
1515
+  (0.2ms) ROLLBACK
1516
+  (0.1ms) BEGIN
1517
+ -------------------------
1518
+ RecordTest: test_indexing
1519
+ -------------------------
1520
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1521
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1522
+  (0.2ms) SAVEPOINT active_record_1
1523
+ SQL (0.4ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:19:56.252653"], ["updated_at", "2016-11-30 22:19:56.252653"]]
1524
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1525
+  (0.3ms) SAVEPOINT active_record_1
1526
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 41], ["created_at", "2016-11-30 22:19:56.269725"], ["updated_at", "2016-11-30 22:19:56.269725"]]
1527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1528
+  (0.4ms) ROLLBACK
1529
+  (0.1ms) BEGIN
1530
+ ----------------------
1531
+ SearchTest: test_order
1532
+ ----------------------
1533
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1534
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1535
+  (0.2ms) SAVEPOINT active_record_1
1536
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:19:58.324038"], ["updated_at", "2016-11-30 22:19:58.324038"]]
1537
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1538
+  (0.2ms) SAVEPOINT active_record_1
1539
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 42], ["created_at", "2016-11-30 22:19:58.332922"], ["updated_at", "2016-11-30 22:19:58.332922"]]
1540
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1541
+  (0.3ms) SAVEPOINT active_record_1
1542
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 42], ["created_at", "2016-11-30 22:19:58.342002"], ["updated_at", "2016-11-30 22:19:58.342002"]]
1543
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1544
+  (0.3ms) SAVEPOINT active_record_1
1545
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 42], ["created_at", "2016-11-30 22:19:58.350040"], ["updated_at", "2016-11-30 22:19:58.350040"]]
1546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1547
+  (0.3ms) ROLLBACK
1548
+  (0.1ms) BEGIN
1549
+ ---------------------------
1550
+ SearchTest: test_pagination
1551
+ ---------------------------
1552
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1553
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1554
+  (0.1ms) SAVEPOINT active_record_1
1555
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:20:00.405166"], ["updated_at", "2016-11-30 22:20:00.405166"]]
1556
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1557
+  (0.2ms) SAVEPOINT active_record_1
1558
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:20:00.410611"], ["updated_at", "2016-11-30 22:20:00.410611"]]
1559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1560
+  (0.2ms) SAVEPOINT active_record_1
1561
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:20:00.416386"], ["updated_at", "2016-11-30 22:20:00.416386"]]
1562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1563
+  (0.3ms) SAVEPOINT active_record_1
1564
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:20:00.421970"], ["updated_at", "2016-11-30 22:20:00.421970"]]
1565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1566
+  (0.2ms) SAVEPOINT active_record_1
1567
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:20:00.428028"], ["updated_at", "2016-11-30 22:20:00.428028"]]
1568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1569
+  (0.4ms) ROLLBACK
1570
+  (0.1ms) BEGIN
1571
+ -------------------------
1572
+ SearchTest: test_includes
1573
+ -------------------------
1574
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1575
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1576
+  (0.1ms) SAVEPOINT active_record_1
1577
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:20:02.484854"], ["updated_at", "2016-11-30 22:20:02.484854"]]
1578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1579
+  (0.1ms) SAVEPOINT active_record_1
1580
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 43], ["created_at", "2016-11-30 22:20:02.487723"], ["updated_at", "2016-11-30 22:20:02.487723"]]
1581
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1582
+  (0.4ms) ROLLBACK
1583
+  (0.1ms) BEGIN
1584
+ ---------------------------------
1585
+ SearchTest: test_with_and_without
1586
+ ---------------------------------
1587
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1588
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1589
+  (0.3ms) SAVEPOINT active_record_1
1590
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:20:04.546721"], ["updated_at", "2016-11-30 22:20:04.546721"]]
1591
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1592
+  (0.2ms) SAVEPOINT active_record_1
1593
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:20:04.554307"], ["updated_at", "2016-11-30 22:20:04.554307"]]
1594
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1595
+  (0.3ms) SAVEPOINT active_record_1
1596
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:20:04.560904"], ["updated_at", "2016-11-30 22:20:04.560904"]]
1597
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1598
+  (0.2ms) SAVEPOINT active_record_1
1599
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:20:04.567125"], ["updated_at", "2016-11-30 22:20:04.567125"]]
1600
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.2ms) ROLLBACK
1602
+  (0.2ms) BEGIN
1603
+ -----------------------
1604
+ IndexesTest: test_exist
1605
+ -----------------------
1606
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1607
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1608
+  (0.3ms) ROLLBACK
1609
+  (0.1ms) BEGIN
1610
+ ---------------------------
1611
+ IndexesTest: test_namespace
1612
+ ---------------------------
1613
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1614
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1615
+  (0.3ms) ROLLBACK
1616
+  (0.1ms) BEGIN
1617
+ ----------------------
1618
+ IndexesTest: test_find
1619
+ ----------------------
1620
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1621
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1622
+  (0.3ms) ROLLBACK
1623
+  (0.1ms) BEGIN
1624
+ -------------------------
1625
+ IndexesTest: test_suggest
1626
+ -------------------------
1627
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1628
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1629
+  (0.1ms) SAVEPOINT active_record_1
1630
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:20:06.734755"], ["updated_at", "2016-11-30 22:20:06.734755"]]
1631
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1632
+  (0.1ms) SAVEPOINT active_record_1
1633
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 44], ["created_at", "2016-11-30 22:20:06.736901"], ["updated_at", "2016-11-30 22:20:06.736901"]]
1634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1635
+  (0.3ms) SAVEPOINT active_record_1
1636
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 44], ["created_at", "2016-11-30 22:20:06.743628"], ["updated_at", "2016-11-30 22:20:06.743628"]]
1637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1638
+  (0.4ms) ROLLBACK
1639
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1640
+  (0.2ms) BEGIN
1641
+ ----------------------
1642
+ IndexesTest: test_find
1643
+ ----------------------
1644
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1645
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1646
+  (0.3ms) ROLLBACK
1647
+  (0.2ms) BEGIN
1648
+ -------------------------
1649
+ IndexesTest: test_suggest
1650
+ -------------------------
1651
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1652
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1653
+  (0.2ms) SAVEPOINT active_record_1
1654
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:21:00.972775"], ["updated_at", "2016-11-30 22:21:00.972775"]]
1655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1656
+  (0.3ms) SAVEPOINT active_record_1
1657
+ SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 45], ["created_at", "2016-11-30 22:21:00.988525"], ["updated_at", "2016-11-30 22:21:00.988525"]]
1658
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1659
+  (0.4ms) SAVEPOINT active_record_1
1660
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 45], ["created_at", "2016-11-30 22:21:00.997072"], ["updated_at", "2016-11-30 22:21:00.997072"]]
1661
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1662
+  (0.4ms) ROLLBACK
1663
+  (0.2ms) BEGIN
1664
+ -----------------------
1665
+ IndexesTest: test_exist
1666
+ -----------------------
1667
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1668
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1669
+  (0.3ms) ROLLBACK
1670
+  (0.1ms) BEGIN
1671
+ ---------------------------
1672
+ IndexesTest: test_namespace
1673
+ ---------------------------
1674
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1675
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1676
+  (0.3ms) ROLLBACK
1677
+  (0.2ms) BEGIN
1678
+ ----------------------------
1679
+ GeneratorsTest: test_install
1680
+ ----------------------------
1681
+  (0.2ms) ROLLBACK
1682
+  (0.1ms) BEGIN
1683
+ --------------------------
1684
+ GeneratorsTest: test_index
1685
+ --------------------------
1686
+  (0.2ms) ROLLBACK
1687
+  (0.1ms) BEGIN
1688
+ ---------------------
1689
+ TasksTest: test_build
1690
+ ---------------------
1691
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1692
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1693
+  (0.3ms) ROLLBACK
1694
+  (0.2ms) BEGIN
1695
+ -----------------------
1696
+ TasksTest: test_rebuild
1697
+ -----------------------
1698
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1699
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1700
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1701
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1702
+  (0.3ms) ROLLBACK
1703
+  (0.1ms) BEGIN
1704
+ --------------------
1705
+ DslTest: test_search
1706
+ --------------------
1707
+  (0.1ms) ROLLBACK
1708
+  (0.1ms) BEGIN
1709
+ -------------------------
1710
+ SearchTest: test_includes
1711
+ -------------------------
1712
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1713
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1714
+  (0.1ms) SAVEPOINT active_record_1
1715
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:21:03.319812"], ["updated_at", "2016-11-30 22:21:03.319812"]]
1716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1717
+  (0.1ms) SAVEPOINT active_record_1
1718
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 46], ["created_at", "2016-11-30 22:21:03.322247"], ["updated_at", "2016-11-30 22:21:03.322247"]]
1719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1720
+ Product Load (6.6ms) SELECT "products".* FROM "products" WHERE "products"."id" = 42
1721
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (46)
1722
+  (0.3ms) ROLLBACK
1723
+  (0.2ms) BEGIN
1724
+ ---------------------------------
1725
+ SearchTest: test_with_and_without
1726
+ ---------------------------------
1727
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1728
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1729
+  (0.2ms) SAVEPOINT active_record_1
1730
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:21:05.447965"], ["updated_at", "2016-11-30 22:21:05.447965"]]
1731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1732
+  (0.2ms) SAVEPOINT active_record_1
1733
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:21:05.453657"], ["updated_at", "2016-11-30 22:21:05.453657"]]
1734
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1735
+  (0.2ms) SAVEPOINT active_record_1
1736
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:21:05.460049"], ["updated_at", "2016-11-30 22:21:05.460049"]]
1737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1738
+  (0.2ms) SAVEPOINT active_record_1
1739
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:21:05.465190"], ["updated_at", "2016-11-30 22:21:05.465190"]]
1740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1741
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
1742
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
1743
+  (0.4ms) ROLLBACK
1744
+  (0.1ms) BEGIN
1745
+ ----------------------
1746
+ SearchTest: test_order
1747
+ ----------------------
1748
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1749
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1750
+  (0.1ms) SAVEPOINT active_record_1
1751
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:21:07.543937"], ["updated_at", "2016-11-30 22:21:07.543937"]]
1752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1753
+  (0.2ms) SAVEPOINT active_record_1
1754
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 47], ["created_at", "2016-11-30 22:21:07.549814"], ["updated_at", "2016-11-30 22:21:07.549814"]]
1755
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1756
+  (0.3ms) SAVEPOINT active_record_1
1757
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 47], ["created_at", "2016-11-30 22:21:07.557138"], ["updated_at", "2016-11-30 22:21:07.557138"]]
1758
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1759
+  (0.3ms) SAVEPOINT active_record_1
1760
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 47], ["created_at", "2016-11-30 22:21:07.563396"], ["updated_at", "2016-11-30 22:21:07.563396"]]
1761
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1762
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
1763
+  (0.3ms) ROLLBACK
1764
+  (0.2ms) BEGIN
1765
+ ---------------------------
1766
+ SearchTest: test_pagination
1767
+ ---------------------------
1768
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1769
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1770
+  (0.1ms) SAVEPOINT active_record_1
1771
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:21:09.622303"], ["updated_at", "2016-11-30 22:21:09.622303"]]
1772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1773
+  (0.3ms) SAVEPOINT active_record_1
1774
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:21:09.627551"], ["updated_at", "2016-11-30 22:21:09.627551"]]
1775
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1776
+  (0.2ms) SAVEPOINT active_record_1
1777
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:21:09.633226"], ["updated_at", "2016-11-30 22:21:09.633226"]]
1778
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1779
+  (0.2ms) SAVEPOINT active_record_1
1780
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:21:09.638442"], ["updated_at", "2016-11-30 22:21:09.638442"]]
1781
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1782
+  (0.2ms) SAVEPOINT active_record_1
1783
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:21:09.643583"], ["updated_at", "2016-11-30 22:21:09.643583"]]
1784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1785
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
1786
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
1787
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
1788
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE 1=0
1789
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
1790
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
1791
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE 1=0
1792
+  (0.4ms) ROLLBACK
1793
+  (0.1ms) BEGIN
1794
+ -------------------------
1795
+ RecordTest: test_indexing
1796
+ -------------------------
1797
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1798
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1799
+  (0.3ms) SAVEPOINT active_record_1
1800
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:21:11.731824"], ["updated_at", "2016-11-30 22:21:11.731824"]]
1801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1802
+  (0.1ms) SAVEPOINT active_record_1
1803
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 48], ["created_at", "2016-11-30 22:21:11.734182"], ["updated_at", "2016-11-30 22:21:11.734182"]]
1804
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1805
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 43
1806
+  (0.2ms) SAVEPOINT active_record_1
1807
+ SQL (0.6ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 43]]
1808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1809
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 43
1810
+  (0.3ms) ROLLBACK
1811
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1812
+  (0.2ms) BEGIN
1813
+ -------------------------
1814
+ RecordTest: test_indexing
1815
+ -------------------------
1816
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1817
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1818
+  (0.2ms) SAVEPOINT active_record_1
1819
+ SQL (0.5ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:22:12.409505"], ["updated_at", "2016-11-30 22:22:12.409505"]]
1820
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1821
+  (0.2ms) SAVEPOINT active_record_1
1822
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 49], ["created_at", "2016-11-30 22:22:12.428250"], ["updated_at", "2016-11-30 22:22:12.428250"]]
1823
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1824
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 44
1825
+  (0.1ms) SAVEPOINT active_record_1
1826
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 44]]
1827
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1828
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 44
1829
+  (0.4ms) ROLLBACK
1830
+  (0.1ms) BEGIN
1831
+ -----------------------
1832
+ IndexesTest: test_exist
1833
+ -----------------------
1834
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1835
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1836
+  (0.3ms) ROLLBACK
1837
+  (0.2ms) BEGIN
1838
+ ----------------------
1839
+ IndexesTest: test_find
1840
+ ----------------------
1841
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1842
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1843
+  (0.3ms) ROLLBACK
1844
+  (0.1ms) BEGIN
1845
+ ---------------------------
1846
+ IndexesTest: test_namespace
1847
+ ---------------------------
1848
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1849
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1850
+  (0.3ms) ROLLBACK
1851
+  (0.1ms) BEGIN
1852
+ -------------------------
1853
+ IndexesTest: test_suggest
1854
+ -------------------------
1855
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1856
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1857
+  (0.1ms) SAVEPOINT active_record_1
1858
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:22:14.707730"], ["updated_at", "2016-11-30 22:22:14.707730"]]
1859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1860
+  (0.1ms) SAVEPOINT active_record_1
1861
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 50], ["created_at", "2016-11-30 22:22:14.710303"], ["updated_at", "2016-11-30 22:22:14.710303"]]
1862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1863
+  (0.4ms) SAVEPOINT active_record_1
1864
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 50], ["created_at", "2016-11-30 22:22:14.718566"], ["updated_at", "2016-11-30 22:22:14.718566"]]
1865
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1866
+  (0.4ms) ROLLBACK
1867
+  (0.2ms) BEGIN
1868
+ ---------------------------------
1869
+ SearchTest: test_with_and_without
1870
+ ---------------------------------
1871
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1872
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1873
+  (0.1ms) SAVEPOINT active_record_1
1874
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:22:16.784831"], ["updated_at", "2016-11-30 22:22:16.784831"]]
1875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1876
+  (0.2ms) SAVEPOINT active_record_1
1877
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:22:16.791031"], ["updated_at", "2016-11-30 22:22:16.791031"]]
1878
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1879
+  (0.2ms) SAVEPOINT active_record_1
1880
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:22:16.796753"], ["updated_at", "2016-11-30 22:22:16.796753"]]
1881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1882
+  (0.1ms) SAVEPOINT active_record_1
1883
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:22:16.802590"], ["updated_at", "2016-11-30 22:22:16.802590"]]
1884
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1885
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
1886
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
1887
+  (0.3ms) ROLLBACK
1888
+  (0.1ms) BEGIN
1889
+ -------------------------
1890
+ SearchTest: test_includes
1891
+ -------------------------
1892
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1893
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1894
+  (0.1ms) SAVEPOINT active_record_1
1895
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:22:18.863924"], ["updated_at", "2016-11-30 22:22:18.863924"]]
1896
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1897
+  (0.1ms) SAVEPOINT active_record_1
1898
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 51], ["created_at", "2016-11-30 22:22:18.866159"], ["updated_at", "2016-11-30 22:22:18.866159"]]
1899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1900
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 47
1901
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (51)
1902
+  (0.4ms) ROLLBACK
1903
+  (0.1ms) BEGIN
1904
+ ---------------------------
1905
+ SearchTest: test_pagination
1906
+ ---------------------------
1907
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1908
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1909
+  (0.2ms) SAVEPOINT active_record_1
1910
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:22:20.930530"], ["updated_at", "2016-11-30 22:22:20.930530"]]
1911
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1912
+  (0.2ms) SAVEPOINT active_record_1
1913
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:22:20.936228"], ["updated_at", "2016-11-30 22:22:20.936228"]]
1914
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1915
+  (0.3ms) SAVEPOINT active_record_1
1916
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:22:20.942669"], ["updated_at", "2016-11-30 22:22:20.942669"]]
1917
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1918
+  (0.2ms) SAVEPOINT active_record_1
1919
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:22:20.948649"], ["updated_at", "2016-11-30 22:22:20.948649"]]
1920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1921
+  (0.2ms) SAVEPOINT active_record_1
1922
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:22:20.954392"], ["updated_at", "2016-11-30 22:22:20.954392"]]
1923
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1924
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
1925
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
1926
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
1927
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
1928
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
1929
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
1930
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE 1=0
1931
+  (0.3ms) ROLLBACK
1932
+  (0.2ms) BEGIN
1933
+ ----------------------
1934
+ SearchTest: test_order
1935
+ ----------------------
1936
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1937
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1938
+  (0.1ms) SAVEPOINT active_record_1
1939
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:22:23.049772"], ["updated_at", "2016-11-30 22:22:23.049772"]]
1940
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1941
+  (0.2ms) SAVEPOINT active_record_1
1942
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 52], ["created_at", "2016-11-30 22:22:23.056875"], ["updated_at", "2016-11-30 22:22:23.056875"]]
1943
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1944
+  (0.2ms) SAVEPOINT active_record_1
1945
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 52], ["created_at", "2016-11-30 22:22:23.066553"], ["updated_at", "2016-11-30 22:22:23.066553"]]
1946
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1947
+  (0.3ms) SAVEPOINT active_record_1
1948
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 52], ["created_at", "2016-11-30 22:22:23.073039"], ["updated_at", "2016-11-30 22:22:23.073039"]]
1949
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1950
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
1951
+  (0.4ms) ROLLBACK
1952
+  (0.1ms) BEGIN
1953
+ --------------------
1954
+ DslTest: test_search
1955
+ --------------------
1956
+  (0.2ms) ROLLBACK
1957
+  (0.1ms) BEGIN
1958
+ --------------------------
1959
+ GeneratorsTest: test_index
1960
+ --------------------------
1961
+  (0.2ms) ROLLBACK
1962
+  (0.1ms) BEGIN
1963
+ ----------------------------
1964
+ GeneratorsTest: test_install
1965
+ ----------------------------
1966
+  (0.3ms) ROLLBACK
1967
+  (0.1ms) BEGIN
1968
+ ---------------------
1969
+ TasksTest: test_build
1970
+ ---------------------
1971
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1972
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1973
+  (0.4ms) ROLLBACK
1974
+  (0.2ms) BEGIN
1975
+ -----------------------
1976
+ TasksTest: test_rebuild
1977
+ -----------------------
1978
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1979
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1980
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1981
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1982
+  (0.4ms) ROLLBACK
1983
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1984
+  (0.2ms) BEGIN
1985
+ --------------------
1986
+ DslTest: test_search
1987
+ --------------------
1988
+  (0.2ms) ROLLBACK
1989
+  (0.1ms) BEGIN
1990
+ -------------------------
1991
+ RecordTest: test_indexing
1992
+ -------------------------
1993
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
1994
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
1995
+  (0.2ms) SAVEPOINT active_record_1
1996
+ SQL (0.4ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:23:02.937205"], ["updated_at", "2016-11-30 22:23:02.937205"]]
1997
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1998
+  (0.2ms) SAVEPOINT active_record_1
1999
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 53], ["created_at", "2016-11-30 22:23:02.955108"], ["updated_at", "2016-11-30 22:23:02.955108"]]
2000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2001
+  (0.4ms) ROLLBACK
2002
+  (0.1ms) BEGIN
2003
+ -----------------------
2004
+ TasksTest: test_rebuild
2005
+ -----------------------
2006
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2007
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2008
+  (0.3ms) ROLLBACK
2009
+  (0.1ms) BEGIN
2010
+ ---------------------
2011
+ TasksTest: test_build
2012
+ ---------------------
2013
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2014
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2015
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2016
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2017
+  (0.3ms) ROLLBACK
2018
+  (0.1ms) BEGIN
2019
+ ----------------------
2020
+ SearchTest: test_order
2021
+ ----------------------
2022
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2023
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2024
+  (0.1ms) SAVEPOINT active_record_1
2025
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:23:05.213119"], ["updated_at", "2016-11-30 22:23:05.213119"]]
2026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2027
+  (0.2ms) SAVEPOINT active_record_1
2028
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 54], ["created_at", "2016-11-30 22:23:05.220355"], ["updated_at", "2016-11-30 22:23:05.220355"]]
2029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2030
+  (0.7ms) SAVEPOINT active_record_1
2031
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 54], ["created_at", "2016-11-30 22:23:05.229312"], ["updated_at", "2016-11-30 22:23:05.229312"]]
2032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2033
+  (0.2ms) SAVEPOINT active_record_1
2034
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 54], ["created_at", "2016-11-30 22:23:05.238090"], ["updated_at", "2016-11-30 22:23:05.238090"]]
2035
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2036
+  (0.4ms) ROLLBACK
2037
+  (0.2ms) BEGIN
2038
+ ---------------------------
2039
+ SearchTest: test_pagination
2040
+ ---------------------------
2041
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2042
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2043
+  (0.1ms) SAVEPOINT active_record_1
2044
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:23:07.297748"], ["updated_at", "2016-11-30 22:23:07.297748"]]
2045
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2046
+  (0.2ms) SAVEPOINT active_record_1
2047
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:23:07.304882"], ["updated_at", "2016-11-30 22:23:07.304882"]]
2048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2049
+  (0.2ms) SAVEPOINT active_record_1
2050
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:23:07.312027"], ["updated_at", "2016-11-30 22:23:07.312027"]]
2051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2052
+  (0.2ms) SAVEPOINT active_record_1
2053
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:23:07.317722"], ["updated_at", "2016-11-30 22:23:07.317722"]]
2054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2055
+  (0.2ms) SAVEPOINT active_record_1
2056
+ SQL (0.5ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:23:07.323231"], ["updated_at", "2016-11-30 22:23:07.323231"]]
2057
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2058
+  (0.3ms) ROLLBACK
2059
+  (0.2ms) BEGIN
2060
+ -------------------------
2061
+ SearchTest: test_includes
2062
+ -------------------------
2063
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2064
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2065
+  (0.2ms) SAVEPOINT active_record_1
2066
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:23:09.379301"], ["updated_at", "2016-11-30 22:23:09.379301"]]
2067
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2068
+  (0.1ms) SAVEPOINT active_record_1
2069
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 55], ["created_at", "2016-11-30 22:23:09.382277"], ["updated_at", "2016-11-30 22:23:09.382277"]]
2070
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2071
+  (0.3ms) ROLLBACK
2072
+  (0.2ms) BEGIN
2073
+ ---------------------------------
2074
+ SearchTest: test_with_and_without
2075
+ ---------------------------------
2076
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2077
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2078
+  (0.1ms) SAVEPOINT active_record_1
2079
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:23:11.439541"], ["updated_at", "2016-11-30 22:23:11.439541"]]
2080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2081
+  (0.1ms) SAVEPOINT active_record_1
2082
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:23:11.445027"], ["updated_at", "2016-11-30 22:23:11.445027"]]
2083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2084
+  (0.3ms) SAVEPOINT active_record_1
2085
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:23:11.450575"], ["updated_at", "2016-11-30 22:23:11.450575"]]
2086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2087
+  (0.2ms) SAVEPOINT active_record_1
2088
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:23:11.456464"], ["updated_at", "2016-11-30 22:23:11.456464"]]
2089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2090
+  (0.3ms) ROLLBACK
2091
+  (0.2ms) BEGIN
2092
+ --------------------------
2093
+ GeneratorsTest: test_index
2094
+ --------------------------
2095
+  (0.2ms) ROLLBACK
2096
+  (0.2ms) BEGIN
2097
+ ----------------------------
2098
+ GeneratorsTest: test_install
2099
+ ----------------------------
2100
+  (0.3ms) ROLLBACK
2101
+  (0.1ms) BEGIN
2102
+ -------------------------
2103
+ IndexesTest: test_suggest
2104
+ -------------------------
2105
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2106
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2107
+  (0.1ms) SAVEPOINT active_record_1
2108
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:23:13.534759"], ["updated_at", "2016-11-30 22:23:13.534759"]]
2109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2110
+  (0.1ms) SAVEPOINT active_record_1
2111
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 56], ["created_at", "2016-11-30 22:23:13.537396"], ["updated_at", "2016-11-30 22:23:13.537396"]]
2112
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2113
+  (0.3ms) SAVEPOINT active_record_1
2114
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 56], ["created_at", "2016-11-30 22:23:13.550488"], ["updated_at", "2016-11-30 22:23:13.550488"]]
2115
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2116
+  (0.4ms) ROLLBACK
2117
+  (0.2ms) BEGIN
2118
+ -----------------------
2119
+ IndexesTest: test_exist
2120
+ -----------------------
2121
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2122
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2123
+  (0.4ms) ROLLBACK
2124
+  (0.2ms) BEGIN
2125
+ ---------------------------
2126
+ IndexesTest: test_namespace
2127
+ ---------------------------
2128
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2129
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2130
+  (0.4ms) ROLLBACK
2131
+  (0.2ms) BEGIN
2132
+ ----------------------
2133
+ IndexesTest: test_find
2134
+ ----------------------
2135
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2136
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2137
+  (0.3ms) ROLLBACK
2138
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2139
+  (0.3ms) BEGIN
2140
+ -----------------------
2141
+ IndexesTest: test_exist
2142
+ -----------------------
2143
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2144
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2145
+  (0.3ms) ROLLBACK
2146
+  (0.2ms) BEGIN
2147
+ ---------------------------
2148
+ IndexesTest: test_namespace
2149
+ ---------------------------
2150
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2151
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2152
+  (0.3ms) ROLLBACK
2153
+  (0.1ms) BEGIN
2154
+ -------------------------
2155
+ IndexesTest: test_suggest
2156
+ -------------------------
2157
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2158
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2159
+  (0.2ms) SAVEPOINT active_record_1
2160
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:23:27.307721"], ["updated_at", "2016-11-30 22:23:27.307721"]]
2161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2162
+  (0.2ms) SAVEPOINT active_record_1
2163
+ SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 57], ["created_at", "2016-11-30 22:23:27.325675"], ["updated_at", "2016-11-30 22:23:27.325675"]]
2164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2165
+  (0.2ms) SAVEPOINT active_record_1
2166
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 57], ["created_at", "2016-11-30 22:23:27.344962"], ["updated_at", "2016-11-30 22:23:27.344962"]]
2167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2168
+  (0.4ms) ROLLBACK
2169
+  (0.1ms) BEGIN
2170
+ ----------------------
2171
+ IndexesTest: test_find
2172
+ ----------------------
2173
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2174
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2175
+  (0.3ms) ROLLBACK
2176
+  (0.2ms) BEGIN
2177
+ --------------------
2178
+ DslTest: test_search
2179
+ --------------------
2180
+  (0.1ms) ROLLBACK
2181
+  (0.1ms) BEGIN
2182
+ ---------------------------------
2183
+ SearchTest: test_with_and_without
2184
+ ---------------------------------
2185
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2186
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2187
+  (0.1ms) SAVEPOINT active_record_1
2188
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:23:29.450243"], ["updated_at", "2016-11-30 22:23:29.450243"]]
2189
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2190
+  (0.2ms) SAVEPOINT active_record_1
2191
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:23:29.456164"], ["updated_at", "2016-11-30 22:23:29.456164"]]
2192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2193
+  (0.2ms) SAVEPOINT active_record_1
2194
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:23:29.461387"], ["updated_at", "2016-11-30 22:23:29.461387"]]
2195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2196
+  (0.2ms) SAVEPOINT active_record_1
2197
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:23:29.466324"], ["updated_at", "2016-11-30 22:23:29.466324"]]
2198
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2199
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
2200
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
2201
+  (0.3ms) ROLLBACK
2202
+  (0.1ms) BEGIN
2203
+ ----------------------
2204
+ SearchTest: test_order
2205
+ ----------------------
2206
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2207
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2208
+  (0.1ms) SAVEPOINT active_record_1
2209
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:23:31.530300"], ["updated_at", "2016-11-30 22:23:31.530300"]]
2210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2211
+  (0.2ms) SAVEPOINT active_record_1
2212
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 58], ["created_at", "2016-11-30 22:23:31.536358"], ["updated_at", "2016-11-30 22:23:31.536358"]]
2213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2214
+  (0.2ms) SAVEPOINT active_record_1
2215
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 58], ["created_at", "2016-11-30 22:23:31.543801"], ["updated_at", "2016-11-30 22:23:31.543801"]]
2216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2217
+  (0.3ms) SAVEPOINT active_record_1
2218
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 58], ["created_at", "2016-11-30 22:23:31.550208"], ["updated_at", "2016-11-30 22:23:31.550208"]]
2219
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2220
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2221
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2222
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2223
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2224
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2225
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2226
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2227
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2228
+  (0.8ms) ROLLBACK
2229
+  (0.1ms) BEGIN
2230
+ ---------------------------
2231
+ SearchTest: test_pagination
2232
+ ---------------------------
2233
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2234
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2235
+  (0.1ms) SAVEPOINT active_record_1
2236
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:23:34.194085"], ["updated_at", "2016-11-30 22:23:34.194085"]]
2237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2238
+  (0.2ms) SAVEPOINT active_record_1
2239
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:23:34.201073"], ["updated_at", "2016-11-30 22:23:34.201073"]]
2240
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2241
+  (0.2ms) SAVEPOINT active_record_1
2242
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:23:34.207771"], ["updated_at", "2016-11-30 22:23:34.207771"]]
2243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2244
+  (0.2ms) SAVEPOINT active_record_1
2245
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:23:34.213571"], ["updated_at", "2016-11-30 22:23:34.213571"]]
2246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2247
+  (0.2ms) SAVEPOINT active_record_1
2248
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:23:34.219661"], ["updated_at", "2016-11-30 22:23:34.219661"]]
2249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2250
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
2251
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2252
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2253
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
2254
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2255
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2256
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
2257
+  (0.4ms) ROLLBACK
2258
+  (0.2ms) BEGIN
2259
+ -------------------------
2260
+ SearchTest: test_includes
2261
+ -------------------------
2262
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2263
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2264
+  (0.2ms) SAVEPOINT active_record_1
2265
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:23:36.319849"], ["updated_at", "2016-11-30 22:23:36.319849"]]
2266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2267
+  (0.1ms) SAVEPOINT active_record_1
2268
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 59], ["created_at", "2016-11-30 22:23:36.322005"], ["updated_at", "2016-11-30 22:23:36.322005"]]
2269
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2270
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 54
2271
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (59)
2272
+  (0.4ms) ROLLBACK
2273
+  (0.1ms) BEGIN
2274
+ -------------------------
2275
+ RecordTest: test_indexing
2276
+ -------------------------
2277
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2278
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2279
+  (0.1ms) SAVEPOINT active_record_1
2280
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:23:38.404430"], ["updated_at", "2016-11-30 22:23:38.404430"]]
2281
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2282
+  (0.2ms) SAVEPOINT active_record_1
2283
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 60], ["created_at", "2016-11-30 22:23:38.407846"], ["updated_at", "2016-11-30 22:23:38.407846"]]
2284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2285
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 55
2286
+  (0.1ms) SAVEPOINT active_record_1
2287
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 55]]
2288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2289
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 55
2290
+  (0.3ms) ROLLBACK
2291
+  (0.1ms) BEGIN
2292
+ ---------------------
2293
+ TasksTest: test_build
2294
+ ---------------------
2295
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2296
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2297
+  (0.3ms) ROLLBACK
2298
+  (0.1ms) BEGIN
2299
+ -----------------------
2300
+ TasksTest: test_rebuild
2301
+ -----------------------
2302
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2303
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2304
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2305
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2306
+  (0.2ms) ROLLBACK
2307
+  (0.1ms) BEGIN
2308
+ --------------------------
2309
+ GeneratorsTest: test_index
2310
+ --------------------------
2311
+  (0.2ms) ROLLBACK
2312
+  (0.1ms) BEGIN
2313
+ ----------------------------
2314
+ GeneratorsTest: test_install
2315
+ ----------------------------
2316
+  (0.2ms) ROLLBACK
2317
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2318
+  (0.2ms) BEGIN
2319
+ --------------------
2320
+ DslTest: test_search
2321
+ --------------------
2322
+  (0.2ms) ROLLBACK
2323
+  (0.1ms) BEGIN
2324
+ ----------------------
2325
+ SearchTest: test_order
2326
+ ----------------------
2327
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2328
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2329
+  (0.2ms) SAVEPOINT active_record_1
2330
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:41:43.497577"], ["updated_at", "2016-11-30 22:41:43.497577"]]
2331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2332
+  (0.2ms) SAVEPOINT active_record_1
2333
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 61], ["created_at", "2016-11-30 22:41:43.533039"], ["updated_at", "2016-11-30 22:41:43.533039"]]
2334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2335
+  (0.2ms) SAVEPOINT active_record_1
2336
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 61], ["created_at", "2016-11-30 22:41:43.551830"], ["updated_at", "2016-11-30 22:41:43.551830"]]
2337
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2338
+  (0.3ms) SAVEPOINT active_record_1
2339
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 61], ["created_at", "2016-11-30 22:41:43.564961"], ["updated_at", "2016-11-30 22:41:43.564961"]]
2340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2341
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2342
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2343
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2344
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2345
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2346
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2347
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2348
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2349
+  (0.4ms) ROLLBACK
2350
+  (0.1ms) BEGIN
2351
+ ---------------------------
2352
+ SearchTest: test_pagination
2353
+ ---------------------------
2354
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2355
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2356
+  (0.1ms) SAVEPOINT active_record_1
2357
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:41:45.666558"], ["updated_at", "2016-11-30 22:41:45.666558"]]
2358
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.3ms) SAVEPOINT active_record_1
2360
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:41:45.672093"], ["updated_at", "2016-11-30 22:41:45.672093"]]
2361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2362
+  (0.1ms) SAVEPOINT active_record_1
2363
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:41:45.677387"], ["updated_at", "2016-11-30 22:41:45.677387"]]
2364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2365
+  (0.2ms) SAVEPOINT active_record_1
2366
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:41:45.682331"], ["updated_at", "2016-11-30 22:41:45.682331"]]
2367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2368
+  (0.2ms) SAVEPOINT active_record_1
2369
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-11-30 22:41:45.689290"], ["updated_at", "2016-11-30 22:41:45.689290"]]
2370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2371
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
2372
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2373
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2374
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
2375
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2376
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2377
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
2378
+  (0.3ms) ROLLBACK
2379
+  (0.1ms) BEGIN
2380
+ ---------------------------------
2381
+ SearchTest: test_with_and_without
2382
+ ---------------------------------
2383
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2384
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2385
+  (0.1ms) SAVEPOINT active_record_1
2386
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-11-30 22:41:47.772942"], ["updated_at", "2016-11-30 22:41:47.772942"]]
2387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2388
+  (0.2ms) SAVEPOINT active_record_1
2389
+ SQL (0.5ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-11-30 22:41:47.777938"], ["updated_at", "2016-11-30 22:41:47.777938"]]
2390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2391
+  (0.1ms) SAVEPOINT active_record_1
2392
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-11-30 22:41:47.783389"], ["updated_at", "2016-11-30 22:41:47.783389"]]
2393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2394
+  (0.2ms) SAVEPOINT active_record_1
2395
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-11-30 22:41:47.787988"], ["updated_at", "2016-11-30 22:41:47.787988"]]
2396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2397
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
2398
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
2399
+  (0.3ms) ROLLBACK
2400
+  (0.1ms) BEGIN
2401
+ -------------------------
2402
+ SearchTest: test_includes
2403
+ -------------------------
2404
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2405
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2406
+  (0.1ms) SAVEPOINT active_record_1
2407
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:41:49.843600"], ["updated_at", "2016-11-30 22:41:49.843600"]]
2408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2409
+  (0.1ms) SAVEPOINT active_record_1
2410
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 62], ["created_at", "2016-11-30 22:41:49.846135"], ["updated_at", "2016-11-30 22:41:49.846135"]]
2411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2412
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 56
2413
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (62)
2414
+  (0.3ms) ROLLBACK
2415
+  (0.2ms) BEGIN
2416
+ -------------------------
2417
+ IndexesTest: test_suggest
2418
+ -------------------------
2419
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2420
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2421
+  (0.1ms) SAVEPOINT active_record_1
2422
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-11-30 22:41:51.914505"], ["updated_at", "2016-11-30 22:41:51.914505"]]
2423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2424
+  (0.1ms) SAVEPOINT active_record_1
2425
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 63], ["created_at", "2016-11-30 22:41:51.916483"], ["updated_at", "2016-11-30 22:41:51.916483"]]
2426
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2427
+  (0.1ms) SAVEPOINT active_record_1
2428
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 63], ["created_at", "2016-11-30 22:41:51.923762"], ["updated_at", "2016-11-30 22:41:51.923762"]]
2429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2430
+  (0.2ms) ROLLBACK
2431
+  (0.2ms) BEGIN
2432
+ ---------------------------
2433
+ IndexesTest: test_namespace
2434
+ ---------------------------
2435
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2436
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2437
+  (0.3ms) ROLLBACK
2438
+  (0.1ms) BEGIN
2439
+ -----------------------
2440
+ IndexesTest: test_exist
2441
+ -----------------------
2442
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2443
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2444
+  (0.4ms) ROLLBACK
2445
+  (0.2ms) BEGIN
2446
+ ----------------------
2447
+ IndexesTest: test_find
2448
+ ----------------------
2449
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2450
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2451
+  (0.4ms) ROLLBACK
2452
+  (0.1ms) BEGIN
2453
+ ----------------------------
2454
+ GeneratorsTest: test_install
2455
+ ----------------------------
2456
+  (0.2ms) ROLLBACK
2457
+  (0.1ms) BEGIN
2458
+ --------------------------
2459
+ GeneratorsTest: test_index
2460
+ --------------------------
2461
+  (0.2ms) ROLLBACK
2462
+  (0.2ms) BEGIN
2463
+ -------------------------
2464
+ RecordTest: test_indexing
2465
+ -------------------------
2466
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2467
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2468
+  (0.1ms) SAVEPOINT active_record_1
2469
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-11-30 22:41:54.147764"], ["updated_at", "2016-11-30 22:41:54.147764"]]
2470
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2471
+  (0.1ms) SAVEPOINT active_record_1
2472
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 64], ["created_at", "2016-11-30 22:41:54.150055"], ["updated_at", "2016-11-30 22:41:54.150055"]]
2473
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2474
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 59
2475
+  (0.1ms) SAVEPOINT active_record_1
2476
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 59]]
2477
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2478
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 59
2479
+  (0.3ms) ROLLBACK
2480
+  (0.1ms) BEGIN
2481
+ -----------------------
2482
+ TasksTest: test_rebuild
2483
+ -----------------------
2484
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2485
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2486
+  (0.3ms) ROLLBACK
2487
+  (0.2ms) BEGIN
2488
+ ---------------------
2489
+ TasksTest: test_build
2490
+ ---------------------
2491
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2492
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2493
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2494
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2495
+  (0.3ms) ROLLBACK