Commit 6a1e4441 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'doc-update-create-table-with-index-example' into 'master'

Update create table with index example

See merge request gitlab-org/gitlab!59566
parents 0b4af617 cf6bab4c
......@@ -254,10 +254,10 @@ def up
t.bigint :project_id, null: false
t.bigint :user_id, null: false
t.string :jid, limit: 255
end
add_index :imports, :project_id
add_index :imports, :user_id
t.index :project_id
t.index :user_id
end
end
def down
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment