Commit cf6bab4c authored by Tan Le's avatar Tan Le

Update create table with index example

parent b17c41f4
......@@ -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