How to use Sequel with ActiveRecord database
Sometimes we want to query rails database outside of a rails app. But should you always bring AR for this? No, lightweight Sequel can handle this job pretty well. Check the guide Querying in Sequel to understand basics.
1) Add to Gemfile gems pg and sequel: