options rake db:migrate:down/up from rigth click

to click with the right mouse button on the migration would be interesting to present the options down / up to perform the operation equivalent:

rake db:migrate:down/up VERSION = version_of_migration


Attachment(s):
migration_up_down.png
0
Avatar
Permanently deleted user

Sounds pretty reasonable, filled an issue: http://www.jetbrains.net/jira/browse/RUBY-3882

Regards,
Oleg

0

Hi Alexandre,

1. And what is use case for such actions? Do you need to use them frequently?
2. RM allows quickly execute migration with Alt+Shift+R/Option+R shortcut. In current implementation RM allows to select VERSION for db:migrate rake tasks. We can fix dialogs for db:migrate:up, db:migrate:down rake tasks and the will be similar to db:migrate. Will it suit you?

0
Avatar
Permanently deleted user

The right-click the mouse is  only a facility to enter the version of migrate which is often subject to error as a bad type in and for which often make the up and down several times while developing the migrate .
Perhaps by selecting Ctrl + Alt + Shift + R and select the db: migrate: down version of a screen could display a auto-complete versions of

Sorry my english

0

I've update dialogs for "db:migrate:up" and "db:migrate:down. See screenshot:
Picture 7.png
Now if you invoke Rake tasks list dialog (Alt+Shift+R)
* from migration file in editor
* from migration file node in Project/Rails view
and type "up" or "down"(for db:migrate:up/db:migrate:down) RM automatically preselect current migration version. Also you can map migrate:up/down actions on keyboard shortcuts. By the way combobox with whole list of migrations will be focused by default thus with up/down arrows your can change VERSION.

I'm not sure that there is real reason in adding db:migrate:up,db:migrate:down actions directly in context menu, but if new behaviour will not suit you we will consider your suggestion again. Please try it and send us feedback when new RubyMine EAP will be published.

0
Avatar
Permanently deleted user

Hi !
This feature is very, very useful !!!

His best idea was that the context menu.
Forgive me for not mentioning, but db: migrate: redo logs the up and down, then add also interesting series.
0

db: migrate: redo logs the up and down, then add also interesting series.

I've filled an issue - http://www.jetbrains.net/jira/browse/RUBY-3961

His best idea was that the context menu.

Sorry this phrase isn't clear for me. What do you mean?
1. Add actions db:migrate:up/down to context menu is better than analyzing context for rake tasks
or
2. New feature (analyzing context of rake tasks) is better that adding actions up/down to context menu.

0
Avatar
Permanently deleted user

Sorry my english !

Your solution is better !

Congratulations !!!


Alexandre Riveira

0

请先登录再写评论。