Fix code fences
This commit is contained in:
@@ -14,7 +14,7 @@ in Rails:
|
||||
=> #<Goal id: 1, description: "Run a mile", created_at: "2008-09-09 19:32:57", updated_at: "2008-09-09 19:32:57">
|
||||
>> Goal.find(:all, :conditions => ['created_at < ?', Time.now])
|
||||
=> []
|
||||
````
|
||||
```
|
||||
|
||||
Huh? Checking the logs, we see that the two commands above correspond to
|
||||
the following queries:
|
||||
@@ -22,7 +22,7 @@ the following queries:
|
||||
```sql
|
||||
INSERT INTO "goals" ("updated_at", "description", "created_at") VALUES('2008-09-09 19:32:57', 'Run a mile', '2008-09-09 19:32:57')
|
||||
SELECT * FROM "goals" WHERE created_at < '2008-09-09 15:33:17'
|
||||
````
|
||||
```
|
||||
|
||||
Rails stores `created_at` relative to [Coordinated Universal
|
||||
Time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time), while
|
||||
|
||||
Reference in New Issue
Block a user