uuid_migrations 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: 6042d5733037b0c09e2e64258c3600f7331e9563d39cc04046634407113c4c80
4
- data.tar.gz: a172ff865f8a11d1d659a5aa43d292b6bf4560e5a0364081077db01817c13c2b
3
+ metadata.gz: d4173031c3dfc691fa4a2a294191561958658388f9ffeac7a3d7063b6d4b1b18
4
+ data.tar.gz: 202dad22a7c7772c656c3b1ece839c903cd962905bbbe1cd859fa3946bc81fb1
5
5
  SHA512:
6
- metadata.gz: f7b2c6927d5f6ed4babe827b707d79e94d678fcbdc48fe7999c80e882810fde4331dea076e07019db90a70def50378fc5ef8033301a5ac9759a70217424c08e8
7
- data.tar.gz: 4fde7e5bd8896678628924a4675008f158ed60dd3342ce6a3cda5f3da5c464a6f107f6acfebe4a8f3deeb873685b9bd7dbe0d4956e11a5eaddb17a26d8179b35
6
+ metadata.gz: 99d21c4a77a53a135b8f3945a805390807df015d3c4a50e63f531da96ce32b6065f009a0052aa94dff1f928184fc447ca08a2851c53b89b3f00c190012339b5e
7
+ data.tar.gz: 1f168f981119c011ee27804598dc749dd4ad0f234cb540c71c750912cf520b6ae6cde3a57529c486a0306c6115861974dffe0d74194dbe258a4f60d3af5dccf2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.2] - 2024-05-25
4
+
5
+ - uuid column must not be null
6
+
3
7
  ## [0.2.1] - 2024-05-24
4
8
 
5
9
  - Fix bug on schema load
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidMigrations
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
@@ -8,7 +8,7 @@ module UuidMigrations
8
8
  def add_uuid_column(td)
9
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.1
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/Changelog.md
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: