Skip to content
This repository
Browse code

Mention schema.rb as a place for seing model attributes

  • Loading branch information...
commit c329a567529f1fb7ac4204fc43940bfb45ff58a4 1 parent c6da7c5
Frederick Cheung fcheung authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  railties/doc/guides/migrations/scheming.txt
2  railties/doc/guides/migrations/scheming.txt
@@ -7,6 +7,8 @@ There is no need (and it is error prone) to deploy a new instance of an app by r
7 7
8 8 For example, this is how the test database is created: the current development database is dumped (either to `schema.rb` or `development.sql`) and then loaded.
9 9
  10 +Schema files are also useful if want a quick look at what attributes an Active Record object has. This information is not in the model's code and is frequently spread across several migrations but is all summed up in the schema file. The[annotate_models] plugin, which automatically adds (and updates) comments at the top of each model summarising the schema, may also be of interest.
  11 +
10 12 === Types of schema dumps ===
11 13 There are two ways to dump the schema. This is set in `config/environment.rb` by the `config.active_record.schema_format` setting, which may be either `:sql` or `:ruby`.
12 14

0 comments on commit c329a56

Please sign in to comment.
Something went wrong with that request. Please try again.