uuid_migrations 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -3
- data/lib/uuid_migrations/version.rb +1 -1
- data/lib/uuid_migrations.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4173031c3dfc691fa4a2a294191561958658388f9ffeac7a3d7063b6d4b1b18
|
4
|
+
data.tar.gz: 202dad22a7c7772c656c3b1ece839c903cd962905bbbe1cd859fa3946bc81fb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99d21c4a77a53a135b8f3945a805390807df015d3c4a50e63f531da96ce32b6065f009a0052aa94dff1f928184fc447ca08a2851c53b89b3f00c190012339b5e
|
7
|
+
data.tar.gz: 1f168f981119c011ee27804598dc749dd4ad0f234cb540c71c750912cf520b6ae6cde3a57529c486a0306c6115861974dffe0d74194dbe258a4f60d3af5dccf2
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
-
## [0.
|
3
|
+
## [0.2.2] - 2024-05-25
|
4
4
|
|
5
|
-
-
|
5
|
+
- uuid column must not be null
|
6
6
|
|
7
7
|
## [0.2.1] - 2024-05-24
|
8
8
|
|
9
|
-
-
|
9
|
+
- Fix bug on schema load
|
10
|
+
|
11
|
+
## [0.2.0] - 2024-05-24
|
12
|
+
|
13
|
+
- Adding `UuidMigrations.start_with` option
|
14
|
+
|
15
|
+
## [0.1.0] - 2024-05-24
|
16
|
+
|
17
|
+
- Initial release
|
data/lib/uuid_migrations.rb
CHANGED
@@ -6,9 +6,9 @@ module UuidMigrations
|
|
6
6
|
mattr_accessor :start_with
|
7
7
|
|
8
8
|
def add_uuid_column(td)
|
9
|
-
return td if UuidMigrations.start_with.present? && version < UuidMigrations.start_with
|
9
|
+
return td if version.blank? || (UuidMigrations.start_with.present? && version < UuidMigrations.start_with)
|
10
10
|
|
11
|
-
td.column(:uuid, :uuid, default: -> { "gen_random_uuid()" }) if td[:uuid].blank?
|
11
|
+
td.column(:uuid, :uuid, default: -> { "gen_random_uuid()" }, null: false) if td[:uuid].blank?
|
12
12
|
td
|
13
13
|
end
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uuid_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hallelujah
|
@@ -50,7 +50,7 @@ metadata:
|
|
50
50
|
allowed_push_host: https://rubygems.org
|
51
51
|
homepage_uri: https://github.com/propitech/uuid_migrations
|
52
52
|
source_code_uri: https://github.com/propitech/uuid_migrations
|
53
|
-
changelog_uri: https://github.com/propitech/uuid_migrations/tree/master/
|
53
|
+
changelog_uri: https://github.com/propitech/uuid_migrations/tree/master/CHANGELOG.md
|
54
54
|
post_install_message:
|
55
55
|
rdoc_options: []
|
56
56
|
require_paths:
|