Can't turn off "Notify Users by email when sign-in location is not recognized'

CentOS 7 community version of GitLab, just upgraded to version 13.7.1.

Admin Tab -> Settings -> General -> Sign-in restrictions

I turn off “Notify Users by email when sign-in location is not recognized” by unchecking the box.

Get a 500 error when change is saved, click on go back, box is unchecked.

Repeat the process, box is checked again!

On another instance of GitLab, same OS, same version of GitLab, I do not see the issue.

Wondering how I can fix this?

My answer was found here:

“Getting 500 Internal error on /admin/application_settings after Gitlab upgrade [11.5.2->11.6.2]” post.

As it turned out, none of my Admin Settings were saving, not just the “Sign-in restrictions”.

sudo gitlab-rails c:

settings = ApplicationSetting.last
settings.update_column(:runners_registration_token_encrypted, nil)