Add commit_id to todos
This commit is contained in:
parent
42834095bc
commit
1e76245d4e
|
@ -0,0 +1,6 @@
|
|||
class AddCommitIdToTodos < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :todos, :commit_id, :string
|
||||
add_index :todos, :commit_id
|
||||
end
|
||||
end
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue