Skip to content

Commit 30d8f9d

Browse files
committed
:Rmigration 000 edits migration 000
I recently worked on an application in which some clown started the migrations at 0, for reasons unknown.
1 parent 5fbbf6d commit 30d8f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,7 @@ endfunction
23722372

23732373
function! s:app_migration(file) dict
23742374
let arg = a:file
2375-
if arg =~ '^0\+$\|^0*[#:]'
2375+
if arg =~ '^0$\|^0\=[#:]'
23762376
let suffix = s:sub(arg,'^0*','')
23772377
if self.has_file('db/schema.rb')
23782378
return 'db/schema.rb'.suffix

0 commit comments

Comments
 (0)