Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ lead to broken code.
----
class Transaction < ApplicationRecord
# bad - implicit values - ordering matters
enum type: %i[credit debit]
enum :type, %i[credit debit]

# good - explicit values - ordering does not matter
enum type: {
enum :type, {
credit: 0,
debit: 1
}
Expand Down
Loading