1 2 3 4 5 6 7 8 9 10
class Token < CouchRest::Model::Base use_database :tokens property :user_id, String, accessible: false validates :user_id, presence: true end