method

next_migration_string

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - 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

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.