diff options
author | Yury Korolev <yurykorolev@me.com> | 2013-11-02 17:48:16 -0700 |
---|---|---|
committer | Yury Korolev <yurykorolev@me.com> | 2013-11-02 17:48:16 -0700 |
commit | 7caa09c5e1833ccc6b209a71588a44fb91606246 (patch) | |
tree | a322a2f346b15c85e7843d33e2de309783744ce1 /activerecord/test/models | |
parent | 09447929a06a4650d82ed51af56e3365ec7583a6 (diff) | |
download | rails-7caa09c5e1833ccc6b209a71588a44fb91606246.tar.gz rails-7caa09c5e1833ccc6b209a71588a44fb91606246.tar.bz2 rails-7caa09c5e1833ccc6b209a71588a44fb91606246.zip |
Explicit mapping for enum
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/book.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb index a527e41a8a..781f67557b 100644 --- a/activerecord/test/models/book.rb +++ b/activerecord/test/models/book.rb @@ -8,4 +8,5 @@ class Book < ActiveRecord::Base has_many :subscribers, through: :subscriptions enum status: [:proposed, :written, :published] + enum read_status: {unread: 0, reading: 2, read: 3} end |