aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-08-08 18:37:22 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-08-08 18:37:22 +0900
commitc0747e2f39a1c040c50e63fb41e23dfa6e30f2fc (patch)
tree62c1754d2c048161864b55fad53e4cfd659839a5 /guides
parent64b5c849a071e7cd2c244258f2fb43850df53cb7 (diff)
downloadrails-c0747e2f39a1c040c50e63fb41e23dfa6e30f2fc.tar.gz
rails-c0747e2f39a1c040c50e63fb41e23dfa6e30f2fc.tar.bz2
rails-c0747e2f39a1c040c50e63fb41e23dfa6e30f2fc.zip
use uuid method to define the UUID type [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_postgresql.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md
index fe112a4708..9d495dfacb 100644
--- a/guides/source/active_record_postgresql.md
+++ b/guides/source/active_record_postgresql.md
@@ -252,7 +252,7 @@ extension to use uuid.
```ruby
# db/migrate/20131220144913_create_revisions.rb
create_table :revisions do |t|
- t.column :identifier, :uuid
+ t.uuid :identifier
end
# app/models/revision.rb