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
Please sign in to leave a comment.
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.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
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
Hello Kedar,
Please file a feature request in YouTrack.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
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).