next_migration_string(padding = 3)protected
No documentation available.
# File railties/lib/rails_generator/commands.rb, line 84
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