t.references :user, foreign_key: true # , null: false
rails g migration addDoctorReferencesToPatients doctor:references rails db:migrate # create automatically doctor references to patients table