thoughtbot/paperclip — pull request #815 by mikong (2012-04-07 08:58:13+00:00)
Title: up/down methods convention in Rails migration

I just noticed that in the README, the sample code for Rails migration still uses the Class methods (self.up/self.down) instead of simply just the instance methods (up/down). I updated the 2 code blocks in README, as well as the 2 generator templates in the source code.

I'm not exactly sure why there are 2 templates in the source code. But it seems to me the one under lib/ is somewhat incomplete (USAGE is not descriptive).

Lastly, I think the standard in Rails migration class naming is to refer to the table name instead of the model class name (e.g. AddSomeColumnToUsers refer to table name, while AddSomeColumnToUser refers to the model class name). I didn't change this in my commit because other people may not agree with this.