spec/fixtures/models/card.rb in couchrest_model-2.1.0.rc1 vs spec/fixtures/models/card.rb in couchrest_model-2.2.0.beta1
- old
+ new
@@ -7,10 +7,11 @@
# Official Schema
property :first_name
property :last_name, :alias => :family_name
property :read_only_value, :read_only => true
property :cast_alias, Person, :alias => :calias
- property :fg_color, :default => '#000'
+ property :fg_color, String, :default => '#000'
+ property :bg_color, String, :protected => true
timestamps!
# Validation
validates_presence_of :first_name