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:
parent
096f3f6468
commit
4570cf66ce
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue