method

announce

rails latest stable - Class: ActiveRecord::InvalidMigrationTimestampError::Migration

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

announce(message)
public

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 1008
    def announce(message)
      text = "#{version} #{name}: #{message}"
      length = [0, 75 - text.length].max
      write "== %s %s" % [text, "=" * length]
    end