Calendar in Ruby with PSQL