mirror of
https://github.com/github/rails.git
synced 2026-01-31 09:18:17 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user