Sha256: 0a82be2be5f635f189e111bd5ed98914582f13ce340000cd58b7489474408c5c
Contents?: true
Size: 298 Bytes
Versions: 15
Compression:
Stored size: 298 Bytes
Contents
class Preference include Mongoid::Document field :name, type: String field :value, type: String field :ranking, type: Integer has_and_belongs_to_many :people, validate: false validates_length_of :name, minimum: 2, allow_nil: true scope :posting, where(:value.in => [ "Posting" ]) end
Version data entries
15 entries across 15 versions & 6 rubygems