diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-03-14 14:34:21 +0100 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-04-06 10:01:14 +0200 |
commit | 1735ed613910b38c4c069da9c4637bbc4856db36 (patch) | |
tree | 7c7982af2bd8777bc919bef331edc9a0a1513eec /app/models/user.rb | |
parent | 20575859b1bf431421427d52c4ac5a33cf662df6 (diff) | |
download | gitlab-ce-1735ed613910b38c4c069da9c4637bbc4856db36.tar.gz |
rename cache db column with `_cached` suffix
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index fb30cebfda4..9c9c1f9c5da 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -974,7 +974,7 @@ class User < ActiveRecord::Base def update_two_factor_requirement periods = expanded_groups_requiring_two_factor_authentication.pluck(:two_factor_grace_period) - self.require_two_factor_authentication = periods.any? + self.require_two_factor_authentication_from_group = periods.any? self.two_factor_grace_period = periods.min || User.column_defaults['two_factor_grace_period'] save |