# Comment mettre à jour et débloquer tous les groupes ?

**URL:** <https://meta.discourse.org/t/how-to-update-and-unlock-all-groups/260504>\
**Category:** Support\
**Created:** [Avril 4, 2023, 8:24 UTC](https://meta.discourse.org/t/how-to-update-and-unlock-all-groups/260504 "2023-04-04T08:24:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [Avril 4, 2023, 11:05 UTC](https://meta.discourse.org/t/how-to-update-and-unlock-all-groups/260504/4 "2023-04-04T11:05:10Z")

</div>

Utilisez

`Group.last`

pour voir à quoi ressemble le modèle de groupe. Ou `Group.find_by_slug("some_slug")` pour examiner un groupe spécifique. Vous pouvez examiner un groupe qui a été modifié et un autre qui ne l’a pas été.

Vous pouvez ensuite faire `Group.all.update_all(field: value)` pour les définir tous.

---

_[View the full topic](https://meta.discourse.org/t/how-to-update-and-unlock-all-groups/260504)._
