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
Post a Comment