1
0
Fork 0
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:
Jason Noble 2011-12-03 19:11:22 -07:00
parent 1f765a2f72
commit b3f8cbd9a8

View file

@ -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