Flowdock
method

next_migration_number

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: ActiveRecord::Migration
next_migration_number(number) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration.rb, line 506
    def next_migration_number(number)
      if ActiveRecord::Base.timestamped_migrations
        [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % number].max
      else
        "%.3d" % number
      end
    end
Register or log in to add new notes.