Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
0c113c8d
Commit
0c113c8d
authored
May 09, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make otp_backup_codes a text field
parent
2ad1334d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb
...150331183602_add_devise_two_factor_backupable_to_users.rb
+1
-1
db/schema.rb
db/schema.rb
+5
-0
No files found.
db/migrate/20150331183602_add_devise_two_factor_backupable_to_users.rb
View file @
0c113c8d
class
AddDeviseTwoFactorBackupableToUsers
<
ActiveRecord
::
Migration
def
change
add_column
:users
,
:otp_backup_codes
,
:
string
,
array:
true
add_column
:users
,
:otp_backup_codes
,
:
text
end
end
db/schema.rb
View file @
0c113c8d
...
...
@@ -492,6 +492,11 @@ ActiveRecord::Schema.define(version: 20150502064022) do
t
.
string
"bitbucket_access_token"
t
.
string
"bitbucket_access_token_secret"
t
.
string
"location"
t
.
string
"encrypted_otp_secret"
t
.
string
"encrypted_otp_secret_iv"
t
.
string
"encrypted_otp_secret_salt"
t
.
boolean
"otp_required_for_login"
t
.
text
"otp_backup_codes"
t
.
string
"public_email"
,
default:
""
,
null:
false
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment