title: Rails 2.4 => 3.0: ActiveRecord: `add_modifier`: wrong number of arguments (given 3, expected 2) (ArgumentError)
body: <p>When I update my Ruby version from 2.4.3 to 3.0.2, (<code>bundle update</code>), and try to run the Rails console, I get this error message. How can I resolve this?</p>
  <pre><code>C:\Users\Chloe\workspace\catalyst_research&gt;rails console
  C:/ruby30/lib/ruby/gems/3.0.0/gems/activerecord-5.0.7.2/lib/active_record/type/adapter_specific_registry.rb:7:in `add_modifier': wrong number of arguments (given 3, expected 2) (ArgumentError)
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/activerecord-5.0.7.2/lib/active_record/type.rb:22:in `add_modifier'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:827:in `&lt;class:PostgreSQLAdapter&gt;'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:69:in `&lt;module:ConnectionAdapters&gt;'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:41:in `&lt;module:ActiveRecord&gt;'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:19:in `&lt;main&gt;'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/bootsnap-1.9.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
          from C:/ruby30/lib/ruby/gems/3.0.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `block in require'
  ...
  C:/Users/Chloe/workspace/catalyst_research/config/environment.rb:5:in
  ...
  </code></pre>
  <p><code>Gemfile</code>:</p>
  <pre><code>ruby '~&gt;2.4.1'#'~&gt;3.0.2'
  gem 'rails', '~&gt; 5.0.2'
  ...
  </code></pre>
  <p><code>environment.rb</code>:5:</p>
  <pre><code>Rails.application.initialize!
  </code></pre>
  <p><code>adapter_specific_registry.rb</code>:7:</p>
  <pre><code>  6     class AdapterSpecificRegistry &lt; ActiveModel::Type::Registry
    7       def add_modifier(options, klass, **args)
    8         registrations &lt;&lt; DecorationRegistration.new(options, klass, **args)
    9       end
  </code></pre>