safe-pg-migrations 1.4.1 → 1.4.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5137a033537f088b0a0c3f41dc8b632d5c37ef81cf5ac25bc62d6b01e62c56c
|
|
4
|
+
data.tar.gz: 5f0029750d93bcb04ffcb65e8a8bf0b6a8420ee1f6d7c12a85efac967e3b5c93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afbb64bcc3de2680200ec2cc735b6fa7fc7bb02a71b056be7dcafd3a02a9a11895398632e128ad727e6b089e149ccf75617c5f82674bd1472b16af79c15c0f77
|
|
7
|
+
data.tar.gz: '0946ab447b6c503ff9965f71edba84e973ddc6e5bc658fe9785672d23c3dc6b0ace071e9081727defd8585dba3d6faedb22145bd9fe8c84e0cd735e4ce44457f'
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
module SafePgMigrations
|
|
4
4
|
module LegacyActiveRecordSupport
|
|
5
|
-
ruby2_keywords def validate_foreign_key(
|
|
6
|
-
return super(
|
|
5
|
+
ruby2_keywords def validate_foreign_key(*args)
|
|
6
|
+
return super(*args) if satisfied? '>=6.0.0'
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
from_table, to_table, options = args
|
|
9
|
+
super(from_table, to_table || options)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
|
-
ruby2_keywords def foreign_key_exists?(
|
|
12
|
-
return super(
|
|
12
|
+
ruby2_keywords def foreign_key_exists?(*args)
|
|
13
|
+
return super(*args) if satisfied? '>=6.0.0'
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
from_table, to_table, options = args
|
|
16
|
+
super(from_table, to_table || options)
|
|
15
17
|
end
|
|
16
18
|
|
|
17
19
|
protected
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: safe-pg-migrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthieu Prat
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2022-03-
|
|
13
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|