When you already have authors and books tables and wish to add a new relationship between them
All you need to do is: just generate a migration using the following command:
rails g migration AddAuthorsToBooks author:references
Which will create a migrati...
This is a step-by-step guide for anyone who is trying to learn the basics of setting up Ruby on Rails, Nginx, Unicorn, and Postgresql to run on a VPS and use Capistrano to automate deployment. For this tutorial, we will use Digital Ocean as the VPS provider because it is cheap...