Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

copy edits [ci skip]

  • Loading branch information...
commit 1a9766f1280f9550ba1de4538fccd5ad51c557ac 1 parent 60a961f
@vijaydev vijaydev authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/migration.rb
View
6 activerecord/lib/active_record/migration.rb
@@ -668,11 +668,7 @@ def copy(destination, sources, options = {})
copied
end
- # Determines the version number of the next migration
- # if the timestamped migrations are activated then the comparison with the current time is made
- # and then higer of the two values is selected
- # For non timestamped values, the simple numbers are used in the format of "057", "570"
-
+ # Determines the version number of the next migration.
def next_migration_number(number)
if ActiveRecord::Base.timestamped_migrations
[Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % number].max

1 comment on commit 1a9766f

@aditya-kapoor

@vijaydev Can you explain, why have you stripped off the last 3 lines???

Please sign in to comment.
Something went wrong with that request. Please try again.