public function rules() { // Note: The model is used by both the entry and the trail index pages, hence the separate use of `id` and `entry_id` return [[['id', 'user_id', 'entry_id', 'action', 'model', 'model_id', 'field', 'created'], 'safe']]; }