aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-05-28 23:38:09 +0930
committerGitHub <noreply@github.com>2017-05-28 23:38:09 +0930
commit7eb66b1617d9bda33860ce9869b07ff1a98fbef3 (patch)
treeb7e6a91777d633b9e9809733e5ce1b4997b0dfe1 /activerecord/test/models
parentaa3f4036c144ba2ab46d0ebac7a41bf18c8b6f47 (diff)
parent76e34405abc072d778f716ce97991e91ad336030 (diff)
downloadrails-7eb66b1617d9bda33860ce9869b07ff1a98fbef3.tar.gz
rails-7eb66b1617d9bda33860ce9869b07ff1a98fbef3.tar.bz2
rails-7eb66b1617d9bda33860ce9869b07ff1a98fbef3.zip
Merge pull request #28969 from kamipo/refactor_enum_to_use_value_instead_of_label
Refactor enum to use `value` instead of `label` in the scope
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/book.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb
index 5f8a8a96dd..6466e1b341 100644
--- a/activerecord/test/models/book.rb
+++ b/activerecord/test/models/book.rb
@@ -8,7 +8,7 @@ class Book < ActiveRecord::Base
has_many :subscribers, through: :subscriptions
enum status: [:proposed, :written, :published]
- enum read_status: { unread: 0, reading: 2, read: 3 }
+ enum read_status: { unread: 0, reading: 2, read: 3, forgotten: nil }
enum nullable_status: [:single, :married]
enum language: [:english, :spanish, :french], _prefix: :in
enum author_visibility: [:visible, :invisible], _prefix: true