Skip to content

Commit

Permalink
Fix boot up postgres rails tests, add undefined method `supports_iden…
Browse files Browse the repository at this point in the history
…tity_columns?'

NoMethodError: undefined method `supports_identity_columns?' for #<ActiveRecord::Schema:0x2cc82c83>
         method_missing at /home/jessec/bryk/vendor_gems/rails/activerecord/lib/active_record/migration.rb:1047
          say_with_time at /home/jessec/bryk/vendor_gems/rails/activerecord/lib/active_record/migration.rb:1017
  • Loading branch information
JesseChavez committed Aug 1, 2024
1 parent 9c20a72 commit afca8f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/arjdbc/postgresql/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ def supports_insert_on_conflict?
alias supports_insert_on_duplicate_update? supports_insert_on_conflict?
alias supports_insert_conflict_target? supports_insert_on_conflict?

def supports_identity_columns? # :nodoc:
database_version >= 10_00_00 # >= 10.0
end

def index_algorithms
{ concurrently: 'CONCURRENTLY' }
end
Expand Down

0 comments on commit afca8f7

Please sign in to comment.