ActiveRecord: add methods in model and driver