uuids 1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90ebf6afbe59d579cfd3529c5ba780219a1267ba
4
- data.tar.gz: d4468af5f78da1e7ae760019e1dc59f48fa648dc
3
+ metadata.gz: c89b99f654c1dfea64b0eb20b53e29c43a23e5b6
4
+ data.tar.gz: 8248163a5e3b377d0b2d28953d95a12f035e0747
5
5
  SHA512:
6
- metadata.gz: 198aea4684f2e4aa6ca7c9cc77e834d85f8c8057c393263ba1ce3b968d416636f6cd2002bc0e6b60a0af557e913f36d0f74676ed8d09f83ecbf565bddee06448
7
- data.tar.gz: c80ee9a969326a6da8229aaf74c8549969d0d919b10362ccc1e6f998decfc65e8fa44f350c311c19355bc9b34d2b131d83d1bb006088e629daf2e4c60645ccf2
6
+ metadata.gz: 9c138b109db21234ff97829e1116a542257100dfeec619009edca64e9d33c88b215dd87139aab5a1a852d8b3b2514e5c82ec2db6db26d632d96e379696e3d15e
7
+ data.tar.gz: ec574018240a64d28ccb52018f1d91a16a62c71767eb4cbb8318b149337a698059c0bd2fdc45962db94b6fcbd5997d835b775cefe3147f5cc51cca2e869647ed
data/README.rdoc CHANGED
@@ -98,7 +98,8 @@ This will add methods:
98
98
 
99
99
  +#uuids+:: List of <tt>Uuids::Uuid</tt> objects referred to the record.
100
100
  +#uuid+:: main UUID for the record - a value of the first +uuids+ (ordered by value).
101
- <tt>.by_uuid</tt>:: A scope for unique records by UUID: <tt>City.by_uuid</tt>
101
+ +#uuid=(value):: assigns the UUID (an alias for <tt>#uuids.new value: value</tt>).
102
+ <tt>.by_uuid</tt>:: A scope for unique records by UUID: <tt>City.by_uuid</tt>.
102
103
 
103
104
  The first uuid is added by default. It can also be set manually:
104
105
 
data/lib/uuids/base.rb CHANGED
@@ -64,7 +64,14 @@ module Uuids
64
64
  def define_scope
65
65
  scope(
66
66
  :by_uuid,
67
- ->(value) { joins(:uuids).where(uuids_uuids: { value: value }).uniq }
67
+ ->(*list) {
68
+ if list.first.is_a? Array
69
+ warn "[DEPRECATION] use a list of values, not an array" \
70
+ " in .by_uuid(*values) method."
71
+ list = list.first
72
+ end
73
+ joins(:uuids).where(uuids_uuids: { value: list }).uniq
74
+ }
68
75
  )
69
76
  end
70
77
  end
data/lib/uuids/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  module Uuids
3
3
 
4
4
  # Current release.
5
- VERSION = "1.1"
5
+ VERSION = "1.2.0"
6
6
  end
Binary file
@@ -635,3 +635,765 @@ Migrating to CreateCities (20141017081115)
635
635
  SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "cfaf5c4e-398b-423c-923a-fe9ac8cbb83e"]]
636
636
   (0.0ms) RELEASE SAVEPOINT active_record_1
637
637
   (0.1ms) rollback transaction
638
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
639
+  (5.2ms) DELETE FROM "uuids_uuids";
640
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
641
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'uuids_uuids';
642
+  (2.8ms) DELETE FROM "records";
643
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
644
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'records';
645
+  (2.5ms) DELETE FROM "cities";
646
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
647
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cities';
648
+  (0.1ms) begin transaction
649
+  (0.0ms) commit transaction
650
+  (0.0ms) begin transaction
651
+  (0.1ms) rollback transaction
652
+  (0.0ms) begin transaction
653
+  (0.0ms) commit transaction
654
+  (0.0ms) begin transaction
655
+  (0.1ms) rollback transaction
656
+  (0.0ms) begin transaction
657
+  (0.0ms) commit transaction
658
+  (0.0ms) begin transaction
659
+  (0.1ms) rollback transaction
660
+  (0.0ms) begin transaction
661
+  (0.0ms) commit transaction
662
+  (0.0ms) begin transaction
663
+  (0.0ms) SAVEPOINT active_record_1
664
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.887989"], ["updated_at", "2014-10-25 21:41:13.887989"]]
665
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
666
+ SQL (0.3ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "0d0718df-ca14-4b1c-bf3b-2e04bcae1da9"]]
667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
668
+  (0.1ms) rollback transaction
669
+  (0.0ms) begin transaction
670
+  (0.0ms) commit transaction
671
+  (0.0ms) begin transaction
672
+  (0.0ms) SAVEPOINT active_record_1
673
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.901039"], ["updated_at", "2014-10-25 21:41:13.901039"]]
674
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
675
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "7d16786f-7b85-415e-92e1-4f9d25845aa3"]]
676
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
677
+ SQL (0.0ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "1c1d7859-bbc4-4db9-bd1f-babfb8582a78"]]
678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679
+  (0.1ms) rollback transaction
680
+  (0.0ms) begin transaction
681
+  (0.0ms) commit transaction
682
+  (0.0ms) begin transaction
683
+  (0.0ms) SAVEPOINT active_record_1
684
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.906783"], ["updated_at", "2014-10-25 21:41:13.906783"]]
685
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
686
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "93da6d26-970b-4bd9-b569-b5bdd1e973c3"]]
687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
688
+  (0.0ms) SAVEPOINT active_record_1
689
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
690
+ SQL (0.2ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
691
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
692
+  (0.0ms) SAVEPOINT active_record_1
693
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
694
+ SQL (0.1ms) DELETE FROM "cities" WHERE "cities"."id" = ? [["id", 1]]
695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
696
+  (0.1ms) rollback transaction
697
+  (0.8ms) begin transaction
698
+  (0.5ms) commit transaction
699
+  (0.1ms) begin transaction
700
+  (0.0ms) SAVEPOINT active_record_1
701
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.944524"], ["updated_at", "2014-10-25 21:41:13.944524"]]
702
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
703
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "791b0e1e-9ee6-4698-8c4e-62e1094d6b87"]]
704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
705
+ City Load (0.2ms) SELECT DISTINCT "cities".* FROM "cities" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "cities"."id" AND "uuids_uuids"."record_type" = 'City' WHERE "uuids_uuids"."value" = '791b0e1e-9ee6-4698-8c4e-62e1094d6b87' ORDER BY "cities"."id" ASC LIMIT 1
706
+  (0.0ms) SAVEPOINT active_record_1
707
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
708
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "8c9d27fb-877f-4671-a27d-9676688d8308"]]
709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
710
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
711
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
712
+  (0.1ms) rollback transaction
713
+  (0.0ms) begin transaction
714
+  (0.0ms) commit transaction
715
+  (0.0ms) begin transaction
716
+  (0.0ms) SAVEPOINT active_record_1
717
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.959530"], ["updated_at", "2014-10-25 21:41:13.959530"]]
718
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
719
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "34c6bfd2-9495-4eb2-960c-5b382a47b594"]]
720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
721
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
722
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
723
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
724
+  (0.1ms) rollback transaction
725
+  (0.0ms) begin transaction
726
+  (0.0ms) commit transaction
727
+  (0.0ms) begin transaction
728
+  (0.0ms) SAVEPOINT active_record_1
729
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.964880"], ["updated_at", "2014-10-25 21:41:13.964880"]]
730
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
731
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "ef7b2c1b-9fe7-4d6b-ac45-35490fdc1aef"]]
732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
734
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
735
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
736
+  (0.1ms) rollback transaction
737
+  (0.0ms) begin transaction
738
+  (0.0ms) commit transaction
739
+  (0.0ms) begin transaction
740
+  (0.0ms) SAVEPOINT active_record_1
741
+ SQL (0.3ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.975596"], ["updated_at", "2014-10-25 21:41:13.975596"]]
742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
743
+  (0.1ms) rollback transaction
744
+  (0.0ms) begin transaction
745
+  (0.0ms) commit transaction
746
+  (0.0ms) begin transaction
747
+  (0.0ms) SAVEPOINT active_record_1
748
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.980223"], ["updated_at", "2014-10-25 21:41:13.980223"]]
749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
750
+  (0.0ms) SAVEPOINT active_record_1
751
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "6fd6d560-42c6-4355-b62d-614d10d41c72"]]
752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
753
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
754
+  (0.1ms) rollback transaction
755
+  (0.0ms) begin transaction
756
+  (0.0ms) commit transaction
757
+  (0.0ms) begin transaction
758
+  (0.0ms) SAVEPOINT active_record_1
759
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.984165"], ["updated_at", "2014-10-25 21:41:13.984165"]]
760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
761
+  (0.0ms) SAVEPOINT active_record_1
762
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "6577d3b1-b5d0-485e-a59d-aa09ab495f56"]]
763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
764
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
765
+  (0.0ms) SAVEPOINT active_record_1
766
+ Record Load (0.1ms) SELECT "records".* FROM "records" WHERE "records"."id" = ? LIMIT 1 [["id", 1]]
767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
768
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
769
+  (0.1ms) rollback transaction
770
+  (0.0ms) begin transaction
771
+  (0.0ms) commit transaction
772
+  (0.0ms) begin transaction
773
+  (0.0ms) SAVEPOINT active_record_1
774
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.989277"], ["updated_at", "2014-10-25 21:41:13.989277"]]
775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
776
+  (0.0ms) SAVEPOINT active_record_1
777
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "3a4c23de-7f16-45c1-9ace-d375c5c1ceb2"]]
778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
779
+  (0.0ms) SAVEPOINT active_record_1
780
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
781
+  (0.1ms) rollback transaction
782
+  (0.0ms) begin transaction
783
+  (0.0ms) commit transaction
784
+  (0.0ms) begin transaction
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.993529"], ["updated_at", "2014-10-25 21:41:13.993529"]]
787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
788
+  (0.0ms) SAVEPOINT active_record_1
789
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "bcbc9b62-f928-44b7-961a-1e602549e54c"]]
790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
791
+  (0.0ms) SAVEPOINT active_record_1
792
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
793
+  (0.1ms) rollback transaction
794
+  (0.0ms) begin transaction
795
+  (0.0ms) commit transaction
796
+  (0.0ms) begin transaction
797
+  (0.0ms) SAVEPOINT active_record_1
798
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:13.997409"], ["updated_at", "2014-10-25 21:41:13.997409"]]
799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
800
+  (0.1ms) rollback transaction
801
+  (0.0ms) begin transaction
802
+  (0.0ms) commit transaction
803
+  (0.0ms) begin transaction
804
+  (0.0ms) SAVEPOINT active_record_1
805
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:14.000186"], ["updated_at", "2014-10-25 21:41:14.000186"]]
806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
807
+  (0.1ms) rollback transaction
808
+  (0.0ms) begin transaction
809
+  (0.0ms) commit transaction
810
+  (0.0ms) begin transaction
811
+  (0.0ms) SAVEPOINT active_record_1
812
+ SQL (0.3ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:14.002849"], ["updated_at", "2014-10-25 21:41:14.002849"]]
813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
814
+  (0.0ms) SAVEPOINT active_record_1
815
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "cd6141e5-dac4-4fa1-bc44-dca0808a20d9"]]
816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
817
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
818
+  (0.1ms) rollback transaction
819
+  (0.0ms) begin transaction
820
+  (0.0ms) commit transaction
821
+  (0.0ms) begin transaction
822
+  (0.0ms) SAVEPOINT active_record_1
823
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:41:14.006840"], ["updated_at", "2014-10-25 21:41:14.006840"]]
824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
825
+  (0.0ms) SAVEPOINT active_record_1
826
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "9b9e878b-6aea-4173-87d2-9538f1e9ff2c"]]
827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
828
+  (0.1ms) rollback transaction
829
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
830
+  (5.7ms) DELETE FROM "uuids_uuids";
831
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
832
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'uuids_uuids';
833
+  (3.2ms) DELETE FROM "records";
834
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
835
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'records';
836
+  (2.6ms) DELETE FROM "cities";
837
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
838
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cities';
839
+  (0.0ms) begin transaction
840
+  (0.0ms) commit transaction
841
+  (0.0ms) begin transaction
842
+  (0.0ms) rollback transaction
843
+  (0.1ms) begin transaction
844
+  (0.1ms) commit transaction
845
+  (0.1ms) begin transaction
846
+  (0.1ms) rollback transaction
847
+  (0.1ms) begin transaction
848
+  (0.1ms) commit transaction
849
+  (0.1ms) begin transaction
850
+  (0.0ms) SAVEPOINT active_record_1
851
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.503627"], ["updated_at", "2014-10-25 21:42:13.503627"]]
852
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
853
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "1eb6ef24-93fa-4885-a92c-9525d0c0316b"]]
854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
855
+  (0.0ms) SAVEPOINT active_record_1
856
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
857
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
858
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
859
+  (0.0ms) SAVEPOINT active_record_1
860
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
861
+ SQL (0.1ms) DELETE FROM "cities" WHERE "cities"."id" = ? [["id", 1]]
862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
863
+  (0.1ms) rollback transaction
864
+  (0.0ms) begin transaction
865
+  (0.0ms) commit transaction
866
+  (0.0ms) begin transaction
867
+  (0.0ms) SAVEPOINT active_record_1
868
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.533993"], ["updated_at", "2014-10-25 21:42:13.533993"]]
869
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
870
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "4580266f-16f3-40a5-96a3-90fac75040b2"]]
871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
872
+  (0.1ms) rollback transaction
873
+  (0.0ms) begin transaction
874
+  (0.0ms) commit transaction
875
+  (0.0ms) begin transaction
876
+  (0.0ms) SAVEPOINT active_record_1
877
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.539262"], ["updated_at", "2014-10-25 21:42:13.539262"]]
878
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
879
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "dce559a4-661d-4019-b602-98e38d87fb45"]]
880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
882
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
883
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
884
+  (0.1ms) rollback transaction
885
+  (0.0ms) begin transaction
886
+  (0.0ms) commit transaction
887
+  (0.0ms) begin transaction
888
+  (0.1ms) SAVEPOINT active_record_1
889
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.547940"], ["updated_at", "2014-10-25 21:42:13.547940"]]
890
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
891
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "2c394068-684d-41d1-873f-001c69c9379c"]]
892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
893
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
894
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
895
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
896
+  (0.1ms) rollback transaction
897
+  (0.9ms) begin transaction
898
+  (0.6ms) commit transaction
899
+  (0.1ms) begin transaction
900
+  (0.0ms) rollback transaction
901
+  (0.0ms) begin transaction
902
+  (0.0ms) commit transaction
903
+  (0.0ms) begin transaction
904
+  (0.0ms) SAVEPOINT active_record_1
905
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.583731"], ["updated_at", "2014-10-25 21:42:13.583731"]]
906
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
907
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "e252ebb6-bc7a-4664-9024-f1998bf704e4"]]
908
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
909
+ SQL (0.0ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "16b42d7f-711c-4e8c-876a-f153346ee491"]]
910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
911
+  (0.1ms) rollback transaction
912
+  (0.0ms) begin transaction
913
+  (0.0ms) commit transaction
914
+  (0.0ms) begin transaction
915
+  (0.0ms) SAVEPOINT active_record_1
916
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.589520"], ["updated_at", "2014-10-25 21:42:13.589520"]]
917
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
918
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "7ae5aad5-fd7c-435b-855b-4543fcf4fdc8"]]
919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
920
+  (0.0ms) SAVEPOINT active_record_1
921
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
922
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "90f3efd0-1563-4130-a5c2-ccb22ee415f3"]]
923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
924
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
925
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
926
+  (0.1ms) rollback transaction
927
+  (0.0ms) begin transaction
928
+  (0.0ms) commit transaction
929
+  (0.0ms) begin transaction
930
+  (0.0ms) SAVEPOINT active_record_1
931
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.598734"], ["updated_at", "2014-10-25 21:42:13.598734"]]
932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
933
+  (0.0ms) SAVEPOINT active_record_1
934
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "9fa01753-a71c-4937-9332-b5edcf4fe2ff"]]
935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
936
+  (0.0ms) SAVEPOINT active_record_1
937
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
938
+  (0.1ms) rollback transaction
939
+  (0.0ms) begin transaction
940
+  (0.0ms) commit transaction
941
+  (0.0ms) begin transaction
942
+  (0.0ms) SAVEPOINT active_record_1
943
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.604800"], ["updated_at", "2014-10-25 21:42:13.604800"]]
944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
945
+  (0.0ms) SAVEPOINT active_record_1
946
+ SQL (0.3ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "36f83caa-4c30-4f4f-9573-797692455ad5"]]
947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
948
+  (0.0ms) SAVEPOINT active_record_1
949
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
950
+  (0.1ms) rollback transaction
951
+  (0.0ms) begin transaction
952
+  (0.0ms) commit transaction
953
+  (0.0ms) begin transaction
954
+  (0.0ms) SAVEPOINT active_record_1
955
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.609383"], ["updated_at", "2014-10-25 21:42:13.609383"]]
956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
957
+  (0.0ms) SAVEPOINT active_record_1
958
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "02adf8dc-582e-496b-8417-eac0460738e5"]]
959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
960
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
961
+  (0.1ms) rollback transaction
962
+  (0.0ms) begin transaction
963
+  (0.0ms) commit transaction
964
+  (0.0ms) begin transaction
965
+  (0.0ms) SAVEPOINT active_record_1
966
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.613205"], ["updated_at", "2014-10-25 21:42:13.613205"]]
967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
968
+  (0.0ms) SAVEPOINT active_record_1
969
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "2abc7c8c-2298-456c-a343-30aef917bacc"]]
970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
971
+  (0.1ms) rollback transaction
972
+  (0.0ms) begin transaction
973
+  (0.0ms) commit transaction
974
+  (0.0ms) begin transaction
975
+  (0.0ms) SAVEPOINT active_record_1
976
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.616567"], ["updated_at", "2014-10-25 21:42:13.616567"]]
977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
978
+  (0.1ms) rollback transaction
979
+  (0.0ms) begin transaction
980
+  (0.0ms) commit transaction
981
+  (0.0ms) begin transaction
982
+  (0.0ms) SAVEPOINT active_record_1
983
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.619001"], ["updated_at", "2014-10-25 21:42:13.619001"]]
984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
985
+  (0.0ms) SAVEPOINT active_record_1
986
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "2f2765d7-93de-4cd8-a4c6-308b523f4ef6"]]
987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
988
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
989
+  (0.1ms) rollback transaction
990
+  (0.0ms) begin transaction
991
+  (0.0ms) commit transaction
992
+  (0.0ms) begin transaction
993
+  (0.0ms) SAVEPOINT active_record_1
994
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.622761"], ["updated_at", "2014-10-25 21:42:13.622761"]]
995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
996
+  (0.0ms) SAVEPOINT active_record_1
997
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "851a3c8c-400f-4032-b4c6-9b7fd9a0c614"]]
998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
999
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1000
+  (0.0ms) SAVEPOINT active_record_1
1001
+ Record Load (0.1ms) SELECT "records".* FROM "records" WHERE "records"."id" = ? LIMIT 1 [["id", 1]]
1002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1003
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1004
+  (0.1ms) rollback transaction
1005
+  (0.0ms) begin transaction
1006
+  (0.0ms) commit transaction
1007
+  (0.0ms) begin transaction
1008
+  (0.0ms) SAVEPOINT active_record_1
1009
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.627632"], ["updated_at", "2014-10-25 21:42:13.627632"]]
1010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1011
+  (0.1ms) rollback transaction
1012
+  (0.0ms) begin transaction
1013
+  (0.0ms) commit transaction
1014
+  (0.0ms) begin transaction
1015
+  (0.0ms) SAVEPOINT active_record_1
1016
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:13.630285"], ["updated_at", "2014-10-25 21:42:13.630285"]]
1017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1018
+  (0.1ms) rollback transaction
1019
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1020
+  (4.5ms) DELETE FROM "uuids_uuids";
1021
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1022
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'uuids_uuids';
1023
+  (2.5ms) DELETE FROM "records";
1024
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1025
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'records';
1026
+  (2.8ms) DELETE FROM "cities";
1027
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1028
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cities';
1029
+  (0.1ms) begin transaction
1030
+  (0.1ms) commit transaction
1031
+  (0.1ms) begin transaction
1032
+  (0.1ms) rollback transaction
1033
+  (0.1ms) begin transaction
1034
+  (0.0ms) commit transaction
1035
+  (0.0ms) begin transaction
1036
+  (0.1ms) rollback transaction
1037
+  (0.0ms) begin transaction
1038
+  (0.0ms) commit transaction
1039
+  (0.0ms) begin transaction
1040
+  (0.0ms) SAVEPOINT active_record_1
1041
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.479332"], ["updated_at", "2014-10-25 21:42:37.479332"]]
1042
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1043
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "ca3d9d23-b231-492f-9f15-e239dbd8b930"]]
1044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1045
+  (0.2ms) rollback transaction
1046
+  (0.0ms) begin transaction
1047
+  (0.0ms) commit transaction
1048
+  (0.0ms) begin transaction
1049
+  (0.0ms) SAVEPOINT active_record_1
1050
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.500401"], ["updated_at", "2014-10-25 21:42:37.500401"]]
1051
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1052
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "c07e2f3a-4626-46a1-b018-73afca24c899"]]
1053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1054
+  (0.0ms) SAVEPOINT active_record_1
1055
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1056
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "581c83c9-72f4-4b43-9cf7-61cde30d3613"]]
1057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1058
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1059
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
1060
+  (0.1ms) rollback transaction
1061
+  (0.0ms) begin transaction
1062
+  (0.0ms) commit transaction
1063
+  (0.0ms) begin transaction
1064
+  (0.0ms) rollback transaction
1065
+  (0.0ms) begin transaction
1066
+  (0.0ms) commit transaction
1067
+  (0.0ms) begin transaction
1068
+  (0.0ms) SAVEPOINT active_record_1
1069
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.512105"], ["updated_at", "2014-10-25 21:42:37.512105"]]
1070
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1071
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "878924fe-7ae6-473c-adf8-abcb93a55ca5"]]
1072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1073
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
1074
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1075
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
1076
+  (0.2ms) rollback transaction
1077
+  (0.6ms) begin transaction
1078
+  (0.3ms) commit transaction
1079
+  (0.0ms) begin transaction
1080
+  (0.0ms) SAVEPOINT active_record_1
1081
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.548816"], ["updated_at", "2014-10-25 21:42:37.548816"]]
1082
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1083
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "aa898ea9-be39-4198-ae01-0ff9e4364c8e"]]
1084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1085
+  (0.0ms) SAVEPOINT active_record_1
1086
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1087
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
1088
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1089
+  (0.0ms) SAVEPOINT active_record_1
1090
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
1091
+ SQL (0.1ms) DELETE FROM "cities" WHERE "cities"."id" = ? [["id", 1]]
1092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1093
+  (0.1ms) rollback transaction
1094
+  (0.0ms) begin transaction
1095
+  (0.0ms) commit transaction
1096
+  (0.0ms) begin transaction
1097
+  (0.0ms) SAVEPOINT active_record_1
1098
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.558260"], ["updated_at", "2014-10-25 21:42:37.558260"]]
1099
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1100
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "38e0e288-958a-4452-9f60-0bde6b21b684"]]
1101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1102
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
1103
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1104
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
1105
+  (0.1ms) rollback transaction
1106
+  (0.0ms) begin transaction
1107
+  (0.0ms) commit transaction
1108
+  (0.0ms) begin transaction
1109
+  (0.0ms) SAVEPOINT active_record_1
1110
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.565631"], ["updated_at", "2014-10-25 21:42:37.565631"]]
1111
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1112
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "1a269f86-9760-4fb8-a065-a27c7052307d"]]
1113
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1114
+ SQL (0.0ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "2d543c59-6ae7-4b5b-adb9-e00d93979b22"]]
1115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1116
+  (0.1ms) rollback transaction
1117
+  (0.0ms) begin transaction
1118
+  (0.0ms) commit transaction
1119
+  (0.0ms) begin transaction
1120
+  (0.0ms) SAVEPOINT active_record_1
1121
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.572202"], ["updated_at", "2014-10-25 21:42:37.572202"]]
1122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1123
+  (0.1ms) rollback transaction
1124
+  (0.0ms) begin transaction
1125
+  (0.0ms) commit transaction
1126
+  (0.0ms) begin transaction
1127
+  (0.0ms) SAVEPOINT active_record_1
1128
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.576562"], ["updated_at", "2014-10-25 21:42:37.576562"]]
1129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1130
+  (0.1ms) rollback transaction
1131
+  (0.0ms) begin transaction
1132
+  (0.0ms) commit transaction
1133
+  (0.0ms) begin transaction
1134
+  (0.0ms) SAVEPOINT active_record_1
1135
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.579464"], ["updated_at", "2014-10-25 21:42:37.579464"]]
1136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1137
+  (0.1ms) rollback transaction
1138
+  (0.0ms) begin transaction
1139
+  (0.0ms) commit transaction
1140
+  (0.0ms) begin transaction
1141
+  (0.0ms) SAVEPOINT active_record_1
1142
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.582125"], ["updated_at", "2014-10-25 21:42:37.582125"]]
1143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1144
+  (0.0ms) SAVEPOINT active_record_1
1145
+ SQL (0.3ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "05a5f782-0e5c-4141-b925-f33e78378735"]]
1146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.0ms) SAVEPOINT active_record_1
1148
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1149
+  (0.1ms) rollback transaction
1150
+  (0.0ms) begin transaction
1151
+  (0.0ms) commit transaction
1152
+  (0.0ms) begin transaction
1153
+  (0.0ms) SAVEPOINT active_record_1
1154
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.586631"], ["updated_at", "2014-10-25 21:42:37.586631"]]
1155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1156
+  (0.0ms) SAVEPOINT active_record_1
1157
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "27f0354b-5318-4e64-ba12-5d0fb33b1cc3"]]
1158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1159
+  (0.0ms) SAVEPOINT active_record_1
1160
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1161
+  (0.1ms) rollback transaction
1162
+  (0.0ms) begin transaction
1163
+  (0.0ms) commit transaction
1164
+  (0.0ms) begin transaction
1165
+  (0.0ms) SAVEPOINT active_record_1
1166
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.590552"], ["updated_at", "2014-10-25 21:42:37.590552"]]
1167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1168
+  (0.0ms) SAVEPOINT active_record_1
1169
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "4682b2ce-5bdb-4e00-823a-2e31210294b5"]]
1170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1171
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1172
+  (0.1ms) rollback transaction
1173
+  (0.0ms) begin transaction
1174
+  (0.0ms) commit transaction
1175
+  (0.0ms) begin transaction
1176
+  (0.0ms) SAVEPOINT active_record_1
1177
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.594037"], ["updated_at", "2014-10-25 21:42:37.594037"]]
1178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1179
+  (0.0ms) SAVEPOINT active_record_1
1180
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "11e43038-d45b-4c27-9a60-8c5be61780e2"]]
1181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1182
+  (0.1ms) rollback transaction
1183
+  (0.0ms) begin transaction
1184
+  (0.0ms) commit transaction
1185
+  (0.0ms) begin transaction
1186
+  (0.0ms) SAVEPOINT active_record_1
1187
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.597419"], ["updated_at", "2014-10-25 21:42:37.597419"]]
1188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1189
+  (0.0ms) SAVEPOINT active_record_1
1190
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "8b381f72-4130-499c-8ee2-4085394c3b26"]]
1191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1192
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1193
+  (0.1ms) rollback transaction
1194
+  (0.0ms) begin transaction
1195
+  (0.0ms) commit transaction
1196
+  (0.0ms) begin transaction
1197
+  (0.0ms) SAVEPOINT active_record_1
1198
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:42:37.601057"], ["updated_at", "2014-10-25 21:42:37.601057"]]
1199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1200
+  (0.0ms) SAVEPOINT active_record_1
1201
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "dc9431a4-cdb3-4b71-b2b6-94ef47f29db8"]]
1202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1203
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1204
+  (0.0ms) SAVEPOINT active_record_1
1205
+ Record Load (0.1ms) SELECT "records".* FROM "records" WHERE "records"."id" = ? LIMIT 1 [["id", 1]]
1206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1207
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1208
+  (0.1ms) rollback transaction
1209
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1210
+  (4.6ms) DELETE FROM "uuids_uuids";
1211
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1212
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'uuids_uuids';
1213
+  (2.1ms) DELETE FROM "records";
1214
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1215
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'records';
1216
+  (2.9ms) DELETE FROM "cities";
1217
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1218
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'cities';
1219
+  (0.1ms) begin transaction
1220
+  (0.1ms) commit transaction
1221
+  (0.0ms) begin transaction
1222
+  (0.0ms) SAVEPOINT active_record_1
1223
+ SQL (0.4ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.429117"], ["updated_at", "2014-10-25 21:49:29.429117"]]
1224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1225
+  (0.0ms) SAVEPOINT active_record_1
1226
+ SQL (0.3ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "68c75d8e-dd1b-47b9-b6bb-3f923f7092c7"]]
1227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1228
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1229
+  (0.0ms) SAVEPOINT active_record_1
1230
+ Record Load (0.1ms) SELECT "records".* FROM "records" WHERE "records"."id" = ? LIMIT 1 [["id", 1]]
1231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1232
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1233
+  (0.1ms) rollback transaction
1234
+  (0.0ms) begin transaction
1235
+  (0.0ms) commit transaction
1236
+  (0.0ms) begin transaction
1237
+  (0.0ms) SAVEPOINT active_record_1
1238
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.447086"], ["updated_at", "2014-10-25 21:49:29.447086"]]
1239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1240
+  (0.0ms) SAVEPOINT active_record_1
1241
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "b3229629-561c-499e-bcd2-82ce9421a39d"]]
1242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1243
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1244
+  (0.1ms) rollback transaction
1245
+  (0.0ms) begin transaction
1246
+  (0.0ms) commit transaction
1247
+  (0.0ms) begin transaction
1248
+  (0.0ms) SAVEPOINT active_record_1
1249
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.450609"], ["updated_at", "2014-10-25 21:49:29.450609"]]
1250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1251
+  (0.0ms) SAVEPOINT active_record_1
1252
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "e60cdf66-e312-436f-90d9-b29e655b6ef0"]]
1253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1254
+  (0.1ms) rollback transaction
1255
+  (0.0ms) begin transaction
1256
+  (0.0ms) commit transaction
1257
+  (0.0ms) begin transaction
1258
+  (0.0ms) SAVEPOINT active_record_1
1259
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.453655"], ["updated_at", "2014-10-25 21:49:29.453655"]]
1260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1261
+  (0.0ms) SAVEPOINT active_record_1
1262
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "79b3d388-0d96-484d-a571-2d3212864fa0"]]
1263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1264
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."id" = ? LIMIT 1 [["id", 1]]
1265
+  (0.1ms) rollback transaction
1266
+  (0.0ms) begin transaction
1267
+  (0.0ms) commit transaction
1268
+  (0.0ms) begin transaction
1269
+  (0.0ms) SAVEPOINT active_record_1
1270
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.457628"], ["updated_at", "2014-10-25 21:49:29.457628"]]
1271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+  (0.1ms) rollback transaction
1273
+  (0.0ms) begin transaction
1274
+  (0.0ms) commit transaction
1275
+  (0.0ms) begin transaction
1276
+  (0.0ms) SAVEPOINT active_record_1
1277
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.460156"], ["updated_at", "2014-10-25 21:49:29.460156"]]
1278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1279
+  (0.1ms) rollback transaction
1280
+  (0.0ms) begin transaction
1281
+  (0.0ms) commit transaction
1282
+  (0.0ms) begin transaction
1283
+  (0.0ms) SAVEPOINT active_record_1
1284
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.466735"], ["updated_at", "2014-10-25 21:49:29.466735"]]
1285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1286
+  (0.1ms) rollback transaction
1287
+  (0.0ms) begin transaction
1288
+  (0.0ms) commit transaction
1289
+  (0.0ms) begin transaction
1290
+  (0.0ms) SAVEPOINT active_record_1
1291
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.469497"], ["updated_at", "2014-10-25 21:49:29.469497"]]
1292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1293
+  (0.0ms) SAVEPOINT active_record_1
1294
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "e41bfaa0-cddf-4956-bbba-d1adabee79ba"]]
1295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1296
+  (0.0ms) SAVEPOINT active_record_1
1297
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1298
+  (0.1ms) rollback transaction
1299
+  (0.0ms) begin transaction
1300
+  (0.0ms) commit transaction
1301
+  (0.0ms) begin transaction
1302
+  (0.0ms) SAVEPOINT active_record_1
1303
+ SQL (0.2ms) INSERT INTO "records" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.474448"], ["updated_at", "2014-10-25 21:49:29.474448"]]
1304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1305
+  (0.0ms) SAVEPOINT active_record_1
1306
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Record"], ["value", "854a2c5c-bed0-4876-bb16-76a386e0176d"]]
1307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.0ms) SAVEPOINT active_record_1
1309
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1310
+  (0.1ms) rollback transaction
1311
+  (0.0ms) begin transaction
1312
+  (0.0ms) commit transaction
1313
+  (0.0ms) begin transaction
1314
+  (0.0ms) SAVEPOINT active_record_1
1315
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.480761"], ["updated_at", "2014-10-25 21:49:29.480761"]]
1316
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1317
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "63a4ac6b-f309-4c55-bedf-848ee765f88b"]]
1318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1319
+  (0.0ms) SAVEPOINT active_record_1
1320
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1321
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
1322
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1323
+  (0.0ms) SAVEPOINT active_record_1
1324
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
1325
+ SQL (0.1ms) DELETE FROM "cities" WHERE "cities"."id" = ? [["id", 1]]
1326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1327
+  (0.1ms) rollback transaction
1328
+  (0.6ms) begin transaction
1329
+  (0.4ms) commit transaction
1330
+  (0.0ms) begin transaction
1331
+  (0.0ms) SAVEPOINT active_record_1
1332
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.521348"], ["updated_at", "2014-10-25 21:49:29.521348"]]
1333
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1334
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "b0f8fc55-0cb4-4afc-82bc-1d4f1ed5fedd"]]
1335
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1336
+ SQL (0.0ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "1133c8bd-0fe7-4a3d-af7f-5b44b28af251"]]
1337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1338
+  (0.1ms) rollback transaction
1339
+  (0.0ms) begin transaction
1340
+  (0.0ms) commit transaction
1341
+  (0.0ms) begin transaction
1342
+  (0.0ms) SAVEPOINT active_record_1
1343
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.526855"], ["updated_at", "2014-10-25 21:49:29.526855"]]
1344
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1345
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "e89e6847-1fe9-4502-8974-06b038989a06"]]
1346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+ SQL (0.1ms) DELETE FROM "uuids_uuids" WHERE "uuids_uuids"."id" = 1
1348
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1349
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
1350
+  (0.1ms) rollback transaction
1351
+  (0.0ms) begin transaction
1352
+  (0.0ms) commit transaction
1353
+  (0.0ms) begin transaction
1354
+  (0.0ms) SAVEPOINT active_record_1
1355
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.534890"], ["updated_at", "2014-10-25 21:49:29.534890"]]
1356
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1357
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "7d07be44-87f7-4cea-b97e-ecb47c3c0bcd"]]
1358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1359
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
1360
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1361
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" ORDER BY "uuids_uuids"."id" ASC LIMIT 1
1362
+  (0.1ms) rollback transaction
1363
+  (0.0ms) begin transaction
1364
+  (0.0ms) commit transaction
1365
+  (0.0ms) begin transaction
1366
+  (0.0ms) rollback transaction
1367
+  (0.0ms) begin transaction
1368
+  (0.0ms) commit transaction
1369
+  (0.0ms) begin transaction
1370
+  (0.0ms) SAVEPOINT active_record_1
1371
+ SQL (0.3ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.543203"], ["updated_at", "2014-10-25 21:49:29.543203"]]
1372
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1373
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "4cc223cf-006c-4bf6-b62d-98a173e8a02d"]]
1374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1375
+  (0.0ms) SAVEPOINT active_record_1
1376
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1377
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "7a418dbf-8aca-402e-a140-a636c73c5b6d"]]
1378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1379
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1380
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "City"]]
1381
+ City Load (0.2ms) SELECT DISTINCT "cities".* FROM "cities" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "cities"."id" AND "uuids_uuids"."record_type" = 'City' WHERE "uuids_uuids"."value" IN ('4cc223cf-006c-4bf6-b62d-98a173e8a02d', '7a418dbf-8aca-402e-a140-a636c73c5b6d')
1382
+  (0.2ms) rollback transaction
1383
+  (0.0ms) begin transaction
1384
+  (0.0ms) commit transaction
1385
+  (0.0ms) begin transaction
1386
+  (0.0ms) SAVEPOINT active_record_1
1387
+ SQL (0.2ms) INSERT INTO "cities" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-10-25 21:49:29.556398"], ["updated_at", "2014-10-25 21:49:29.556398"]]
1388
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]]
1389
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "City"], ["value", "74c63dec-4f39-47cb-995c-896494025d4b"]]
1390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1391
+  (0.2ms) rollback transaction
1392
+  (0.0ms) begin transaction
1393
+  (0.0ms) commit transaction
1394
+  (0.0ms) begin transaction
1395
+  (0.0ms) rollback transaction
1396
+  (0.0ms) begin transaction
1397
+  (0.0ms) commit transaction
1398
+  (0.0ms) begin transaction
1399
+  (0.0ms) rollback transaction
@@ -51,7 +51,9 @@ module Uuids
51
51
 
52
52
  it "defines +by_uuid+ class scope" do
53
53
  subject.save!
54
- expect(City.by_uuid(subject.uuid).first).to eq subject
54
+ subject.uuids.create!
55
+ values = subject.reload.uuids.map(&:value)
56
+ expect(City.by_uuid(*values).to_a).to eq [subject]
55
57
  end
56
58
 
57
59
  it "creates the first uuid by default" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuids
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin