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
Jérome Perrin
gitlab-ce
Commits
4076bce5
Commit
4076bce5
authored
Apr 22, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge the "personal access token"-related migrations.
parent
c382bd26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
db/migrate/20160415062917_create_personal_access_tokens.rb
db/migrate/20160415062917_create_personal_access_tokens.rb
+2
-0
db/migrate/20160415144643_add_column_revoked_to_personal_access_tokens.rb
...415144643_add_column_revoked_to_personal_access_tokens.rb
+0
-5
db/migrate/20160418085954_add_column_expires_at_to_personal_access_tokens.rb
...085954_add_column_expires_at_to_personal_access_tokens.rb
+0
-5
No files found.
db/migrate/20160415062917_create_personal_access_tokens.rb
View file @
4076bce5
...
...
@@ -4,6 +4,8 @@ class CreatePersonalAccessTokens < ActiveRecord::Migration
t
.
references
:user
,
index:
true
,
foreign_key:
true
,
null:
false
t
.
string
:token
,
index:
{
unique:
true
},
null:
false
t
.
string
:name
,
null:
false
t
.
boolean
:revoked
,
default:
false
t
.
datetime
:expires_at
t
.
timestamps
null:
false
end
...
...
db/migrate/20160415144643_add_column_revoked_to_personal_access_tokens.rb
deleted
100644 → 0
View file @
c382bd26
class
AddColumnRevokedToPersonalAccessTokens
<
ActiveRecord
::
Migration
def
change
add_column
:personal_access_tokens
,
:revoked
,
:boolean
,
default:
false
end
end
db/migrate/20160418085954_add_column_expires_at_to_personal_access_tokens.rb
deleted
100644 → 0
View file @
c382bd26
class
AddColumnExpiresAtToPersonalAccessTokens
<
ActiveRecord
::
Migration
def
change
add_column
:personal_access_tokens
,
:expires_at
,
:datetime
end
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