The README for sinatra/sequel states that the
in `db': No database associated with Sequel::Model: have you called Sequel.connect
or Sequel::Model.db= ? (Sequel::Error)
:set database, ENV['DATABASE_URL']
As I answered in the linked GitHub issue, the best way to do it is to simply call
database from the
configure block, and this will invoke the default logic.
configure do abort 'Unable to establish database connection' unless database end