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

php - How to pass multiple values from url -

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

database - php search bar when I press submit with nothing in the search bar it shows all the data -