activerecord-pg-extensions 0.4.2 → 0.4.3
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: 33e9819bdc74cc2783fd5a98746354d8ab13295e66c239eb04bb240b365b829d
|
4
|
+
data.tar.gz: 4d93cb57f18d3becc1b988ab1aa3b4e6b98959649642583d5d0a5fbb09c3eb5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b9849e30f65df38b23e3ce1a9290875037bf4f2af7489f30f18ae9e242440c9dbbe98e35017599d85ac5431858044db346f83a972ffea6af7000e9fdeba67c
|
7
|
+
data.tar.gz: b472403821b0b83a5e9e5010a01bd9677b3af11e9cadaac9b7bc78570fcb65a2b746654075ddca60c4505092255269f6af78d801ba1758a1b5c8d295e156fff0
|
@@ -12,7 +12,8 @@ module ActiveRecord
|
|
12
12
|
return super if nullness != false || open_transactions.positive?
|
13
13
|
return if columns(table).find { |c| c.name == column.to_s }&.null == false
|
14
14
|
|
15
|
-
|
15
|
+
# PG identifiers max out at 63 characters
|
16
|
+
temp_constraint_name = "chk_rails_#{table}_#{column}_not_null"[0...63]
|
16
17
|
scope = quoted_scope(temp_constraint_name)
|
17
18
|
# check for temp constraint
|
18
19
|
valid = select_value(<<~SQL, "SCHEMA")
|
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.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
rubygems_version: 3.
|
209
|
+
rubygems_version: 3.1.4
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: Several extensions to ActiveRecord's PostgreSQLAdapter.
|