g5_updatable 0.7.0 → 0.7.1

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: eb73a50f2ccd171abc638c249de6ac44691d3767
4
- data.tar.gz: 6c31e1de5ebae2044c3aff58d6fddcf7d7936c63
3
+ metadata.gz: 43f06bc38ca96cb022b56ce87834f37552738d9f
4
+ data.tar.gz: e0379ee13b9fcd04e1ae7c3937a811b6fe1c0a00
5
5
  SHA512:
6
- metadata.gz: 0d4402c11532af307a63413cff19169a055c5792ea545bc1700e1e7d3aafc5a7f546419130be318c1266d759a9b973929386a94c6219e3259c0be3b30d349a1f
7
- data.tar.gz: 74ae9fac9dc83ba36e84a20b0f20cdc0926a912bbfe905c06a4af9643ad16a96f2cfb98a22ed84463a66fddbb8dd48042ab57bcd12951950e75e70cd4ff727ad
6
+ metadata.gz: f7c00575e9cf9da95dd2a9d118a48d1b9663678fc2fa94e83e4ebb0e6ef4081130dc0fa8fbc84a3822710e3c8af859e8629f499d9b6bbdb0fe110fc206d76958
7
+ data.tar.gz: fa948d41fcfab80831224df7acad35d7e87a02f50a86dae62a97156fafe5f1a602538c34549e4210b9db17f8d7be9d964f5c1ed447b5165120c7f1af1e94e98c
@@ -39,7 +39,9 @@ class G5Updatable::LocationsUpdater
39
39
  if @g5_locations.empty?
40
40
  G5Updatable::Location.by_client_uid(@client_uid)
41
41
  else
42
- G5Updatable::Location.where.not(urn: @g5_locations.map(&:urn))
42
+ G5Updatable::Location
43
+ .where.not(urn: @g5_locations.map(&:urn))
44
+ .where(client_uid: @client_uid)
43
45
  end.destroy_all
44
46
  end
45
47
  end
@@ -1,3 +1,3 @@
1
1
  module G5Updatable
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  development:
2
2
  adapter: postgresql
3
3
  database: g5_updatable_dummy_development
4
- user: vagrant
4
+
5
5
 
6
6
  test:
7
7
  adapter: postgresql
8
8
  database: g5_updatable_dummy_test
9
- user: vagrant
9
+
@@ -0,0 +1,82 @@
1
+ SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2
+  (12.2ms) CREATE TABLE "favorite_foods" ("id" serial primary key, "name" character varying, "location_uid" character varying, "created_at" timestamp, "updated_at" timestamp)
3
+  (3.9ms) CREATE TABLE "g5_updatable_clients" ("id" serial primary key, "uid" character varying, "urn" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying) 
4
+  (1.3ms) CREATE INDEX "index_g5_updatable_clients_on_name" ON "g5_updatable_clients" USING btree ("name")
5
+  (1.1ms) CREATE INDEX "index_g5_updatable_clients_on_uid" ON "g5_updatable_clients" USING btree ("uid")
6
+  (1.1ms) CREATE INDEX "index_g5_updatable_clients_on_urn" ON "g5_updatable_clients" USING btree ("urn")
7
+  (3.5ms) CREATE TABLE "g5_updatable_locations" ("id" serial primary key, "uid" character varying, "urn" character varying, "client_uid" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying) 
8
+  (0.9ms) CREATE INDEX "index_g5_updatable_locations_on_name" ON "g5_updatable_locations" USING btree ("name")
9
+  (1.0ms) CREATE INDEX "index_g5_updatable_locations_on_uid" ON "g5_updatable_locations" USING btree ("uid")
10
+  (0.9ms) CREATE INDEX "index_g5_updatable_locations_on_urn" ON "g5_updatable_locations" USING btree ("urn")
11
+  (3.5ms) CREATE TABLE "restaurants" ("id" serial primary key, "name" character varying, "client_uid" character varying, "created_at" timestamp, "updated_at" timestamp) 
12
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
13
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14
+  (3.3ms) SELECT version FROM "schema_migrations"
15
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222072623')
16
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140630175259')
17
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140630175330')
18
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709220627')
19
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140714225203')
20
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
21
+  (7.4ms) CREATE TABLE "favorite_foods" ("id" serial primary key, "name" character varying, "location_uid" character varying, "created_at" timestamp, "updated_at" timestamp) 
22
+  (4.2ms) CREATE TABLE "g5_updatable_clients" ("id" serial primary key, "uid" character varying, "urn" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying)
23
+  (1.3ms) CREATE INDEX "index_g5_updatable_clients_on_name" ON "g5_updatable_clients" USING btree ("name")
24
+  (1.0ms) CREATE INDEX "index_g5_updatable_clients_on_uid" ON "g5_updatable_clients" USING btree ("uid")
25
+  (1.1ms) CREATE INDEX "index_g5_updatable_clients_on_urn" ON "g5_updatable_clients" USING btree ("urn")
26
+  (3.7ms) CREATE TABLE "g5_updatable_locations" ("id" serial primary key, "uid" character varying, "urn" character varying, "client_uid" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying)
27
+  (1.0ms) CREATE INDEX "index_g5_updatable_locations_on_name" ON "g5_updatable_locations" USING btree ("name")
28
+  (1.0ms) CREATE INDEX "index_g5_updatable_locations_on_uid" ON "g5_updatable_locations" USING btree ("uid")
29
+  (1.0ms) CREATE INDEX "index_g5_updatable_locations_on_urn" ON "g5_updatable_locations" USING btree ("urn")
30
+  (3.5ms) CREATE TABLE "restaurants" ("id" serial primary key, "name" character varying, "client_uid" character varying, "created_at" timestamp, "updated_at" timestamp)
31
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
32
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
33
+  (1.6ms) SELECT version FROM "schema_migrations"
34
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222072623')
35
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140630175259')
36
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140630175330')
37
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709220627')
38
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140714225203')
39
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
41
+  (7.1ms) DROP TABLE "favorite_foods"
42
+  (7.1ms) CREATE TABLE "favorite_foods" ("id" serial primary key, "name" character varying, "location_uid" character varying, "created_at" timestamp, "updated_at" timestamp) 
43
+  (3.5ms) DROP TABLE "g5_updatable_clients"
44
+  (4.1ms) CREATE TABLE "g5_updatable_clients" ("id" serial primary key, "uid" character varying, "urn" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying) 
45
+  (1.1ms) CREATE INDEX "index_g5_updatable_clients_on_name" ON "g5_updatable_clients" USING btree ("name")
46
+  (1.3ms) CREATE INDEX "index_g5_updatable_clients_on_uid" ON "g5_updatable_clients" USING btree ("uid")
47
+  (1.1ms) CREATE INDEX "index_g5_updatable_clients_on_urn" ON "g5_updatable_clients" USING btree ("urn")
48
+  (2.4ms) DROP TABLE "g5_updatable_locations"
49
+  (4.3ms) CREATE TABLE "g5_updatable_locations" ("id" serial primary key, "uid" character varying, "urn" character varying, "client_uid" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying)
50
+  (1.2ms) CREATE INDEX "index_g5_updatable_locations_on_name" ON "g5_updatable_locations" USING btree ("name")
51
+  (1.1ms) CREATE INDEX "index_g5_updatable_locations_on_uid" ON "g5_updatable_locations" USING btree ("uid")
52
+  (1.1ms) CREATE INDEX "index_g5_updatable_locations_on_urn" ON "g5_updatable_locations" USING btree ("urn")
53
+  (1.8ms) DROP TABLE "restaurants"
54
+  (4.4ms) CREATE TABLE "restaurants" ("id" serial primary key, "name" character varying, "client_uid" character varying, "created_at" timestamp, "updated_at" timestamp) 
55
+  (0.8ms) SELECT version FROM "schema_migrations"
56
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709222005')
57
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141030211945')
58
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141122211945')
59
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141211211945')
60
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141211711945')
61
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
62
+  (4.8ms) DROP TABLE "favorite_foods"
63
+  (5.0ms) CREATE TABLE "favorite_foods" ("id" serial primary key, "name" character varying, "location_uid" character varying, "created_at" timestamp, "updated_at" timestamp)
64
+  (3.3ms) DROP TABLE "g5_updatable_clients"
65
+  (5.3ms) CREATE TABLE "g5_updatable_clients" ("id" serial primary key, "uid" character varying, "urn" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying)
66
+  (1.6ms) CREATE INDEX "index_g5_updatable_clients_on_name" ON "g5_updatable_clients" USING btree ("name")
67
+  (1.2ms) CREATE INDEX "index_g5_updatable_clients_on_uid" ON "g5_updatable_clients" USING btree ("uid")
68
+  (1.0ms) CREATE INDEX "index_g5_updatable_clients_on_urn" ON "g5_updatable_clients" USING btree ("urn")
69
+  (2.6ms) DROP TABLE "g5_updatable_locations"
70
+  (5.0ms) CREATE TABLE "g5_updatable_locations" ("id" serial primary key, "uid" character varying, "urn" character varying, "client_uid" character varying, "properties" json, "created_at" timestamp, "updated_at" timestamp, "name" character varying) 
71
+  (1.1ms) CREATE INDEX "index_g5_updatable_locations_on_name" ON "g5_updatable_locations" USING btree ("name")
72
+  (1.1ms) CREATE INDEX "index_g5_updatable_locations_on_uid" ON "g5_updatable_locations" USING btree ("uid")
73
+  (1.1ms) CREATE INDEX "index_g5_updatable_locations_on_urn" ON "g5_updatable_locations" USING btree ("urn")
74
+  (1.8ms) DROP TABLE "restaurants"
75
+  (3.4ms) CREATE TABLE "restaurants" ("id" serial primary key, "name" character varying, "client_uid" character varying, "created_at" timestamp, "updated_at" timestamp)
76
+  (0.8ms) SELECT version FROM "schema_migrations"
77
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709222005')
78
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141030211945')
79
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141122211945')
80
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141211211945')
81
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141211711945')
82
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"