Rails scaffold generators are great! you can use belongs_to to quickly add relations. In the below example, I have 2 models accounts and campaigns; campaigns belong to accounts.
$ rails generate scaffold account name:string $ rails g scaffold campaign name:string account:belongs_to
This will generate the necessary columns, indexes and associations in your models.