提交 b3f8cbd9 编写于 作者: J Jason Noble

Explain the t.timestamps method a little better

上级 1f765a2f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册