mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
cf373f3efb
This way, we will have no issue fitting the entire dataset on the free tier of Heroku
11 lines
248 B
Ruby
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
|