diff options
author | Arun Agrawal <arunagw@gmail.com> | 2014-11-22 09:08:34 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2014-11-22 09:08:34 +0100 |
commit | 555f95bd0621b8d2e666f6989927eee7d4b7f42d (patch) | |
tree | 50158d6d1303d28b2be6995699702dbdfc733734 /guides/source | |
parent | 71bb8c34f539f8ffbb7e7968f50f797e08812133 (diff) | |
parent | 85774cfb1ab424a58c1af6759ad8a42df85089bc (diff) | |
download | rails-555f95bd0621b8d2e666f6989927eee7d4b7f42d.tar.gz rails-555f95bd0621b8d2e666f6989927eee7d4b7f42d.tar.bz2 rails-555f95bd0621b8d2e666f6989927eee7d4b7f42d.zip |
Merge pull request #17712 from y-yagi/correct_postgres_guide
[ci skip] correct example output and filename in pg guide
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_record_postgresql.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md index 36345e3137..a2681a80e9 100644 --- a/guides/source/active_record_postgresql.md +++ b/guides/source/active_record_postgresql.md @@ -214,7 +214,7 @@ Currently there is no special support for enumerated types. They are mapped as normal text columns: ```ruby -# db/migrate/20131220144913_create_events.rb +# db/migrate/20131220144913_create_articles.rb execute <<-SQL CREATE TYPE article_status AS ENUM ('draft', 'published'); SQL @@ -276,7 +276,7 @@ end # Usage User.create settings: "01010011" user = User.first -user.settings # => "(Paris,Champs-Élysées)" +user.settings # => "01010011" user.settings = "0xAF" user.settings # => 10101111 user.save! |