Task8c

подскажу: http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html