global_uid 3.6.1 → 3.7.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.
- checksums.yaml +4 -4
- data/lib/global_uid/migration_extension.rb +2 -9
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54b08c76f71252fcaaefca06ee5687a0c68757150a8dafac0ba52b9da716ae6
|
4
|
+
data.tar.gz: 05567d416b709af94dc17fba1032bfeeba051511562e1928e7f878d7a1b0dd25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9688b69df4222df4709d2eb76dcaff4eccc39c70c8a36ea681df0349eca87d70de6daf55c4837e6d00988769ec6c59930a7e639578a2bf8f5aa7754fe32ad5e
|
7
|
+
data.tar.gz: 2e15b952cdf818291d5d7dcec8358b7ca489b49b40ffb52888ef6ce7b87277a55262f81a8faf8e5812c75eb1229c2f5a4668edc8c689c7572cc2807e0e89c70f
|
@@ -8,17 +8,10 @@ module GlobalUid
|
|
8
8
|
# rules for stripping out auto_increment -- enabled, not dry-run, and not a "PK-less" table
|
9
9
|
remove_auto_increment = uid_enabled && !GlobalUid::Base.global_uid_options[:dry_run] && !(options[:id] == false)
|
10
10
|
|
11
|
-
if remove_auto_increment
|
12
|
-
old_id_option = options[:id]
|
13
|
-
options.merge!(:id => false)
|
14
|
-
end
|
11
|
+
options.merge!(:id => false) if remove_auto_increment
|
15
12
|
|
16
13
|
super(name, options) { |t|
|
17
|
-
if remove_auto_increment
|
18
|
-
# need to honor specifically named tables
|
19
|
-
id_column_name = (old_id_option || :id)
|
20
|
-
t.column id_column_name, "int(10) NOT NULL PRIMARY KEY"
|
21
|
-
end
|
14
|
+
t.column :id, "int(10) NOT NULL PRIMARY KEY" if remove_auto_increment
|
22
15
|
blk.call(t) if blk
|
23
16
|
}
|
24
17
|
|
metadata
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_uid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Benjamin Quorning
|
8
|
+
- Gabe Martin-Dempesy
|
9
|
+
- Pierre Schambacher
|
7
10
|
- Ben Osheroff
|
8
11
|
autorequire:
|
9
12
|
bindir: bin
|
10
13
|
cert_chain: []
|
11
|
-
date: 2018-05
|
14
|
+
date: 2018-12-05 00:00:00.000000000 Z
|
12
15
|
dependencies:
|
13
16
|
- !ruby/object:Gem::Dependency
|
14
17
|
name: activerecord
|
@@ -16,7 +19,7 @@ dependencies:
|
|
16
19
|
requirements:
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 4.2.0
|
20
23
|
- - "<"
|
21
24
|
- !ruby/object:Gem::Version
|
22
25
|
version: '6.0'
|
@@ -26,7 +29,7 @@ dependencies:
|
|
26
29
|
requirements:
|
27
30
|
- - ">="
|
28
31
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
32
|
+
version: 4.2.0
|
30
33
|
- - "<"
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: '6.0'
|
@@ -171,7 +174,10 @@ dependencies:
|
|
171
174
|
- !ruby/object:Gem::Version
|
172
175
|
version: '0'
|
173
176
|
description: GUIDs for sharded models
|
174
|
-
email:
|
177
|
+
email:
|
178
|
+
- bquorning@zendesk.com
|
179
|
+
- gabe@zendesk.com
|
180
|
+
- pschambacher@zendesk.com
|
175
181
|
executables: []
|
176
182
|
extensions: []
|
177
183
|
extra_rdoc_files: []
|