aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-06 16:50:10 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-13 10:07:35 +0200
commit9a0c2e5c626cfbde527013bd0cfcec682baa48fa (patch)
tree11e7fc1778e0455bcd2c8f9374cc49253bac618b /guides/source
parenta62001c5429723a78c7f382e34f157af1a668d68 (diff)
downloadrails-9a0c2e5c626cfbde527013bd0cfcec682baa48fa.tar.gz
rails-9a0c2e5c626cfbde527013bd0cfcec682baa48fa.tar.bz2
rails-9a0c2e5c626cfbde527013bd0cfcec682baa48fa.zip
pg guide, minor copy edits
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_record_postgresql.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md
index fa135b537c..248d4769a1 100644
--- a/guides/source/active_record_postgresql.md
+++ b/guides/source/active_record_postgresql.md
@@ -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