Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
0762cd5af9f0
Commit
1e76245d
authored
Mar 16, 2016
by
Douglas Barbosa Alexandre
Browse files
Add commit_id to todos
parent
4634beb4cfd0
Changes
2
Hide whitespace changes
Inline
Side-by-side
db/migrate/20160316204731_add_commit_id_to_todos.rb
0 → 100644
View file @
0762cd5a
class
AddCommitIdToTodos
<
ActiveRecord
::
Migration
def
change
add_column
:todos
,
:commit_id
,
:string
add_index
:todos
,
:commit_id
end
end
db/schema.rb
View file @
0762cd5a
...
...
@@ -875,9 +875,11 @@
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