Sha256: 537f3df37379f91b74b80c63066bc2106663b3c26d509543784a44466edf6328

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

require "mongoid"

class Filter
	include Mongoid::Document
	store_in collection: "Filter"
	field :type
	field :property
	field :operator
	field :value, type: Array
	belongs_to :Column

  validates :Column_id, :presence => { :message => :required }
  validates :Column, :presence =>  { :message => :required, :if => :Column_id } 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fetcher-mongoid-models-0.0.0 app/models/filter.rb