---
title: "List your model names"
description: "NOTE: RUBYOPT=-W0 avoids verbosity when running rails command which suppresses warnnings."
canonical: https://oozou.com/til/list-your-model-names-58
locale: en
date: 2020-10-13
topic: ruby-on-rails
---

# List your model names

> NOTE: RUBYOPT=-W0 avoids verbosity when running rails command which suppresses warnnings.

Published: 2020-10-13 · Topic: [ruby on rails](https://oozou.com/til-topics/ruby-on-rails) ([markdown](https://oozou.com/til-topics/ruby-on-rails.md))

```shell
$ RUBYOPT='-W0' rails runner 'Rails.application.eager_load!; puts ApplicationRecord.descendants.collect { |type| type.name }'
```

NOTE: *RUBYOPT=-W0* avoids verbosity when running rails command which suppresses warnnings.

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
