aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_postgresql.md
diff options
context:
space:
mode:
authorJuanito Fatas <katehuang0320@gmail.com>2014-05-07 13:47:39 +0800
committerJuanito Fatas <katehuang0320@gmail.com>2014-05-07 13:47:39 +0800
commit278872abfb3359c97f673adf1503cc8d2fd21be8 (patch)
tree391e27d5b0133d1256b6373a4ca877d20da15de6 /guides/source/active_record_postgresql.md
parentaf864447f182e20bebebdb151201343e7d6c4904 (diff)
downloadrails-278872abfb3359c97f673adf1503cc8d2fd21be8.tar.gz
rails-278872abfb3359c97f673adf1503cc8d2fd21be8.tar.bz2
rails-278872abfb3359c97f673adf1503cc8d2fd21be8.zip
[ci skip] Add feature section and normalize prologue with other guides.
Also change Json => JSON. Fill Ruby's Range & IPAddr link.
Diffstat (limited to 'guides/source/active_record_postgresql.md')
-rw-r--r--guides/source/active_record_postgresql.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md
index c0cc3bc69d..ae767769dd 100644
--- a/guides/source/active_record_postgresql.md
+++ b/guides/source/active_record_postgresql.md
@@ -10,6 +10,15 @@ To get started with PostgreSQL have a look at the
[configuring Rails guide](configuring.html#configuring-a-postgresql-database).
It describes how to properly setup Active Record for PostgreSQL.
+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.
+
+--------------------------------------------------------------------------------
+
Datatypes
---------
@@ -99,7 +108,7 @@ profile.settings_will_change!
profile.save!
```
-### Json
+### JSON
* [type definition](http://www.postgresql.org/docs/9.3/static/datatype-json.html)
* [functions and operators](http://www.postgresql.org/docs/9.3/static/functions-json.html)
@@ -129,7 +138,7 @@ Event.where("payload->'kind' = ?", "user_renamed")
* [type definition](http://www.postgresql.org/docs/9.3/static/rangetypes.html)
* [functions and operators](http://www.postgresql.org/docs/9.3/static/functions-range.html)
-This type is mapped to Ruby [`Range`]() objects.
+This type is mapped to Ruby [`Range`](http://www.ruby-doc.org/core-2.1.1/Range.html) objects.
```ruby
# db/migrate/20130923065404_create_events.rb
@@ -279,7 +288,7 @@ user.save!
* [type definition](http://www.postgresql.org/docs/9.3/static/datatype-net-types.html)
-The types `inet` and `cidr` are mapped to Ruby [`IPAddr`]() objects. The
+The types `inet` and `cidr` are mapped to Ruby [`IPAddr`](http://www.ruby-doc.org/stdlib-2.1.1/libdoc/ipaddr/rdoc/IPAddr.html) objects. The
`macaddr` type is mapped to normal text.
### Geometric Types