Undeclared attribute type for enum 'chat_send_shortcut' in UserOption

Oh, interesting. I thought db:migrate would include the plugins by default.
Indeed, I had quite a few migrations awaiting for the plugins on RAILS_ENV=test.
The error is gone now, thanks!

EDIT:

Actually, if you use RAILS_ENV=test bin/rake db:migrate, notice the “bin/”, it does set the LOAD_PLUGINS to 1.

image

You can see the content of bin/rake:

if ENV['RAILS_ENV'] == 'test' && ENV['LOAD_PLUGINS'].nil?
  if ARGV.include?('db:migrate') || ARGV.include?('parallel:migrate')
    STDERR.puts "You are attempting to run migrations in your test environment and are not loading plugins, setting LOAD_PLUGINS to 1"
    ENV['LOAD_PLUGINS'] = '1'
  end
end

At some point I’ve probably stopped typing bin/ out of laziness :grinning_face_with_smiling_eyes:.