summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-07-04 13:06:47 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-07-04 13:06:47 +0000
commit1b0bf2880374307e9669cfd4ed32cfe6677a3503 (patch)
tree746c628e4cedc108473e340e2a19c5c0d323c225 /db/migrate
parentaa20cd9ec210df7de884482be3e4d93936cd31ab (diff)
downloadredmine-1b0bf2880374307e9669cfd4ed32cfe6677a3503.tar.gz
redmine-1b0bf2880374307e9669cfd4ed32cfe6677a3503.zip
When 2FA is set to optional, allow to require 2FA only for certain user groups (#31920).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210704125704_add_twofa_required_to_groups.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20210704125704_add_twofa_required_to_groups.rb b/db/migrate/20210704125704_add_twofa_required_to_groups.rb
new file mode 100644
index 000000000..91361bc46
--- /dev/null
+++ b/db/migrate/20210704125704_add_twofa_required_to_groups.rb
@@ -0,0 +1,5 @@
+class AddTwofaRequiredToGroups < ActiveRecord::Migration[6.1]
+ def change
+ add_column :users, :twofa_required, :boolean, default: false
+ end
+end