Remove mass assignment for Rails 4
Update migration generator to be Rails 4 compatible
Implement `self.next_migration_number` in migration generator

For Rails 4 compatibility
`has_many` syntax for specifying order uses a lambda in Rails 4
Merge pull request #1 from liveeditor/rails4

Rails 4 compatibility