activerecord-pg-extensions 0.5.0 → 0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f00b73b6ca45b6816eb823afa1cb16213baf9a9671d02c5633c4cf07fa92026
|
4
|
+
data.tar.gz: 84f12098d7d3d638671cdbcf32e9e1f4e56ece8b64cc799f167b2eff336cc7dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 414294a360874650bedada98a2ccb4fb73fe8f2eb85d2c020387280dd84739af6807c703c016f4c7027c030ffb2f57cc4a1e493104a08ec79b599993b36f56c1
|
7
|
+
data.tar.gz: 8333b90a0265330c6f9f99d8826839003086816726f041e685916254de9cecd89db4ee2b9815975080b40cdd9be784ddd24d1f96322a8bba12c6971c2f91f3a6
|
@@ -96,8 +96,8 @@ module ActiveRecord
|
|
96
96
|
end
|
97
97
|
|
98
98
|
if ActiveRecord.version < Gem::Version.new("7.1")
|
99
|
-
def remove_check_constraint(table_name, expression = nil, **options)
|
100
|
-
return if
|
99
|
+
def remove_check_constraint(table_name, expression = nil, if_exists: false, **options)
|
100
|
+
return if if_exists && !check_constraint_for(table_name, expression, **options)
|
101
101
|
|
102
102
|
super
|
103
103
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-pg-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|