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: 36ff139014c4b0b2288bf7839ff1f5d87ee596edb2f7f758f4eb66e2513b6479
4
- data.tar.gz: 9880dd828e1d1d216e5797d8d94450b6f0fb41b01d32af31554f511f352c86c3
3
+ metadata.gz: 33e9819bdc74cc2783fd5a98746354d8ab13295e66c239eb04bb240b365b829d
4
+ data.tar.gz: 4d93cb57f18d3becc1b988ab1aa3b4e6b98959649642583d5d0a5fbb09c3eb5a
5
5
  SHA512:
6
- metadata.gz: f7f15fbbf3b6475a894dc44d27380bdb141f25552d3c618550ab508e7e5d59d88b2d0dba297f40ca1d4ef030811942c00308674bdff89ac92a1a78a8c4d125a8
7
- data.tar.gz: 69c17fc5576db6f1205b2a4819a87a26ac09fc3d98e43061e556cfb6b115d53e4ed326038632e2c2a219507e447e3e3d3199e879dbc97273c84227d25e2da27a
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
- temp_constraint_name = "chk_rails_#{table}_#{column}_not_null"
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")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module PGExtensions
5
- VERSION = "0.4.2"
5
+ VERSION = "0.4.3"
6
6
  end
7
7
  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.4.2
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: 2021-10-07 00:00:00.000000000 Z
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.2.24
209
+ rubygems_version: 3.1.4
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Several extensions to ActiveRecord's PostgreSQLAdapter.