method

next_migration_string

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: Rails::Generator::Commands::Base
next_migration_string(padding = 3) protected

No documentation

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

Hide source
# 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
Register or log in to add new notes.