class method
self.announce
Ruby on Rails 3.0.20
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 346
def announce(message)
version = defined?(@version) ? @version : nil
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 346
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration