I execute the following commands to make the model:
script/generate model user firstname:string lastname:string
script/generate song group songname:string songtitle:string
a user has_many :songs
and a song belongs_to :user
after this I run rake db:migrate
however, the associations are not carried to my actual DB. Because in my actual DB I do not see any user_id
column in songs table
...etc.
Do we have to manually change the migration and add the needed columns?