Rails Model Schema
A Atom package to show the schema of your Rails models when you open a file. It looks like this:
It's automatic when you open a ruby file with a class declaration. If you want to toggle the sidebar for some reason, you have to use the next keyboard shortcut:
⌃ + ⇧ + ⌘ + M (control + shift + command + m)
Please create an issue if you want to suggest a better (more comfortable) shortcut.
- For now, it only displays each attributes's name and type. (If you have an idea of how to show the
:default, etc options of each column, make an issue with the idea)
- It works by reading the class name of a ruby file, so if the model doesn't have the name of the table (for example, when setting the table name with
self.table_name=), it won't work.
- Make tests.
- Fix the drawbacks listed above.