From 58f8172a236e527f6b7b7646404f6d6902be4c0c Mon Sep 17 00:00:00 2001 From: shane Date: Wed, 8 Jul 2009 19:29:40 -0700 Subject: [PATCH] Updated migration documentation to reflect default for UTC timestamped migration names --- 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 467d955..3963baa 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 nnn_my_new_migration.rb in the db/migrate/ - # directory where nnn is the next largest migration number. + # create an empty migration file timestamp_my_new_migration.rb in the db/migrate/ + # directory where timestamp is the UTC formatted date and time that the migration was generated. # # You may then edit the self.up and self.down 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 nnn_add_fieldname_to_tablename, which will look like this: + # This will generate the file timestamp_add_fieldname_to_tablename, which will look like this: # class AddFieldnameToTablename < ActiveRecord::Migration # def self.up # add_column :tablenames, :fieldname, :string -- 1.5.5.1