A package to show your Rails models schemas when you see a file on Atom. It's that easy.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
keymaps
lib
menus
spec/files
styles
.gitignore
CHANGELOG.md
LICENSE.md
NOTES.md
README.md
package.json

README.md

Rails Model Schema

A Atom package to show the schema of your Rails models when you open a file. It looks like this:

screencast

Usage

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.

Current Drawbacks

  • For now, it only displays each attributes's name and type. (If you have an idea of how to show the :limit, :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.

TODO

  • Make tests.
  • Fix the drawbacks listed above.