uniq_identifier 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad54b8fdbf78cc516447c0df9c3e72045633eb4
|
4
|
+
data.tar.gz: ff5326299c07784a10442e873b04410e98d0547e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0066a5862a514bd49bf5bab804c0a7ffc98fc3659e96165505ac171343f4c0d5c6725efa98cf39916f3904530c59c57755889f772008528b7d84aad66ce0cb8a
|
7
|
+
data.tar.gz: 5b07c603673eb742f4b3a2147d10ac4e9b55428241dcd2af11dda3d2d0b863c2534737c8279a59d6a9eb35813358f9d850c18d2009da823c930f96fc9b83fc95
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
class AddUuid<%= class_name %> < ActiveRecord::Migration
|
2
|
+
disable_ddl_transaction!
|
2
3
|
def change
|
3
4
|
change_table(:<%= plural_name %>) do |t|
|
4
|
-
t.string :uuid
|
5
|
+
t.string :uuid, :string, limit: 40
|
5
6
|
end
|
6
|
-
add_index(:<%= plural_name %>, :uuid)
|
7
|
+
add_index(:<%= plural_name %>, :uuid, unique: true)
|
7
8
|
end
|
8
9
|
end
|
data/lib/uniq_identifier.rb
CHANGED