github/janky — pull request #75 by jessedearing (2012-06-13 03:54:08+00:00)
Title: Fixes Build model on Postgres

This fixes a SQL quote syntax error on Postgres.

I was getting the following error message after I upgraded to the latest version:

```
!! Unexpected error while processing request: PG::Error: ERROR: syntax error at or near "."
2012-06-13T03:44:41+00:00 app[web.1]: LINE 1: SELECT `builds`.`id`, `builds`.`green`, `builds`.`url`, `bu...
2012-06-13T03:44:41+00:00 app[web.1]: ^
2012-06-13T03:44:41+00:00 app[web.1]: : SELECT `builds`.`id`, `builds`.`green`, `builds`.`url`, `builds`.`compare`, `builds`.`started_at`, `builds`.`completed_at`, `builds`.`commit_id`, `builds`.`branch_id`, `builds`.`created_at`, `builds`.`updated_at`, `builds`.`room_id` FROM "builds" WHERE "builds"."commit_id" = 491 ORDER BY "builds"."id" DESC LIMIT 1
```