update db constraints [Finishes #75204444]
fix bug in migration
added migration to udpate orphaned emotional ratings, but also I removed the rails helper so allow_nil could be false, and added dependent destroy [Finishes: #75462888]
Merge branch 'master' of https://github.com/cbitstech/stepped_care_reboot
ran migrations and rubocoped