Skip to content

meganemura/ignored_removed_columns

Repository files navigation

IgnoredRemovedColumns

Installation

gem 'ignored_removed_columns', group: [:development, :test]

Usage

$ 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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/meganemura/ignored_removed_columns.

License

The gem is available as open source under the terms of the MIT License.

About

Find removed or typo columns defined in ignored_columns

Resources

License

Stars

Watchers

Forks

Packages

No packages published