activerecord-pg-extensions 0.5.1 → 0.5.2

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: 2f00b73b6ca45b6816eb823afa1cb16213baf9a9671d02c5633c4cf07fa92026
4
- data.tar.gz: 84f12098d7d3d638671cdbcf32e9e1f4e56ece8b64cc799f167b2eff336cc7dd
3
+ metadata.gz: 76b26256a900d896712a2a43efa814c763713055ebdd211b297e03d7c692804b
4
+ data.tar.gz: 041a0b3f8c943c47133b45d837128ccd5ba59f7329ce53ca92effbfee85d9f63
5
5
  SHA512:
6
- metadata.gz: 414294a360874650bedada98a2ccb4fb73fe8f2eb85d2c020387280dd84739af6807c703c016f4c7027c030ffb2f57cc4a1e493104a08ec79b599993b36f56c1
7
- data.tar.gz: 8333b90a0265330c6f9f99d8826839003086816726f041e685916254de9cecd89db4ee2b9815975080b40cdd9be784ddd24d1f96322a8bba12c6971c2f91f3a6
6
+ metadata.gz: 2fafc2346380c64d7a324efee4169912fa87cf088142007d5fb4d13ea2a7f783d6374473a3a51710685204e00e4dde7e4ec895e6bd1daab869087dd8fa89c2a6
7
+ data.tar.gz: c984f81a6faccbf6d8634051703647816811b6c8fb4aa827c2a70f05964e6583f8a2abbf69d5f083af4e9eee5cd2c22a4e898a43613c36e99263f39b809e7154
@@ -90,14 +90,16 @@ module ActiveRecord
90
90
  end
91
91
 
92
92
  def add_check_constraint(table_name, expression, if_not_exists: false, **options)
93
- return if if_not_exists && check_constraint_for(table_name, expression, **options)
93
+ options = check_constraint_options(table_name, expression, options)
94
+ return if if_not_exists && check_constraint_for(table_name, **options)
94
95
 
95
96
  super
96
97
  end
97
98
 
98
99
  if ActiveRecord.version < Gem::Version.new("7.1")
99
100
  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
+ options = check_constraint_options(table_name, expression, options)
102
+ return if if_exists && !check_constraint_for(table_name, **options)
101
103
 
102
104
  super
103
105
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module PGExtensions
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-pg-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer