# Undeclared attribute type for enum 'chat\_send\_shortcut' in UserOption

**URL:** <https://meta.discourse.org/t/undeclared-attribute-type-for-enum-chat-send-shortcut-in-useroption/352308>\
**Category:** Development\
**Created:** [February 14, 2025, 3:42pm UTC](https://meta.discourse.org/t/undeclared-attribute-type-for-enum-chat-send-shortcut-in-useroption/352308 "2025-02-14T15:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [March 11, 2025, 6:49pm UTC](https://meta.discourse.org/t/undeclared-attribute-type-for-enum-chat-send-shortcut-in-useroption/352308/3 "2025-03-11T18:49:11Z")

</div>

> [@dsims](#):
>
> RAILS\_ENV=test LOAD\_PLUGINS=1 bin/rails db:migrate

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](https://global.discourse-cdn.com/meta/optimized/4X/7/3/e/73ed8033123605da2530685585d8c51ece178f20_2_690x54.png)

You can see the content of bin/rake:

```bash
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 😄.

---

_[View the full topic](https://meta.discourse.org/t/undeclared-attribute-type-for-enum-chat-send-shortcut-in-useroption/352308)._
