Magistrate Postgres Stats for Developers

Rails

Install the Plugin #

Add the gem:

gem 'magistrate', git: "YOUR_MAGISTRATE_URL"

Update Gemfile:

bundle update

Add the Plugin to Your App

# config/initializers/magistrate.rb
Magistrate.setup do |config|
config.provider = 'heroku'
end

Mount the app in your routes.rb file:

mount Magistrate::Engine => 'magistrate'

Secure your route in production #

Coming Soon