Using newer instance method rails syntax for migration methods

Apparently using class methods like `self.up` and `self.down` was an older syntax for migrations in Rails. This commit  uses the newer syntax of instance methods.