File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1369,6 +1369,8 @@ function! s:readable_default_rake_task(...) dict abort
13691369 endif
13701370 elseif self .name () = ~# ' \<db/seeds\.rb$'
13711371 return ' db:seed'
1372+ elseif self .name () = ~# ' \<db/'
1373+ return ' db:migrate:status'
13721374 elseif self .type_name (' controller' ) && lnum
13731375 let lm = self.last_method(lnum)
13741376 if lm != ''
@@ -2835,7 +2837,7 @@ function! s:schemaEdit(cmd,...)
28352837 let schema = ' db/' .s: environment ().' _structure.sql'
28362838 endif
28372839 endif
2838- return s: findedit (cmd,schema.(a: 0 ? ' #' .a: 1 : ' ' ))
2840+ return s: findedit (cmd,schema.(a: 0 && a: 1 !=# ' . ' ? ' #' .a: 1 : ' ' ))
28392841endfunction
28402842
28412843function ! s: fixturesEdit (cmd,... )
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ CompilerSet errorformat^=
3434 \O verwrite% .% #% \\ S % \\ + \ \ % #% m % \\ x1b[0 m\ \ % #% f ,
3535 \% - GOverwrite% .% #\" h \" % .% #,
3636 \% + GCurrent\ version :% .% #,
37+ \% + G\ % #Status\ % #Migration\ ID% .% #,
3738 \% + G\ % #Prefix\ % #Verb% .% #,
3839 \% + G\ % #Code\ LOC:\ % .% #,
3940 \% + EUsage:% .% #,
You can’t perform that action at this time.
0 commit comments