summaryrefslogtreecommitdiff
path: root/db/migrate/20170124193205_add_two_factor_columns_to_users.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20170124193205_add_two_factor_columns_to_users.rb')
-rw-r--r--db/migrate/20170124193205_add_two_factor_columns_to_users.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170124193205_add_two_factor_columns_to_users.rb b/db/migrate/20170124193205_add_two_factor_columns_to_users.rb
index bef1b2062c8..1d1021fcbb3 100644
--- a/db/migrate/20170124193205_add_two_factor_columns_to_users.rb
+++ b/db/migrate/20170124193205_add_two_factor_columns_to_users.rb
@@ -6,12 +6,12 @@ class AddTwoFactorColumnsToUsers < ActiveRecord::Migration
disable_ddl_transaction!
def up
- add_column_with_default(:users, :require_two_factor_authentication, :boolean, default: false)
+ add_column_with_default(:users, :require_two_factor_authentication_from_group, :boolean, default: false)
add_column_with_default(:users, :two_factor_grace_period, :integer, default: 48)
end
def down
- remove_column(:users, :require_two_factor_authentication)
+ remove_column(:users, :require_two_factor_authentication_from_group)
remove_column(:users, :two_factor_grace_period)
end
end