frankfurter/config/initializers/sequel.rb

11 lines
248 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-14 22:16:21 +02:00
2014-03-14 13:08:48 +01:00
require 'pg'
require 'sequel'
Sequel.extension :pg_json_ops
2014-03-14 13:08:48 +01:00
Sequel.single_threaded = true
Sequel.connect(ENV['DATABASE_URL'] ||
"postgres://localhost/frankfurter_#{App.env}")
.extension :pg_json