mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Explain the t.timestamps method a little better
This commit is contained in:
parent
1f765a2f72
commit
b3f8cbd9a8
1 changed files with 4 additions and 3 deletions
|
@ -246,9 +246,10 @@ class CreateProducts < ActiveRecord::Migration
|
|||
end
|
||||
</ruby>
|
||||
|
||||
You can append as many column name/type pairs as you want. By default
|
||||
+t.timestamps+ (which creates the +updated_at+ and +created_at+ columns that are
|
||||
automatically populated by Active Record) will be added for you.
|
||||
You can append as many column name/type pairs as you want. By default, the
|
||||
generated migration will include +t.timestamps+ (which creates the
|
||||
+updated_at+ and +created_at+ columns that are automatically populated
|
||||
by Active Record).
|
||||
|
||||
h4. Creating a Standalone Migration
|
||||
|
||||
|
|
Loading…
Reference in a new issue