diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2015-12-18 23:29:13 +0300 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2015-12-25 00:00:18 +0300 |
commit | 33964469b38e2b36b200b20fe3061371a5f5ab18 (patch) | |
tree | 72a4eaae98645d02803cd212d871dd22d9fca53d /db/migrate | |
parent | 7b25da74ea017814c3f420bd57470af483617d4f (diff) |
WIP require two factor authentication
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20151218154042_add_tfa_to_application_settings.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20151218154042_add_tfa_to_application_settings.rb b/db/migrate/20151218154042_add_tfa_to_application_settings.rb new file mode 100644 index 00000000000..dd95db775c5 --- /dev/null +++ b/db/migrate/20151218154042_add_tfa_to_application_settings.rb @@ -0,0 +1,8 @@ +class AddTfaToApplicationSettings < ActiveRecord::Migration + def change + change_table :application_settings do |t| + t.boolean :require_two_factor_authentication, default: false + t.integer :two_factor_grace_period, default: 48 + end + end +end |