Changeset 4663
- Timestamp:
- 08/05/06 01:39:57 (2 years ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/migration.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r4655 r4663 1 1 *SVN* 2 3 * Fix announcement of very long migration names. #5722 [blake@near-time.com] 2 4 3 5 * The exists? class method should treat a string argument as an id rather than as conditions. #5698 [jeremy@planetargon.com] trunk/activerecord/lib/active_record/migration.rb
r4596 r4663 245 245 def announce(message) 246 246 text = "#{name}: #{message}" 247 write "== %s %s" % [ text, "=" * (75 - text.length) ] 247 length = [0, 75 - text.length].max 248 write "== %s %s" % [text, "=" * length] 248 249 end 249 250