instance method next_migration_string

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

next_migration_string(padding = 3)

No documentation comment.

Parameters

padding opt = 3
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

Defined in railties/lib/rails_generator/commands.rb line 83 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generator::Commands::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close