diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-07-09 06:07:27 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-07-09 06:07:27 -0500 |
commit | 5c0a76c41a9f29ea635c79cdc966d2a057e1b107 (patch) | |
tree | 7c86b6befca0568e68ca06bec0cddc7345cf1264 | |
parent | af29eeeafd7c1c2b799525e51980407978e3c338 (diff) | |
download | rails-5c0a76c41a9f29ea635c79cdc966d2a057e1b107.tar.gz rails-5c0a76c41a9f29ea635c79cdc966d2a057e1b107.tar.bz2 rails-5c0a76c41a9f29ea635c79cdc966d2a057e1b107.zip |
Updated migration documentation to reflect default for UTC timestamped migration names
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 467d955a49..3963baa6b8 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -109,8 +109,8 @@ module ActiveRecord # script/generate migration MyNewMigration # # where MyNewMigration is the name of your migration. The generator will - # create an empty migration file <tt>nnn_my_new_migration.rb</tt> in the <tt>db/migrate/</tt> - # directory where <tt>nnn</tt> is the next largest migration number. + # create an empty migration file <tt>timestamp_my_new_migration.rb</tt> in the <tt>db/migrate/</tt> + # directory where <tt>timestamp</tt> is the UTC formatted date and time that the migration was generated. # # You may then edit the <tt>self.up</tt> and <tt>self.down</tt> methods of # MyNewMigration. @@ -118,7 +118,7 @@ module ActiveRecord # There is a special syntactic shortcut to generate migrations that add fields to a table. # script/generate migration add_fieldname_to_tablename fieldname:string # - # This will generate the file <tt>nnn_add_fieldname_to_tablename</tt>, which will look like this: + # This will generate the file <tt>timestamp_add_fieldname_to_tablename</tt>, which will look like this: # class AddFieldnameToTablename < ActiveRecord::Migration # def self.up # add_column :tablenames, :fieldname, :string |