gem 'ignored_removed_columns', group: [:development, :test]
$ rake ignored_removed_columns:check
Found removed or typo columns defined in ignored_columns
--------------------------------------------------------
Post:
- published
- archivedd
$ echo $?
1
This means:
Post
class defines published
(maybe removed) and archivedd
(maybe typo) ignored_columns, but the related table (commonly posts
) does not have those columns. So, you can remove those from its ignored_columns.
Bug reports and pull requests are welcome on GitHub at https://github.com/meganemura/ignored_removed_columns.
The gem is available as open source under the terms of the MIT License.