global_uid 2.0.1 → 2.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17d2b7c616ef4289a26cffecd7b21fa5e6f14e06
4
- data.tar.gz: 6a6537a1d7067dc11669f79ac860c1fb0ce6c47c
3
+ metadata.gz: 2f325cebc1181d89219847ff9f174cbeb40de406
4
+ data.tar.gz: c8d665219da03e0617511e3f80f8a7827868d495
5
5
  SHA512:
6
- metadata.gz: 284ec0eee41cd29c7397dee0f88c51d06dbb51c598fa1696868aa22408e8356f3fdccf2bfe795507983d3582e2de7f29f5133aa70ba36090a5a4be43cf97215f
7
- data.tar.gz: dcafe5c29c6cdcff0718abbe4f737f70c9c59d007a6289c2c542bb7c3e882f666d346e7762d82e77225747be0d3487d07f0230728480a7fdc185ac2ac48c84ce
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord