Document the timestamps schema definition method. Closes #9000 [mikong]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Marcel Molina 2007-12-05 14:47:44 +00:00
parent 096f3f6468
commit 4570cf66ce
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Document the timestamps schema definition method. Closes #9000 [mikong]
* Give examples for what tables should be called for models inside a module namespace. Closes #10288 [scott_willson]
* Document the :message option for validates_associated. Closes #10357 [dylans]

View File

@ -432,6 +432,8 @@ module ActiveRecord
EOV
end
# Appends <tt>:datetime</tt> columns <tt>:created_at</tt> and
# <tt>:updated_at</tt> to the table.
def timestamps
column(:created_at, :datetime)
column(:updated_at, :datetime)