mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Update wording to be more explicit on what the timestamp fields track
This commit is contained in:
@@ -609,12 +609,12 @@ class CreatePosts < ActiveRecord::Migration
|
||||
end
|
||||
</ruby>
|
||||
|
||||
The above migration creates a method named +change+ which will be called when you
|
||||
run this migration. The action defined in that method is also reversible, which
|
||||
The above migration has one method named +change+ which will be called when you
|
||||
run this migration. The action defined in this method is also reversible, which
|
||||
means Rails knows how to reverse the change made by this migration, in case you
|
||||
want to reverse it at later date. By default, when you run this migration it
|
||||
creates a +posts+ table with two string columns and a text column. It also
|
||||
creates two timestamp fields to track record creation and updating. More
|
||||
want to reverse it at later date. When you run this migration it will create a
|
||||
+posts+ table with two string columns and a text column. It also creates two
|
||||
timestamp fields to allow Rails to track post creation and update times. More
|
||||
information about Rails migrations can be found in the "Rails Database
|
||||
Migrations":migrations.html guide.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user