webdack-uuid_migration 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -6
- data/README.md +6 -3
- data/gemfiles/rails61.gemfile +5 -0
- data/lib/webdack/uuid_migration/schema_helpers.rb +1 -1
- data/lib/webdack/uuid_migration/version.rb +1 -1
- data/webdack-uuid_migration.gemspec +1 -3
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ef14eb1022b074c75b7ade13dd9c8e7082ba2b09eb3eeca117af57e531791e
|
4
|
+
data.tar.gz: 6b496e37a98d3efd7d8f3d6654a024e21e810786c10f7298a713e4de770dde8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 439f373570a94d237cd92f86e980fc8d8f21cf1939110be0827915030bd8fc84307b0a9774b85e0a33d474bca12d72b303e3893417fad793e17b8859327d72fa
|
7
|
+
data.tar.gz: 1dcb80f724a2d9b2aefa3b88b1e201dbab2ff89b2ba10c3d852d9d9ccbd3e6efa390fa58c227e546dd3de773e07c3631636ec2378889d4f440b66c7a7fdc384d
|
data/.travis.yml
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
rvm:
|
2
|
-
-
|
3
|
-
- 2.
|
4
|
-
- 2.
|
2
|
+
- 3.0.0
|
3
|
+
- 2.7.2
|
4
|
+
- 2.5.8
|
5
5
|
|
6
6
|
gemfile:
|
7
|
+
- gemfiles/rails61.gemfile
|
7
8
|
- gemfiles/rails60.gemfile
|
8
9
|
- gemfiles/rails52.gemfile
|
9
|
-
- gemfiles/rails51.gemfile
|
10
10
|
- gemfiles/rails42.gemfile
|
11
11
|
|
12
12
|
matrix:
|
13
13
|
exclude:
|
14
|
-
- rvm:
|
15
|
-
gemfile: gemfiles/
|
14
|
+
- rvm: 3.0.0
|
15
|
+
gemfile: gemfiles/rails52.gemfile
|
16
|
+
- rvm: 3.0.0
|
17
|
+
gemfile: gemfiles/rails42.gemfile
|
18
|
+
- rvm: 2.7.2
|
19
|
+
gemfile: gemfiles/rails42.gemfile
|
16
20
|
|
17
21
|
script: bundle exec rspec spec
|
18
22
|
|
data/README.md
CHANGED
@@ -10,16 +10,16 @@ However, there is no reliable tutorial to help convert an in-production Rails ap
|
|
10
10
|
from Integer ids to UUIDs.
|
11
11
|
|
12
12
|
This gem has helper methods to convert Integer columns to UUIDs during migrations.
|
13
|
-
It supports migrating primary key columns, relations, and polymorphic relations
|
13
|
+
It supports migrating primary key columns, relations, and polymorphic relations.
|
14
14
|
|
15
|
-
It is designed to be
|
15
|
+
It is designed to be fast and is suitable for in-place migration of schema and data.
|
16
16
|
It has been used in production since 2014.
|
17
17
|
|
18
18
|
This only supports PostgreSQL.
|
19
19
|
|
20
20
|
## Documentation
|
21
21
|
|
22
|
-
http://www.rubydoc.info/gems/webdack-uuid_migration (
|
22
|
+
http://www.rubydoc.info/gems/webdack-uuid_migration (The link may occasionally not work).
|
23
23
|
|
24
24
|
## Installation
|
25
25
|
|
@@ -157,6 +157,8 @@ Example:
|
|
157
157
|
|
158
158
|
Works with Rails 4.2+, 5 & 6. It uses Rails 4's out-of-the-box UUID support for PostgreSQL.
|
159
159
|
|
160
|
+
Update to latest version (>=1.4.0) for using it with Ruby 3.
|
161
|
+
|
160
162
|
See https://travis-ci.org/kreatio-sw/webdack-uuid_migration for current build matrix.
|
161
163
|
|
162
164
|
To run the test suite:
|
@@ -171,6 +173,7 @@ To run the test suite:
|
|
171
173
|
- [Felix Bünemann](https://github.com/felixbuenemann) for checking compatibility with Rails 4.1
|
172
174
|
- [Nick Schwaderer](https://github.com/Schwad) Rails 5.2.x compatibility
|
173
175
|
- [Kelsey Hannan](https://github.com/KelseyDH) Upgrading to `pgcrypto`
|
176
|
+
- [Sébastien Dubois](https://github.com/sedubois) Ruby 3.0 compatibility
|
174
177
|
|
175
178
|
## Contributing
|
176
179
|
|
@@ -56,7 +56,7 @@ module Webdack
|
|
56
56
|
foreign_key_spec = fk_key_spec.dup
|
57
57
|
from_table = foreign_key_spec.delete(:from_table)
|
58
58
|
to_table = foreign_key_spec.delete(:to_table)
|
59
|
-
add_foreign_key from_table, to_table, foreign_key_spec
|
59
|
+
add_foreign_key from_table, to_table, **foreign_key_spec
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Deepak Kumar"]
|
10
10
|
spec.email = ["deepak@kreatio.com"]
|
11
11
|
spec.summary = %q{Useful helpers to migrate Integer id columns to UUID in PostgreSql.}
|
12
|
-
spec.description = %q{Useful helpers to migrate Integer id columns to UUID in PostgreSql. Special support for primary keys.}
|
12
|
+
spec.description = %q{Useful helpers to consistently migrate Integer id columns to UUID in PostgreSql. Special support for primary keys and references.}
|
13
13
|
spec.homepage = "https://github.com/kreatio-sw/webdack-uuid_migration"
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
@@ -26,6 +26,4 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'gem-release'
|
27
27
|
|
28
28
|
spec.add_dependency 'activerecord', '>= 4.0'
|
29
|
-
|
30
|
-
spec.has_rdoc= 'yard'
|
31
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdack-uuid_migration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Deepak Kumar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,8 +108,8 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '4.0'
|
111
|
-
description: Useful helpers to migrate Integer id columns to UUID in
|
112
|
-
support for primary keys.
|
111
|
+
description: Useful helpers to consistently migrate Integer id columns to UUID in
|
112
|
+
PostgreSql. Special support for primary keys and references.
|
113
113
|
email:
|
114
114
|
- deepak@kreatio.com
|
115
115
|
executables: []
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- gemfiles/rails51.gemfile
|
128
128
|
- gemfiles/rails52.gemfile
|
129
129
|
- gemfiles/rails60.gemfile
|
130
|
+
- gemfiles/rails61.gemfile
|
130
131
|
- lib/webdack/uuid_migration.rb
|
131
132
|
- lib/webdack/uuid_migration/helpers.rb
|
132
133
|
- lib/webdack/uuid_migration/schema_helpers.rb
|
@@ -162,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
163
|
- !ruby/object:Gem::Version
|
163
164
|
version: '0'
|
164
165
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
166
|
+
rubygems_version: 3.1.4
|
166
167
|
signing_key:
|
167
168
|
specification_version: 4
|
168
169
|
summary: Useful helpers to migrate Integer id columns to UUID in PostgreSql.
|