Skip to content

Commit 6a8c4f0

Browse files
Merge pull request #50531 from wlads/postgresql-guide-fix-enum-syntax
[ci skip] Utilize new `enum` syntax in PostgreSQL guide (cherry picked from commit 9fc5572)
1 parent 383c98d commit 6a8c4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/active_record_postgresql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ end
274274
```ruby
275275
# app/models/article.rb
276276
class Article < ApplicationRecord
277-
enum status: {
277+
enum :status, {
278278
draft: "draft", published: "published"
279-
}, _prefix: true
279+
}, prefix: true
280280
end
281281
```
282282

0 commit comments

Comments
 (0)