frankfurter/config/initializers/sequel.rb
Hakan Ensari cf373f3efb Denormalise database schema
This way, we will have no issue fitting the entire dataset on the free tier of Heroku
2018-10-07 01:08:45 +01:00

11 lines
248 B
Ruby

# frozen_string_literal: true
require 'pg'
require 'sequel'
Sequel.extension :pg_json_ops
Sequel.single_threaded = true
Sequel.connect(ENV['DATABASE_URL'] ||
"postgres://localhost/frankfurter_#{App.env}")
.extension :pg_json