write common active_record methods in shorthand