webdack-uuid_migration 1.0.2 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +20 -11
- data/README.md +45 -14
- data/gemfiles/rails42.gemfile +8 -0
- data/gemfiles/rails50.gemfile +5 -0
- data/gemfiles/rails51.gemfile +5 -0
- data/gemfiles/rails52.gemfile +5 -0
- data/gemfiles/rails60.gemfile +5 -0
- data/gemfiles/rails61.gemfile +5 -0
- data/lib/webdack/uuid_migration/helpers.rb +5 -4
- data/lib/webdack/uuid_migration/schema_helpers.rb +17 -8
- data/lib/webdack/uuid_migration/version.rb +1 -1
- data/spec/schema_helper_spec.rb +4 -4
- data/spec/spec_helper.rb +12 -0
- data/spec/uuid_custom_pk_spec.rb +7 -7
- data/spec/uuid_migrate_helper_spec.rb +11 -11
- data/webdack-uuid_migration.gemspec +2 -4
- metadata +15 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
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/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,15 +1,24 @@
|
|
1
1
|
rvm:
|
2
|
-
-
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.2.0
|
6
|
-
- 2.3.1
|
7
|
-
- rbx-2
|
8
|
-
- jruby
|
9
|
-
- ruby-head
|
2
|
+
- 3.0.0
|
3
|
+
- 2.7.2
|
4
|
+
- 2.5.8
|
10
5
|
|
11
|
-
|
6
|
+
gemfile:
|
7
|
+
- gemfiles/rails61.gemfile
|
8
|
+
- gemfiles/rails60.gemfile
|
9
|
+
- gemfiles/rails52.gemfile
|
10
|
+
- gemfiles/rails42.gemfile
|
12
11
|
|
13
12
|
matrix:
|
14
|
-
|
15
|
-
- rvm:
|
13
|
+
exclude:
|
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
|
20
|
+
|
21
|
+
script: bundle exec rspec spec
|
22
|
+
|
23
|
+
addons:
|
24
|
+
postgresql: "9.4"
|
data/README.md
CHANGED
@@ -2,35 +2,58 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/kreatio-sw/webdack-uuid_migration.svg?branch=master)](https://travis-ci.org/kreatio-sw/webdack-uuid_migration)
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
**This project is actively maintained. Please report issues and/or create
|
6
|
+
pull requests if you face any issues.**
|
7
|
+
|
8
|
+
There are plenty of tutorials around the web on how to use UUIDs with Rails.
|
9
|
+
However, there is no reliable tutorial to help convert an in-production Rails application
|
10
|
+
from Integer ids to UUIDs.
|
11
|
+
|
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.
|
14
|
+
|
15
|
+
It is designed to be fast and is suitable for in-place migration of schema and data.
|
16
|
+
It has been used in production since 2014.
|
17
|
+
|
18
|
+
This only supports PostgreSQL.
|
19
|
+
|
20
|
+
## Documentation
|
21
|
+
|
22
|
+
http://www.rubydoc.info/gems/webdack-uuid_migration (The link may occasionally not work).
|
7
23
|
|
8
24
|
## Installation
|
9
25
|
|
10
26
|
Add this line to your application's Gemfile:
|
11
27
|
|
28
|
+
```ruby
|
12
29
|
gem 'webdack-uuid_migration'
|
30
|
+
```
|
13
31
|
|
14
32
|
And then execute:
|
15
33
|
|
34
|
+
```bash
|
16
35
|
$ bundle
|
36
|
+
```
|
17
37
|
|
18
38
|
Or install it yourself as:
|
19
39
|
|
40
|
+
```bash
|
20
41
|
$ gem install webdack-uuid_migration
|
21
|
-
|
22
|
-
|
23
|
-
|
42
|
+
```
|
43
|
+
|
44
|
+
This gem is needed only during database migrations.
|
45
|
+
Once the database has been migrated in all environments,
|
24
46
|
this gem can safely be removed from your applications Gemfile.
|
25
47
|
|
26
48
|
## Usage
|
27
49
|
|
28
50
|
- Put `require 'webdack/uuid_migration/helpers'` in your migration file.
|
29
|
-
- Enable `'
|
51
|
+
- Enable `'pgcrypto'` directly in Postgres database or by adding `enable_extension 'pgcrypto'` to your migration.
|
30
52
|
- Use methods from {Webdack::UUIDMigration::Helpers} as appropriate.
|
31
53
|
|
32
54
|
Example:
|
33
55
|
|
56
|
+
```ruby
|
34
57
|
# You must explicitly require it in your migration file
|
35
58
|
require 'webdack/uuid_migration/helpers'
|
36
59
|
|
@@ -40,7 +63,7 @@ Example:
|
|
40
63
|
dir.up do
|
41
64
|
# Good idea to do the following, needs superuser rights in the database
|
42
65
|
# Alternatively the extension needs to be manually enabled in the RDBMS
|
43
|
-
enable_extension '
|
66
|
+
enable_extension 'pgcrypto'
|
44
67
|
|
45
68
|
primary_key_to_uuid :students
|
46
69
|
|
@@ -55,6 +78,7 @@ Example:
|
|
55
78
|
end
|
56
79
|
end
|
57
80
|
end
|
81
|
+
```
|
58
82
|
|
59
83
|
Integer values are converted to UUID by padding 0's to the left. This makes it possible to
|
60
84
|
retrieve old id in future.
|
@@ -66,15 +90,17 @@ into {ActiveRecord::Migration}, so that all methods can directly be used within
|
|
66
90
|
|
67
91
|
Please see [https://github.com/kreatio-sw/webdack-uuid_migration/issues/4]
|
68
92
|
|
93
|
+
This function will only work with Rails 4.2 or newer.
|
94
|
+
|
69
95
|
To update a primary key and all columns referencing it please use
|
70
96
|
{Webdack::UUIDMigration::Helpers#primary_key_and_all_references_to_uuid}. For example:
|
71
97
|
|
72
|
-
```
|
98
|
+
```ruby
|
73
99
|
class MigrateWithFk < ActiveRecord::Migration
|
74
100
|
def change
|
75
101
|
reversible do |dir|
|
76
102
|
dir.up do
|
77
|
-
enable_extension '
|
103
|
+
enable_extension 'pgcrypto'
|
78
104
|
|
79
105
|
primary_key_and_all_references_to_uuid :cities
|
80
106
|
end
|
@@ -109,6 +135,7 @@ following steps:
|
|
109
135
|
|
110
136
|
Example:
|
111
137
|
|
138
|
+
```ruby
|
112
139
|
# Student -- belongs_to :institution, :polymorphic => true
|
113
140
|
# An institution is either a School or a College
|
114
141
|
# College is migrated to use UUID as primary key
|
@@ -124,14 +151,15 @@ Example:
|
|
124
151
|
columns_to_uuid :students, :institution_id
|
125
152
|
|
126
153
|
# See the rspec test case in spec folder for full example
|
127
|
-
|
154
|
+
```
|
128
155
|
|
129
156
|
## Compatibility
|
130
157
|
|
131
|
-
Works
|
132
|
-
|
133
|
-
|
134
|
-
|
158
|
+
Works with Rails 4.2+, 5 & 6. It uses Rails 4's out-of-the-box UUID support for PostgreSQL.
|
159
|
+
|
160
|
+
Update to latest version (>=1.4.0) for using it with Ruby 3.
|
161
|
+
|
162
|
+
See https://travis-ci.org/kreatio-sw/webdack-uuid_migration for current build matrix.
|
135
163
|
|
136
164
|
To run the test suite:
|
137
165
|
|
@@ -143,6 +171,9 @@ To run the test suite:
|
|
143
171
|
|
144
172
|
- Users of the Gem
|
145
173
|
- [Felix Bünemann](https://github.com/felixbuenemann) for checking compatibility with Rails 4.1
|
174
|
+
- [Nick Schwaderer](https://github.com/Schwad) Rails 5.2.x compatibility
|
175
|
+
- [Kelsey Hannan](https://github.com/KelseyDH) Upgrading to `pgcrypto`
|
176
|
+
- [Sébastien Dubois](https://github.com/sedubois) Ruby 3.0 compatibility
|
146
177
|
|
147
178
|
## Contributing
|
148
179
|
|
@@ -7,16 +7,16 @@ module Webdack
|
|
7
7
|
|
8
8
|
|
9
9
|
# Converts primary key from Serial Integer to UUID, migrates all data by left padding with 0's
|
10
|
-
# sets
|
10
|
+
# sets gen_random_uuid() as default for the column
|
11
11
|
#
|
12
12
|
# @param table [Symbol]
|
13
13
|
# @param options [hash]
|
14
14
|
# @option options [Symbol] :primary_key if not supplied queries the schema (should work most of the times)
|
15
|
-
# @option options [String] :default mechanism to generate UUID for new records, default
|
15
|
+
# @option options [String] :default mechanism to generate UUID for new records, default gen_random_uuid(),
|
16
16
|
# which is Rails 4.0.0 default as well
|
17
17
|
# @return [none]
|
18
18
|
def primary_key_to_uuid(table, options={})
|
19
|
-
default= options[:default] || '
|
19
|
+
default= options[:default] || 'gen_random_uuid()'
|
20
20
|
|
21
21
|
column= connection.primary_key(table)
|
22
22
|
|
@@ -88,8 +88,9 @@ module Webdack
|
|
88
88
|
# - Restore all foreign keys
|
89
89
|
#
|
90
90
|
# @param table[Symbol]
|
91
|
+
# @note Works only with Rails 4.2 or newer
|
91
92
|
def primary_key_and_all_references_to_uuid(table)
|
92
|
-
fk_specs = foreign_keys_into(
|
93
|
+
fk_specs = foreign_keys_into(table)
|
93
94
|
|
94
95
|
drop_foreign_keys(fk_specs)
|
95
96
|
|
@@ -5,13 +5,14 @@ module Webdack
|
|
5
5
|
to_primary_key = primary_key(to_table_name)
|
6
6
|
|
7
7
|
|
8
|
-
fk_info = select_all <<-SQL
|
9
|
-
SELECT t2.oid::regclass::text AS to_table, a2.attname AS primary_key, t1.relname as from_table, a1.attname AS column, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
8
|
+
fk_info = select_all <<-SQL
|
9
|
+
SELECT t2.oid::regclass::text AS to_table, a2.attname AS primary_key, t1.relname as from_table, a1.attname AS column, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
10
|
+
FROM pg_constraint c
|
11
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
12
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
13
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
14
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
15
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
15
16
|
WHERE c.contype = 'f'
|
16
17
|
AND t2.oid::regclass::text = #{quote(to_table_name)}
|
17
18
|
AND a2.attname = #{quote(to_primary_key)}
|
@@ -33,6 +34,14 @@ module Webdack
|
|
33
34
|
options
|
34
35
|
end
|
35
36
|
end
|
37
|
+
|
38
|
+
def extract_foreign_key_action(specifier)
|
39
|
+
case specifier
|
40
|
+
when "c"; :cascade
|
41
|
+
when "n"; :nullify
|
42
|
+
when "r"; :restrict
|
43
|
+
end
|
44
|
+
end
|
36
45
|
|
37
46
|
def drop_foreign_keys(foreign_keys)
|
38
47
|
foreign_keys.each do |fk_key_spec|
|
@@ -47,7 +56,7 @@ module Webdack
|
|
47
56
|
foreign_key_spec = fk_key_spec.dup
|
48
57
|
from_table = foreign_key_spec.delete(:from_table)
|
49
58
|
to_table = foreign_key_spec.delete(:to_table)
|
50
|
-
add_foreign_key from_table, to_table, foreign_key_spec
|
59
|
+
add_foreign_key from_table, to_table, **foreign_key_spec
|
51
60
|
end
|
52
61
|
end
|
53
62
|
end
|
data/spec/schema_helper_spec.rb
CHANGED
@@ -4,7 +4,7 @@ ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do
|
|
4
4
|
include Webdack::UUIDMigration::SchemaHelpers
|
5
5
|
end
|
6
6
|
|
7
|
-
describe Webdack::UUIDMigration::SchemaHelpers do
|
7
|
+
describe Webdack::UUIDMigration::SchemaHelpers, rails_4_2_or_newer: true do
|
8
8
|
def initial_setup
|
9
9
|
init_database
|
10
10
|
create_initial_schema
|
@@ -25,25 +25,25 @@ describe Webdack::UUIDMigration::SchemaHelpers do
|
|
25
25
|
it 'should get all foreign keys into a table' do
|
26
26
|
foreign_keys_into = @connection.foreign_keys_into(:cities)
|
27
27
|
|
28
|
+
# Remove column :name from the FK info
|
29
|
+
foreign_keys_into = foreign_keys_into.map { |i| i.delete(:name); i }
|
30
|
+
|
28
31
|
expect(foreign_keys_into).to eq([{:to_table => "cities",
|
29
32
|
:primary_key => "id",
|
30
33
|
:from_table => "dummy01",
|
31
34
|
:column => "city_id",
|
32
|
-
:name => "fk_rails_d0b87897d5",
|
33
35
|
:on_delete => :nullify,
|
34
36
|
:on_update => :cascade},
|
35
37
|
{:to_table => "cities",
|
36
38
|
:primary_key => "id",
|
37
39
|
:from_table => "dummy02",
|
38
40
|
:column => "city_id",
|
39
|
-
:name => "fk_rails_bc0a81611b",
|
40
41
|
:on_delete => :restrict,
|
41
42
|
:on_update => :restrict},
|
42
43
|
{:to_table => "cities",
|
43
44
|
:primary_key => "id",
|
44
45
|
:from_table => "students",
|
45
46
|
:column => "city_id",
|
46
|
-
:name => "fk_rails_c4b8171c0a",
|
47
47
|
:on_delete => nil,
|
48
48
|
:on_update => nil}])
|
49
49
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -6,3 +6,15 @@ require 'pg'
|
|
6
6
|
require 'webdack/uuid_migration/helpers'
|
7
7
|
|
8
8
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
9
|
+
|
10
|
+
RSpec.configure do |c|
|
11
|
+
if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new('4.2')
|
12
|
+
c.filter_run_excluding rails_4_2_or_newer: true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
ActiveRecordMigration = if ActiveRecord.version >= Gem::Version.new('5.0.0')
|
17
|
+
ActiveRecord::Migration[5.0]
|
18
|
+
else
|
19
|
+
ActiveRecord::Migration
|
20
|
+
end
|
data/spec/uuid_custom_pk_spec.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require_relative 'spec_helper'
|
2
2
|
|
3
|
-
class MigrationBase <
|
3
|
+
class MigrationBase < ActiveRecordMigration
|
4
4
|
def change
|
5
5
|
create_table :states, primary_key: :stateid do |t|
|
6
6
|
t.string :name
|
7
7
|
end
|
8
8
|
|
9
|
-
enable_extension '
|
9
|
+
enable_extension 'pgcrypto'
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
class Migration01 <
|
13
|
+
class Migration01 < ActiveRecordMigration
|
14
14
|
def change
|
15
15
|
reversible do |dir|
|
16
16
|
dir.up do
|
@@ -24,7 +24,7 @@ class Migration01 < ActiveRecord::Migration
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
class Migration02 <
|
27
|
+
class Migration02 < ActiveRecordMigration
|
28
28
|
def change
|
29
29
|
reversible do |dir|
|
30
30
|
dir.up do
|
@@ -38,11 +38,11 @@ class Migration02 < ActiveRecord::Migration
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
class Migration03 <
|
41
|
+
class Migration03 < ActiveRecordMigration
|
42
42
|
def change
|
43
43
|
reversible do |dir|
|
44
44
|
dir.up do
|
45
|
-
primary_key_to_uuid :states, default: '
|
45
|
+
primary_key_to_uuid :states, default: 'gen_random_uuid()'
|
46
46
|
end
|
47
47
|
|
48
48
|
dir.down do
|
@@ -111,7 +111,7 @@ describe Webdack::UUIDMigration::Helpers do
|
|
111
111
|
}
|
112
112
|
|
113
113
|
default_function = State.connection.columns(:states).find { |c| c.name == 'stateid' }.default_function
|
114
|
-
expect(default_function).to eq '
|
114
|
+
expect(default_function).to eq 'gen_random_uuid()'
|
115
115
|
end
|
116
116
|
|
117
117
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require_relative 'spec_helper'
|
2
2
|
|
3
|
-
class BasicMigration <
|
3
|
+
class BasicMigration < ActiveRecordMigration
|
4
4
|
def change
|
5
5
|
reversible do |dir|
|
6
6
|
dir.up do
|
7
|
-
enable_extension '
|
7
|
+
enable_extension 'pgcrypto'
|
8
8
|
|
9
9
|
primary_key_to_uuid :students
|
10
10
|
columns_to_uuid :students, :city_id, :institution_id
|
@@ -17,11 +17,11 @@ class BasicMigration < ActiveRecord::Migration
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
class MigrateAllOneGo <
|
20
|
+
class MigrateAllOneGo < ActiveRecordMigration
|
21
21
|
def change
|
22
22
|
reversible do |dir|
|
23
23
|
dir.up do
|
24
|
-
enable_extension '
|
24
|
+
enable_extension 'pgcrypto'
|
25
25
|
|
26
26
|
primary_key_to_uuid :cities
|
27
27
|
primary_key_to_uuid :colleges
|
@@ -38,11 +38,11 @@ class MigrateAllOneGo < ActiveRecord::Migration
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
class MigrateWithFk <
|
41
|
+
class MigrateWithFk < ActiveRecordMigration
|
42
42
|
def change
|
43
43
|
reversible do |dir|
|
44
44
|
dir.up do
|
45
|
-
enable_extension '
|
45
|
+
enable_extension 'pgcrypto'
|
46
46
|
|
47
47
|
primary_key_and_all_references_to_uuid :cities
|
48
48
|
end
|
@@ -54,11 +54,11 @@ class MigrateWithFk < ActiveRecord::Migration
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
class MigrateStep01 <
|
57
|
+
class MigrateStep01 < ActiveRecordMigration
|
58
58
|
def change
|
59
59
|
reversible do |dir|
|
60
60
|
dir.up do
|
61
|
-
enable_extension '
|
61
|
+
enable_extension 'pgcrypto'
|
62
62
|
|
63
63
|
primary_key_to_uuid :cities
|
64
64
|
primary_key_to_uuid :colleges
|
@@ -77,7 +77,7 @@ class MigrateStep01 < ActiveRecord::Migration
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
class MigrateStep02 <
|
80
|
+
class MigrateStep02 < ActiveRecordMigration
|
81
81
|
def change
|
82
82
|
reversible do |dir|
|
83
83
|
dir.up do
|
@@ -157,7 +157,7 @@ describe Webdack::UUIDMigration::Helpers do
|
|
157
157
|
end
|
158
158
|
|
159
159
|
# Verify that primary key has correct default
|
160
|
-
expect(columns.find{|c| c.name == 'id'}.default_function).to eq '
|
160
|
+
expect(columns.find{|c| c.name == 'id'}.default_function).to eq 'gen_random_uuid()'
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
@@ -170,7 +170,7 @@ describe Webdack::UUIDMigration::Helpers do
|
|
170
170
|
}
|
171
171
|
end
|
172
172
|
|
173
|
-
it 'should migrate a primary key and all columns referencing it using foreign keys' do
|
173
|
+
it 'should migrate a primary key and all columns referencing it using foreign keys', rails_4_2_or_newer: true do
|
174
174
|
# Create 2 more tables similar to the way new version of Rails will do
|
175
175
|
create_tables_with_fk
|
176
176
|
|
@@ -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
|
|
@@ -22,10 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "yard"
|
24
24
|
spec.add_development_dependency "rspec"
|
25
|
-
spec.add_development_dependency "pg"
|
25
|
+
spec.add_development_dependency "pg", '< 2.0'
|
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.0
|
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
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: pg
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "<"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '2.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "<"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: gem-release
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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: []
|
@@ -122,6 +122,12 @@ files:
|
|
122
122
|
- LICENSE.txt
|
123
123
|
- README.md
|
124
124
|
- Rakefile
|
125
|
+
- gemfiles/rails42.gemfile
|
126
|
+
- gemfiles/rails50.gemfile
|
127
|
+
- gemfiles/rails51.gemfile
|
128
|
+
- gemfiles/rails52.gemfile
|
129
|
+
- gemfiles/rails60.gemfile
|
130
|
+
- gemfiles/rails61.gemfile
|
125
131
|
- lib/webdack/uuid_migration.rb
|
126
132
|
- lib/webdack/uuid_migration/helpers.rb
|
127
133
|
- lib/webdack/uuid_migration/schema_helpers.rb
|
@@ -157,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
163
|
- !ruby/object:Gem::Version
|
158
164
|
version: '0'
|
159
165
|
requirements: []
|
160
|
-
|
161
|
-
rubygems_version: 2.5.1
|
166
|
+
rubygems_version: 3.1.4
|
162
167
|
signing_key:
|
163
168
|
specification_version: 4
|
164
169
|
summary: Useful helpers to migrate Integer id columns to UUID in PostgreSql.
|