Retaining Hierarchy Tabs
By default, every time you build a new hierarchy, RubyMine overwrites the current tab in the Hierarchy tool window. You can retain the contents of the desired tabs and have next hierarchies built in new tabs.
To retain a hierarchy tab
In the Hierarchy tool window, click the Pin Tab button on the toolbar.