class RailsBestPractices::Reviews::UseSayWithTimeInMigrationsReview

Review a migration file to make sure to use say or say_with_time for customized data changes to produce a more readable output.

See the best practice detials here rails-bestpractices.com/posts/2010/08/19/use-say-and-say_with_time-in-migrations-to-make-a-useful-migration-log/

Implementation:

Review process:

check class method define nodes (self.up or self.down).
if there is a method call in the class method definition,
and the message of method call is not say, say_with_time and default migration methods
(such as add_column and create_table), then the method call should be wrapped by say or say_with_time.

Constants

WITH_SAY_METHODS