db:migrate - unknown keyword: :klass - arel issue

165 Views Asked by At

I'm having an issue with upgrading an old rails app to the latest one. My knowledge of rails is limited. As far as i'm aware, i'm running ruby 3.1 with rails 7.

ArgumentError: unknown keyword: :klass
/home/dan/.rvm/gems/ruby-3.1.2/gems/arel-9.0.0/lib/arel/table.rb:15:in `initialize'

I've looked around and found this problem mentioned here however i'm already running the latest version of it i thought? I'm not 100% sure on where i'm supposed to look at this point.

1

There are 1 best solutions below

0
McGavin On BEST ANSWER

Arel is now a part of ActiveRecord so you no longer need the arel gem in your Gemfile. Removing that should get past this problem