Kolla
Zero-dependency CLI that parses db/schema.rb and answers "what's in this table?" in under a second — without booting Rails.
Installation
gem install kolla
Usage
List all tables:
$ kolla
users
posts
comments
Inspect a table:
$ kolla users
name (string, null: false)
email (string)
life_in_seconds (bigint, default: 0)
admin (boolean, default: false)
created_at (datetime, null: false)
index: [email] (unique)
index: [name]
Use a custom schema path:
$ kolla -f path/to/schema.rb users
Options
-h, --help Show help
-v, --version Show version
-f, --file PATH Path to schema.rb (default: db/schema.rb)
What gets filtered
Rails internal tables (action_*, active_*) are excluded from the table list.
Development
git clone https://github.com/antonysastre/kolla.git
cd kolla
bundle install
rake test
License
MIT