method
next_migration_string
next_migration_string(padding = 3)
protected
Hide source
# File railties/lib/rails_generator/commands.rb, line 83 def next_migration_string(padding = 3) if ActiveRecord::Base.timestamped_migrations Time.now.utc.strftime("%Y%m%d%H%M%S") else "%.#{padding}d" % next_migration_number end end