Skip to content

Commit

Permalink
Changes migration number to version due to ambiguity. [#3065 state:co…
Browse files Browse the repository at this point in the history
…mmitted]
  • Loading branch information
rizwanreza committed Mar 28, 2010
1 parent b4c91de commit 155f0be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -374,7 +374,7 @@ def self.reset_subclasses #:nodoc:

##
# :singleton-method:
# Specify whether or not to use timestamps for migration numbers
# Specify whether or not to use timestamps for migration versions
cattr_accessor :timestamped_migrations , :instance_writer => false
@@timestamped_migrations = true

Expand Down
6 changes: 3 additions & 3 deletions railties/lib/rails/generators/migration.rb
Expand Up @@ -2,7 +2,7 @@ module Rails
module Generators
# Holds common methods for migrations. It assumes that migrations has the
# [0-9]*_name format and can be used by another frameworks (like Sequel)
# just by implementing the next migration number method.
# just by implementing the next migration version method.
#
module Migration
attr_reader :migration_number, :migration_file_name, :migration_class_name
Expand Down Expand Up @@ -32,10 +32,10 @@ def next_migration_number(dirname) #:nodoc:
end

# Creates a migration template at the given destination. The difference
# to the default template method is that the migration number is appended
# to the default template method is that the migration version is appended
# to the destination file name.
#
# The migration number, migration file name, migration class name are
# The migration version, migration file name, migration class name are
# available as instance variables in the template to be rendered.
#
# ==== Examples
Expand Down

0 comments on commit 155f0be

Please sign in to comment.