提交 623da132 编写于 作者: R Robin Dupret

A tiny pass through the PostgreSQL guide [ci skip]

上级 ddf32dae
...@@ -171,7 +171,7 @@ event.ends_at # => Thu, 13 Feb 2014 ...@@ -171,7 +171,7 @@ event.ends_at # => Thu, 13 Feb 2014
* [type definition](http://www.postgresql.org/docs/9.3/static/rowtypes.html) * [type definition](http://www.postgresql.org/docs/9.3/static/rowtypes.html)
Currently there is no special support for composite types. They are mapped to as Currently there is no special support for composite types. They are mapped to
normal text columns: normal text columns:
```sql ```sql
...@@ -287,8 +287,9 @@ user.save! ...@@ -287,8 +287,9 @@ user.save!
* [type definition](http://www.postgresql.org/docs/9.3/static/datatype-net-types.html) * [type definition](http://www.postgresql.org/docs/9.3/static/datatype-net-types.html)
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 The types `inet` and `cidr` are mapped to Ruby
`macaddr` type is mapped to normal text. [`IPAddr`](http://www.ruby-doc.org/stdlib-2.1.1/libdoc/ipaddr/rdoc/IPAddr.html)
objects. The `macaddr` type is mapped to normal text.
```ruby ```ruby
# db/migrate/20140508144913_create_devices.rb # db/migrate/20140508144913_create_devices.rb
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册