Model -> Migration shortcut?

Say I am editing a Rails model User. I have a related Migration. What is the shortcut so that it opens the migration in editor?
Alt+Shift+N (Rails...) only makes viewing the non-migration related things (controller, view, test) visible.

Thanks,
Kedar

4 comments
Comment actions Permalink

Hello Kedar,

There is no direct relationship between a model an a migration. A migration
can affect multiple models, and each model can be configured through multiple
migrations. Because of that ambiguity, we don't provide any support for navigating
from a model to migrations.

Say I am editing a Rails model User. I have a related Migration. What
is the shortcut so that it opens the migration in editor?

AltShiftN (Rails...) only makes viewing the non-migration related
things (controller, view, test) visible.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Dimitry,

I understand. But give me something.

During a normal Rails development workflow, I need to constantly flock to and fro between a Model and its (first) migration. Having to do Ctrl+E or Ctrl+Tab does not necessarily help. How about taking me to the migration that creates the table for the model?

Thanks,
Kedar

0
Comment actions Permalink

Hello Kedar,

Please file a feature request in YouTrack.

I understand. But give me something.

During a normal Rails development workflow, I need to constantly flock
to and fro between a Model and its (first) migration. Having to do
CtrlE or CtrlTab does not necessarily help. How about taking me to
the migration that creates the table for the model?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

OK, I will.

(Also, note that if I have a controller in editor, Alt+Shift+N -> View gives me a little popup that allows me to choose a view. The point is that a view is also not unique to a controller method although I know that it is generally associated with a controller :action. My request is to do the same with migration).

0

Please sign in to leave a comment.