Proper way to delete association
Fix exists? usage for edge Rails

DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base
to `exists?`.Please pass the id of the object by calling `.id`.