App is single-threaded

This commit is contained in:
Hakan Ensari 2012-11-21 18:17:29 +00:00
parent 55bcf91219
commit 4b5c870e15

View File

@ -2,6 +2,8 @@ require 'sequel'
Sequel.connect ENV['DATABASE_URL'] || 'postgres://localhost/fixer'
#Sequel.single_threaded = true
class Currency < Sequel::Model
def self.last_date
order(:date).last.date