From 7caa09c5e1833ccc6b209a71588a44fb91606246 Mon Sep 17 00:00:00 2001 From: Yury Korolev Date: Sat, 2 Nov 2013 17:48:16 -0700 Subject: Explicit mapping for enum --- activerecord/test/models/book.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/models') 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 -- cgit v1.2.3