aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-05-12 15:52:09 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2013-05-12 15:52:09 +0530
commit1a9766f1280f9550ba1de4538fccd5ad51c557ac (patch)
treef8eee03c89a254125bce55b8863bcbc4507c03f3 /activerecord/lib/active_record/migration.rb
parent60a961f3b639ffb4f83fcdff89e93a200f09af60 (diff)
downloadrails-1a9766f1280f9550ba1de4538fccd5ad51c557ac.tar.gz
rails-1a9766f1280f9550ba1de4538fccd5ad51c557ac.tar.bz2
rails-1a9766f1280f9550ba1de4538fccd5ad51c557ac.zip
copy edits [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
-rw-r--r--activerecord/lib/active_record/migration.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index 4a04748680..511a1585a7 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -668,11 +668,7 @@ module ActiveRecord
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