activerecord - How to add migration details to its corresponding model in Rails 4 -



activerecord - How to add migration details to its corresponding model in Rails 4 -

i remember 1 of colleagues did don't remember how. guess used gem or rake task accomplish this.

please share if know how this.

maybe gem can add together relevant associations automatically model file. when rails g model.

you can utilize gem:

https://github.com/ctran/annotate_models

then run annotate terminal. notes if field hstore or array type in case of postgresql. intelligent. myself made commit ;)

activerecord gem rails-activerecord rails-migrations

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -