Created associations in my models and migrated associations and finally rake db migrated