method
say
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::Migration
say(message, subitem=false)public
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 352
def say(message, subitem=false)
write "#{subitem ? " ->" : "--"} #{message}"
end 1Note
print standard-looking messages during migration
Within a migration file you can use the say method to print out informational messages that match the style of standard migration messages. The say_with_time method is also pretty great.
say "migrate existing data"
#=> "-- migrate existing data"
# ... execute migration sql ...
say "updated all records", :subitem
#=> " -> updated 5 records"