Install ruby-pg by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-pg
Description:
PostgreSQL interface for Ruby
ruby-pg module allows Ruby programs to interface with the PostgreSQL database engine. . It supports the functions defined in libpq library.
Homepage: http://bitbucket.org/ged/ruby-pg
Version: 0.19.0-2build1
Section: universe/ruby