Skip to content

Commit e228540

Browse files
committed
Related file for model is now schema definition
1 parent 0b1166d commit e228540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2843,7 +2843,7 @@ function! s:RelatedFile()
28432843
elseif t=~ '^helper\>'
28442844
return s:findlayout(s:controller())
28452845
elseif t =~ '^model-arb\>'
2846-
return rails#app().migration('create_'.rails#pluralize(s:gsub(s:model(),'/','_')))
2846+
return rails#app().migration('0#'.rails#pluralize(s:gsub(s:model(),'/','_')))
28472847
elseif t =~ '^model-aro\>'
28482848
return s:sub(f,'_observer\.rb$','.rb')
28492849
elseif t =~ '^api\>'

doc/rails.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ The easiest way to learn these commands is to experiment. A few examples of
324324
alternate and related files follow:
325325

326326
Current file Alternate file Related file ~
327-
model unit test related migration
327+
model unit test schema definition
328328
controller (in method) functional test template (view)
329329
template (view) helper controller (jump to method)
330330
migration previous migration next migration

0 commit comments

Comments
 (0)