Monday, February 25, 2013

Must-know terminal Rails commands

rails g controller Comments method1 method2 method3 (...)
rails g model Comment text:text user_id:integer
rails g migration (check on documentation for change_column etc.)

bundle exec rake db:migrate
bundle exec rake assets:recompile

On Heroku:
heroku run bundle exec rake db:migrate

heroku run bundle exec rake assets:recompile

1 comment:

  1. Cryptocurrency is an online Trading network where by an individual invest a certain amount of purchased coins and earn a formidable return by just sitting in front of your MOBILE / PC. I will teach you on how to mine your Bitcoin To earn up to $3000 even with a capital of $500
    NOTE; THIS ISN'T JUST BITCOINS OR IT SCAMS❌.
    ITS CRYPTOCURRENCY ONLY💹☑️☑️
    DM THE ADMINISTRATOR@
    WHATSAPP: (+17168691327)

    ReplyDelete