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 -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -