support :conditions option for create_index
support :conditions option for create_index

postgres only

Change-Id: Idd69c0d43ec845461b10a44364c85c22e3595dc5
Reviewed-on: https://gerrit.instructure.com/14063
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

sfu/canvas-lms,kyroskoh/canvas-lms,SwinburneOnline/canvas-lms,greyhwndz/canvas-lms,fronteerio/canvas-lms,jay3126/canvas-lms,nditech/red-innovadores-lms,narigone/canvas,rup/Tarrax,roxolan/canvas-lms,tgroshon/canvas-lms,whalejasmine/canvas-lms,grahamb/canvas-lms,va7map/canvas-lms,nditech/red-innovadores-lms,antoniuslin/canvas-lms,ShreniiNepal/shrenii_lmp,matematikk-mooc/canvas-lms,ShreniiNepal/shrenii_lmp,instructure/canvas-lms,jay3126/canvas-lms,wrdsb/canvas-lms,dgynn/canvas-lms,roxolan/canvas-lms,tgroshon/canvas-lms,Jyaasa/canvas-lms,Unow/canvas-lms,efrj/canvas-lms,skmezanul/canvas-lms,eCNAP/CANVAS,va7map/canvas-lms,shidao-fm/canvas-lms,rup/Tarrax,sdeleon28/canvas-lms,gbleydon/canvas-lms,dgynn/canvas-lms,wye0220/shindig-canvas,leftplusrightllc/canvas-lms,redconfetti/canvas-lms,snehakachroo1/LSI_replica,Jyaasa/canvas-lms,AndranikMarkosyan/lms,redconfetti/canvas-lms,fronteerio/canvas-lms,narigone/canvas,sdeleon28/canvas-lms,antoniuslin/canvas-lms,matematikk-mooc/canvas-lms,redconfetti/canvas-lms,whalejasmine/canvas-lms,venturehive/canvas-lms,Unow/ins,kyroskoh/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,arrivu/hoodemo,SwinburneOnline/canvas-lms,snehakachroo1/LSI_replica,grahamb/canvas-lms,leftplusrightllc/canvas-lms,shidao-fm/canvas-lms,arrivu/hoodemo,venturehive/canvas-lms,Rvor/canvas-lms,landonwilkins/canvas-lms,merichar/canvas-lms,dgynn/canvas-lms,HotChalk/canvas-lms,grahamb/canvas-lms,sfu/canvas-lms,skmezanul/canvas-lms,arrivu/jigsaw-lms,arrivu/hiring-site,Unow/ins,arrivu/qibla-ecampus,eCNAP/CANVAS,sfu/canvas-lms,skmezanul/canvas-lms,AndranikMarkosyan/lms,skmezanul/canvas-lms,grahamb/canvas-lms,jay3126/canvas-lms,efrj/canvas-lms,sdeleon28/canvas-lms,juoni/canvas-lms,snehakachroo1/LSI_replica,arrivu/arrivu-lms,utkarshx/canvas-lms,arrivu/hiring-site,loganrun/pincan,Rvor/canvas-lms,eCNAP/CANVAS,loganrun/pincan,usmschuck/canvas,Unow/canvas-lms,roxolan/canvas-lms,fronteerio/canvas-lms,sli7246/canvas_branch,wimemx/Canvas,efrj/canvas-lms,utkarshx/canvas-lms,wrdsb/canvas-lms,Unow/ins,HotChalk/canvas-lms,sdeleon28/canvas-lms,loganrun/pincan,greyhwndz/canvas-lms,samuels410/greatlakes-lms,wye0220/shindig-canvas,arrivu/arrivu-lms,greyhwndz/canvas-lms,Unow/canvas-lms,ShreniiNepal/shrenii_lmp,arrivu/hiring-site,juoni/canvas-lms,kyroskoh/canvas-lms,wye0220/shindig-canvas,gbleydon/canvas-lms,antoniuslin/canvas-lms,venturehive/canvas-lms,greyhwndz/canvas-lms,arrivu/jigsaw-lms,wimemx/Canvas,Jyaasa/canvas-lms,tgroshon/canvas-lms,narigone/canvas,arrivu/arrivu-lms,leftplusrightllc/canvas-lms,instructure/canvas-lms,parbros/red-innovadores-lms,sfu/canvas-lms,ShreniiNepal/shrenii_lmp,sli7246/canvas_branch,samuels410/greatlakes-lms,jay3126/canvas-lms,arrivu/jigsaw-lms,arrivu/qibla-ecampus,eCNAP/CANVAS,wimemx/Canvas,juoni/canvas-lms,kyroskoh/canvas-lms,landonwilkins/canvas-lms,whalejasmine/canvas-lms,parbros/red-innovadores-lms,Jyaasa/canvas-lms,Rvor/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,shidao-fm/canvas-lms,juoni/canvas-lms,sli7246/canvas_branch,landonwilkins/canvas-lms,samuels410/greatlakes-lms,instructure/canvas-lms,va7map/canvas-lms,shidao-fm/canvas-lms,fronteerio/canvas-lms,efrj/canvas-lms,snehakachroo1/LSI_replica,samuels410/greatlakes-lms,nditech/red-innovadores-lms,usmschuck/canvas,usmschuck/canvas,venturehive/canvas-lms,AndranikMarkosyan/lms,djbender/canvas-lms,grahamb/canvas-lms,wrdsb/canvas-lms,merichar/canvas-lms,djbender/canvas-lms,instructure/canvas-lms,roxolan/canvas-lms,parbros/red-innovadores-lms,rup/Tarrax,tgroshon/canvas-lms,gbleydon/canvas-lms,whalejasmine/canvas-lms,djbender/canvas-lms,arrivu/hoodemo,va7map/canvas-lms,wrdsb/canvas-lms,matematikk-mooc/canvas-lms,arrivu/qibla-ecampus,SwinburneOnline/canvas-lms,dgynn/canvas-lms,HotChalk/canvas-lms,AndranikMarkosyan/lms,narigone/canvas,SwinburneOnline/canvas-lms,antoniuslin/canvas-lms,utkarshx/canvas-lms,sfu/canvas-lms,usmschuck/canvas,sfu/canvas-lms,Rvor/canvas-lms,merichar/canvas-lms,instructure/canvas-lms,utkarshx/canvas-lms,landonwilkins/canvas-lms,HotChalk/canvas-lms,matematikk-mooc/canvas-lms,leftplusrightllc/canvas-lms,nditech/red-innovadores-lms,redconfetti/canvas-lms