• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

rails-model-schema

A short description of your package
juliogarciag
0.9.0 3,528
14
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by