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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91380dc0c6b33e0413b1e1f7ce768adb10b4c36f811eaad40482bbe85ceb8f41
4
- data.tar.gz: a66d3cc80e2d336458cb9d70014afb67c202dee58213e3f6700ba5874398e9b3
3
+ metadata.gz: d4173031c3dfc691fa4a2a294191561958658388f9ffeac7a3d7063b6d4b1b18
4
+ data.tar.gz: 202dad22a7c7772c656c3b1ece839c903cd962905bbbe1cd859fa3946bc81fb1
5
5
  SHA512:
6
- metadata.gz: 930ca688a3614b8f7b93465667c6de5a46caf9ffd8dd0e54dc820282583aa34c45087fa3fd6a8a030b98533e2414acd42c3daf959884dbc5cb407f31e471f805
7
- data.tar.gz: 43d091cf8c8fd0762ca1a5c925a07bda076d2d9ed0fd8552cd78567c99ce5345e272c76cc6031198fa68aa4d4af180d0b0f0eb4f5b57fc66e8f122108ef85c7e
6
+ metadata.gz: 99d21c4a77a53a135b8f3945a805390807df015d3c4a50e63f531da96ce32b6065f009a0052aa94dff1f928184fc447ca08a2851c53b89b3f00c190012339b5e
7
+ data.tar.gz: 1f168f981119c011ee27804598dc749dd4ad0f234cb540c71c750912cf520b6ae6cde3a57529c486a0306c6115861974dffe0d74194dbe258a4f60d3af5dccf2
data/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2024-05-24
3
+ ## [0.2.2] - 2024-05-25
4
4
 
5
- - Initial release
5
+ - uuid column must not be null
6
6
 
7
7
  ## [0.2.1] - 2024-05-24
8
8
 
9
- - Adding `UuidMigrations.start_with` option
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidMigrations
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
@@ -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.0
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: