summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-31 22:42:17 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-09 17:31:37 -0400
commit802fcd051fcbc9be99230bddb13c4a7cb8067741 (patch)
tree9cadf6f58acc76b0a882980d7c3909ddeeac429c /db
parentb66be0a2b3351dd10d96e3d0d0576f6d1444f342 (diff)
downloadgitlab-ce-802fcd051fcbc9be99230bddb13c4a7cb8067741.tar.gz
Add support for backup codes
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb b/db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb
new file mode 100644
index 00000000000..2feb49f43f1
--- /dev/null
+++ b/db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb
@@ -0,0 +1,5 @@
+class AddDeviseTwoFactorBackupableToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :otp_backup_codes, :string, array: true
+ end
+end