DependLister analyzes belongs_to defined by a model and outputs a list of tables in order with a little dependence. When You begin the maintenance of the existing project, it may be helpful.
To use it, add it to your Gemfile:
gem 'depend_lister'
and bundle:
bundle
Install migrations:
rake db:migrate
rails depend_lister
$ rails depend_lister
Level Table BelongsTo
Lv1 accounts
Lv2 follows accounts
Lv2 statuses accounts
Lv2 users accounts
Lv3 favourites accounts, statuses
Lv3 mentions accounts, statuses
Lv3 stream_entries accounts, statuses
You can copy the result and paste to Excel Sheet or Google Spread Sheet.
Level | Table | BelongsTo |
---|---|---|
Lv1 | accounts | |
Lv2 | follows | accounts |
Lv2 | statuses | accounts |
Lv2 | users | accounts |
Lv3 | favourites | accounts, statuses |
Lv3 | mentions | accounts, statuses |
Lv3 | stream_entries | accounts, statuses |
Bug reports and pull requests are welcome on GitHub at https://github.com/kayamak/depend_lister. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the DependLister project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.