method

next_migration_string

rails latest stable - Class: Rails::Generator::Commands::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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