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
Boxiang Sun
gitlab-ce
Commits
1e76245d
Commit
1e76245d
authored
Mar 16, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add commit_id to todos
parent
42834095
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
db/migrate/20160316204731_add_commit_id_to_todos.rb
db/migrate/20160316204731_add_commit_id_to_todos.rb
+6
-0
db/schema.rb
db/schema.rb
+2
-0
No files found.
db/migrate/20160316204731_add_commit_id_to_todos.rb
0 → 100644
View file @
1e76245d
class
AddCommitIdToTodos
<
ActiveRecord
::
Migration
def
change
add_column
:todos
,
:commit_id
,
:string
add_index
:todos
,
:commit_id
end
end
db/schema.rb
View file @
1e76245d
...
...
@@ -875,9 +875,11 @@ ActiveRecord::Schema.define(version: 20160316204731) do
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
integer
"note_id"
t
.
string
"commit_id"
end
add_index
"todos"
,
[
"author_id"
],
name:
"index_todos_on_author_id"
,
using: :btree
add_index
"todos"
,
[
"commit_id"
],
name:
"index_todos_on_commit_id"
,
using: :btree
add_index
"todos"
,
[
"note_id"
],
name:
"index_todos_on_note_id"
,
using: :btree
add_index
"todos"
,
[
"project_id"
],
name:
"index_todos_on_project_id"
,
using: :btree
add_index
"todos"
,
[
"state"
],
name:
"index_todos_on_state"
,
using: :btree
...
...
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