March 15, 2020
One of my issues with rails is not knowing what the model looks like in the model. Inorder to know the shape of the model, you must check the schema, rails console, or database directly.
One way of fixing this is annotate_models
. It documents the shape of the table in the mode.
To use it do the following:
group :development do
gem 'annotate'
end
bin/rails g annotate:install