File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 84
84
85
85
services :
86
86
postgres :
87
- image : postgres:10
87
+ image : postgres:11
88
88
env :
89
89
POSTGRES_PASSWORD : postgres
90
90
POSTGRES_HOST_AUTH_METHOD : trust
@@ -211,7 +211,7 @@ jobs:
211
211
212
212
services :
213
213
postgres :
214
- image : postgres:10
214
+ image : postgres:11
215
215
env :
216
216
POSTGRES_PASSWORD : postgres
217
217
POSTGRES_HOST_AUTH_METHOD : trust
Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ def supports_insert_on_conflict?
232
232
alias supports_insert_on_duplicate_update? supports_insert_on_conflict?
233
233
alias supports_insert_conflict_target? supports_insert_on_conflict?
234
234
235
+ def supports_identity_columns? # :nodoc:
236
+ database_version >= 10_00_00 # >= 10.0
237
+ end
238
+
235
239
def index_algorithms
236
240
{ concurrently : 'CONCURRENTLY' }
237
241
end
Original file line number Diff line number Diff line change @@ -81,16 +81,18 @@ def self.down
81
81
end
82
82
end
83
83
84
- class SerialWithTrigger < ActiveRecord ::Base ;
84
+ class SerialWithTrigger < ActiveRecord ::Base
85
85
self . table_name = 'serials'
86
86
self . primary_key = :sid
87
87
end
88
88
89
- test 'serial with trigger' do
90
- sn = SerialWithTrigger . create! :value => 1234567890 . to_s
89
+ def test_serial_with_trigger
90
+ pend "Issue happens in active record 7.1 internals, issue wass logged in rails repo"
91
+ # issue link: https://github.com/rails/rails/issues/52485
92
+
93
+ sn = SerialWithTrigger . create! ( value : 1_234_567_890 . to_s )
91
94
92
95
assert sn . reload
93
96
SerialWithTrigger . columns
94
97
end
95
-
96
98
end
You can’t perform that action at this time.
0 commit comments