app/models/popolo/contact_detail.rb in popolo-0.0.3 vs app/models/popolo/contact_detail.rb in popolo-0.1.0
- old
+ new
@@ -14,9 +14,13 @@
field :type, type: String
# A value, e.g. a phone number or email address.
field :value, type: String
# A note, e.g. for grouping contact details by physical location.
field :note, type: String
+ # The date from which the contact detail is valid.
+ field :valid_from, type: DateString
+ # The date from which the contact detail is no longer valid.
+ field :valid_until, type: DateString
validates_presence_of :type, :value
end
end