1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

pg guide, minor copy edits

This commit is contained in:
Yves Senn 2014-06-06 16:50:10 +02:00
parent a62001c542
commit 9a0c2e5c62

View file

@ -8,6 +8,7 @@ After reading this guide, you will know:
* How to use PostgreSQL's datatypes.
* How to use UUID primary keys.
* How to implement full text search with PostgreSQL.
* How to back your Active Record models with views.
--------------------------------------------------------------------------------
@ -324,7 +325,8 @@ macbook.address
* [type definition](http://www.postgresql.org/docs/9.3/static/datatype-geometric.html)
All geometric types are mapped to normal text.
All geometric types, with the exception of `points` are mapped to normal text.
A point is casted to an array containing `x` and `y` coordinates.
UUID Primary Keys
@ -428,7 +430,7 @@ second = Article.create! title: "Brace yourself",
Article.count # => 1
first.archive!
p Article.count # => 2
Article.count # => 2
```
NOTE: This application only cares about non-archived `Articles`. A view also