# Guide rails, database?

**URL:** <https://discuss.rubyonrails.org/t/guide-rails-database/82109>\
**Category:** rubyonrails-docs\
**Created:** [January 16, 2023, 2:38pm UTC](https://discuss.rubyonrails.org/t/guide-rails-database/82109 "2023-01-16T14:38:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![allanzinho](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@allanzinho](https://discuss.rubyonrails.org/u/allanzinho)\
**Post date:** [January 16, 2023, 2:38pm UTC](https://discuss.rubyonrails.org/t/guide-rails-database/82109/1 "2023-01-16T14:38:43Z")

</div>

I would like the seed/database used in the guide to be available, so people who are starting out like me understand where the data comes from. Is this available in any repository? Example taken from the guide (active\_record\_querying):

```ruby
customer = Customer.find(10)
=> #<Customer id: 10, first_name: "Ryan">

```

---

<div class="post-metadata">

**Author:** ![zzak](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/zzak/32/9116_2.png) [@zzak](https://discuss.rubyonrails.org/u/zzak)\
**Post date:** [January 17, 2023, 12:55am UTC](https://discuss.rubyonrails.org/t/guide-rails-database/82109/2 "2023-01-17T00:55:00Z")

</div>

There is no seed data available for the guides, much of the documentation is written ad-hoc, usually by someone testing the code in their terminal before committing.

It’s an interesting idea though, I just think it would be difficult to maintain a repository of models and tests just for the guides and could easily drift. Executable documentation isn’t too far fetched from that, but yeah I have no idea how that could be implemented or maintained.
