class ActiveRecord::InvalidMigrationTimestampError

def initialize(version = nil, name = nil)

:nodoc:
def initialize(version = nil, name = nil)
  if version && name
    super(<<~MSG)
      Invalid timestamp #{version} for migration file: #{name}.
      Timestamp must be in form YYYYMMDDHHMMSS, and less than #{(Time.now.utc + 1.day).strftime("%Y%m%d%H%M%S")}.
    MSG
  else
    super(<<~MSG)
      Invalid timestamp for migration.
      Timestamp must be in form YYYYMMDDHHMMSS, and less than #{(Time.now.utc + 1.day).strftime("%Y%m%d%H%M%S")}.
    MSG
  end
end