Callback methods to help your objects
CREATE UPDATE DESTROY
before_validation before_validation
-------------------------VALIDATION------------------------------
after_validation after_validation
before_save before_save
before_create before_update before_destroy
-------------------------DATABASE INTERACTION---------------------
after_create after_update before_destroy
after_save after_save
before_save :private_method_name
, must be written
in the private
section of your code!