# Where are staff notices stored in the database?

**URL:** <https://meta.discourse.org/t/where-are-staff-notices-stored-in-the-database/125108>\
**Category:** Product Support\
**Created:** [August 7, 2019, 8:48am UTC](https://meta.discourse.org/t/where-are-staff-notices-stored-in-the-database/125108 "2019-08-07T08:48:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)\
**Post date:** [August 8, 2019, 6:40am UTC](https://meta.discourse.org/t/where-are-staff-notices-stored-in-the-database/125108/5 "2019-08-08T06:40:06Z")

</div>

Thanks. In case anyone else is looking for a quick way to skim the data, this works in the Rails console:

```ruby
results = Post.all.reject { |p| p.custom_fields['notice_type'].nil? }

results.each do |r|
  puts r.custom_fields
end

```

Sample output:

```ruby
{"notice_type"=>"returning_user", "notice_args"=>"2018-08-04T07:43:52Z"}
{"notice_type"=>"new_user"}
{"notice_type"=>"new_user"}
{"notice_type"=>"new_user"}
{"notice_type"=>"returning_user", "notice_args"=>"2016-10-11T09:32:30Z"}
{"notice_type"=>"returning_user", "notice_args"=>"2014-04-02T16:16:04Z"}
{"notice_type"=>"new_user"}
{"notice_type"=>"new_user"}

```

I don’t see any custom text there, so I guess the staff notice I was looking for isn’t live.

---

_[View the full topic](https://meta.discourse.org/t/where-are-staff-notices-stored-in-the-database/125108)._
