Skip to content

Commit

Permalink
Set adapter specific valid_column_definition_options
Browse files Browse the repository at this point in the history
See rails/rails#46178
and rails/rails#47609

These were the options that were failing in the test suite.
  • Loading branch information
dlagerro committed Feb 21, 2024
1 parent 50cfc0e commit 211e3d1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def references(*args, **options)
super(*args, type: :integer, **options)
end
alias :belongs_to :references

private
def valid_column_definition_options
super + [:sequence_name, :as, :sequence_start_value, :type]
end
end

class AlterTable < ActiveRecord::ConnectionAdapters::AlterTable
Expand Down

0 comments on commit 211e3d1

Please sign in to comment.