require 'dotenv' Dotenv.load(File.expand_path('../.env')) def connect Sequel.connect( adapter: :postgres, database: ENV['DB_DATABASE'], user: ENV['DB_USERNAME'], password: ENV['DB_PASSWORD'], ) end