Need help with rails_db_info?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

209 Stars 8 Forks MIT License 103 Commits 0 Opened issues


Rails engine which will give you a quick display of your database schema and contents for reference

Services available


Need anything else?

Contributors list

No Data

Rails database info Build Status Code Climate Gem Version

Adds an html endpoint to your Rails application which will give you a quick display of your database schema and contents for reference at


Demo available at




Add this to the development group in your Gemfile

group :development do
  gem 'rails_db_info'


bundle install


and you will see your database schema and values.

For users of catch-all routes

If (and only if) you have catch all routes like

get '*path' => 'your_controller#your_action'
in your app already, you can manually add railsdbinfo to your routes (config/routes.rb) before the catch-all routes like this.
if Rails.env.development?
  mount_rails_db_info as: 'rails_db_info_engine'
  # mount_rails_db_info is enough for rails version < 4
get '*path' => 'your_controller#your_action'


I was using Annotate to annotate my models with schema info. When I saw Sextant I got an idea to create something similar for database and the rest is history :)

Todo / Ideas

  • [ ] Improve CSS
  • [ ] Add small bar (like miniprofiler has) at top of the page or add key listener(s). When triggered it would show database info. For example you are working on UsersController and when you press Cmd+D users table info slides down.
  • [ ] Generator to copy assets in case asset pipeline is disabled

Contributions welcome :)


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Running tests

$ RAILS_ENV=test bundle exec rake db:migrate
$ bundle exec rake

To run tests for specific rails version use custom Gemfile from gemfiles folder

$ BUNDLE_GEMFILE=gemfiles/rails_3-2-stable.gemfile bundle install
$ BUNDLE_GEMFILE=gemfiles/rails_3-2-stable.gemfile bundle exec rake


This project rocks and uses MIT-LICENSE.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.