# Old user suspension reasons have gone missing

**URL:** <https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305>\
**Category:** Bug\
**Created:** [31 Dicembre 2015, 5:42am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305 "2015-12-31T05:42:12Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [8 Gennaio 2016, 3:59am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/25 "2016-01-08T03:59:22Z")

</div>

This commit by @techAPJ broke it:

[https://github.com/discourse/discourse/commit/4c967d11b46133861b8c9495eb65f727425f7dd5#diff-0a5ad2d838fbffeb0848dda1be5dbd12](https://github.com/discourse/discourse/commit/4c967d11b46133861b8c9495eb65f727425f7dd5#diff-0a5ad2d838fbffeb0848dda1be5dbd12)

```plaintext
     @actions ||= Enum.new(:delete_user,
                           :change_trust_level,
                            :change_site_setting,
                            :change_site_customization,
                            :delete_site_customization,
 + :change_site_text, <<<====
                            :checked_for_custom_avatar, # not used anymore
                            :notified_about_avatar,
                            :notified_about_sequential_replies,
 @@ -33,26 +34,27 @@
                           :auto_trust_level_change,
                           :check_email,
                           :delete_post,
                           :delete_topic,
                           :impersonate,
                           :roll_up,
                           :change_username,
                           :custom,
                           :custom_staff,
                           :anonymize_user,
                           :reviewed_post,
                           :change_category_settings,
                           :delete_category,
                           :create_category)

```

Our enums go from 1 upwards, if you insert anything into the list like that (as opposed to appending at the end) you break everything.

I fixed the issue with

[https://github.com/discourse/discourse/commit/3b45cd0fcb4d48f3166e05e3501cbbcb5805d59f](https://github.com/discourse/discourse/commit/3b45cd0fcb4d48f3166e05e3501cbbcb5805d59f)

But anyone that updated in the last 21 days is going to have out-of-whack actions in user history, it is pretty much impossible to fix the broken window, cause I would have to join against a table that has version history.

---

_[View the full topic](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305)._
