update givey_rule model