aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-20 23:10:48 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-21 12:45:58 -0200
commita0520fceff9148ebfbb2e09745ba1416bceef2bf (patch)
tree3bebe28c2bdac6c2a44580134f1824a33a5330ad /activerecord/test/models
parenta57a2bcf4a2c29519d553277e4439790ca443cc7 (diff)
downloadrails-a0520fceff9148ebfbb2e09745ba1416bceef2bf.tar.gz
rails-a0520fceff9148ebfbb2e09745ba1416bceef2bf.tar.bz2
rails-a0520fceff9148ebfbb2e09745ba1416bceef2bf.zip
Add more tests for the dirty feature for enums
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/book.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb
index 4cb2c7606b..2170018068 100644
--- a/activerecord/test/models/book.rb
+++ b/activerecord/test/models/book.rb
@@ -9,6 +9,7 @@ class Book < ActiveRecord::Base
enum status: [:proposed, :written, :published]
enum read_status: {unread: 0, reading: 2, read: 3}
+ enum nullable_status: [:single, :married]
def published!
super