class method
self.announce
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v3.0.20Signature
self.announce(message)
No documentation comment.
Parameters
-
messagereq
Source
# File activerecord/lib/active_record/migration.rb, line 313
def announce(message)
text = "#{@version} #{name}: #{message}"
length = [0, 75 - text.length].max
write "== %s %s" % [text, "=" * length]
end
Defined in activerecord/lib/active_record/migration.rb line 313
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration