global_uid 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/global_uid/migration_extension.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f325cebc1181d89219847ff9f174cbeb40de406
|
4
|
+
data.tar.gz: c8d665219da03e0617511e3f80f8a7827868d495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb69c8c2235fa511d941437efbd9d22a5cae2019ba786168f6bea886da7a7f9f1a16291d84dc1d270ea4039b90507ec04eeb303efa768e0186e4431fd4c6e50f
|
7
|
+
data.tar.gz: 409cf53d8f1ed676d72fb57cfd4c167ccb3ff38688663e8699f4219574ed2819175837b20b82816a2411057705f727b34741229d6962364fd2e899cae2a26931
|
@@ -16,11 +16,6 @@ module GlobalUid
|
|
16
16
|
options.merge!(:id => false)
|
17
17
|
end
|
18
18
|
|
19
|
-
if uid_enabled
|
20
|
-
id_table_name = options[:global_uid_table] || GlobalUid::Base.id_table_from_name(name)
|
21
|
-
GlobalUid::Base.create_uid_tables(id_table_name, options)
|
22
|
-
end
|
23
|
-
|
24
19
|
create_table_without_global_uid(name, options) { |t|
|
25
20
|
if remove_auto_increment
|
26
21
|
# need to honor specifically named tables
|
@@ -29,6 +24,12 @@ module GlobalUid
|
|
29
24
|
end
|
30
25
|
blk.call(t) if blk
|
31
26
|
}
|
27
|
+
|
28
|
+
if uid_enabled
|
29
|
+
id_table_name = options[:global_uid_table] || GlobalUid::Base.id_table_from_name(name)
|
30
|
+
GlobalUid::Base.create_uid_tables(id_table_name, options)
|
31
|
+
end
|
32
|
+
|
32
33
|
end
|
33
34
|
|
34
35
|
def drop_table_with_global_uid(name, options = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_uid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Osheroff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|