Does a simple call to PostActionType.flag_settings in an initializer resolve the issue? (eg: just insert here: discourse/config/initializers/000-mini_sql.rb at 3e0cb8ea47ea27cb3b564ac10656884739e4d78c · discourse/discourse · GitHub temporarily)
I guess we could synchronize this block as well. Are there any other big red flags truffle is raising?