uuid_migrations 0.2.0 → 0.2.1

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: 6042d5733037b0c09e2e64258c3600f7331e9563d39cc04046634407113c4c80
4
+ data.tar.gz: a172ff865f8a11d1d659a5aa43d292b6bf4560e5a0364081077db01817c13c2b
5
5
  SHA512:
6
- metadata.gz: 930ca688a3614b8f7b93465667c6de5a46caf9ffd8dd0e54dc820282583aa34c45087fa3fd6a8a030b98533e2414acd42c3daf959884dbc5cb407f31e471f805
7
- data.tar.gz: 43d091cf8c8fd0762ca1a5c925a07bda076d2d9ed0fd8552cd78567c99ce5345e272c76cc6031198fa68aa4d4af180d0b0f0eb4f5b57fc66e8f122108ef85c7e
6
+ metadata.gz: f7b2c6927d5f6ed4babe827b707d79e94d678fcbdc48fe7999c80e882810fde4331dea076e07019db90a70def50378fc5ef8033301a5ac9759a70217424c08e8
7
+ data.tar.gz: 4fde7e5bd8896678628924a4675008f158ed60dd3342ce6a3cda5f3da5c464a6f107f6acfebe4a8f3deeb873685b9bd7dbe0d4956e11a5eaddb17a26d8179b35
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2024-05-24
3
+ ## [0.2.1] - 2024-05-24
4
4
 
5
- - Initial release
5
+ - Fix bug on schema load
6
6
 
7
- ## [0.2.1] - 2024-05-24
7
+ ## [0.2.0] - 2024-05-24
8
8
 
9
- - Adding `UuidMigrations.start_with` option
9
+ - Adding `UuidMigrations.start_with` option
10
+
11
+ ## [0.1.0] - 2024-05-24
12
+
13
+ - 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.1"
5
5
  end
@@ -6,7 +6,7 @@ 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
11
  td.column(:uuid, :uuid, default: -> { "gen_random_uuid()" }) if td[:uuid].blank?
12
12
  td
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hallelujah