Rails - view model attributes from database
已回答
When working with Rails I have to jump between a model and the database definition to determine what attributes the model has. Is there a window that shows a model's attributes based on the database columns? Preferably this would include inherited attributes as well.
I would think the Structure view would provide this, but it does not.
Also, why does the Structure view not provide a way to sort or filter based on type (method, @, class, etc)?
The Rails Model Dependency Diagram almost provides this information, but it is for the entire project. is there a way to have it show only the current model?
请先登录再写评论。
For the atom editor, there is a plugin that provides the model schema view: https://atom.io/packages/rails-model-schema
Hopefully RubyMine has something similar.
Hello,
unfortunately at the moment it's not possible but we have a similar request on our tracker so please take a look at it and add your vote in case you find it related:
https://youtrack.jetbrains.com/issue/RUBY-15596
Theres one plugin that do it in part https://plugins.jetbrains.com/plugin/11490-rails-model-shadow
Hi!
More information regarding Ruby on Rails you can find here!