Permalink
Browse files

Updated migration documentation to reflect default for UTC timestampe…

…d migration names
  • Loading branch information...
1 parent af29eee commit 5c0a76c41a9f29ea635c79cdc966d2a057e1b107 @ffmike ffmike committed Jul 9, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/migration.rb
@@ -109,16 +109,16 @@ def initialize(name)
# 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.
#
# 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

0 comments on commit 5c0a76c

Please sign in to comment.