Sha256: a15215dfe5885e4f3c3daafe544743e0e50d0a5d8555dce423782818d53d5706

Contents?: true

Size: 167 Bytes

Versions: 4

Compression:

Stored size: 167 Bytes

Contents

class Fan
  include Mongoid::Document
  include Mongoid::Timestamps

  field :name, type: String

  has_and_belongs_to_many :teams

  validates_presence_of(:name)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin-0.6.4 spec/dummy_app/app/mongoid/fan.rb
rails_admin-0.6.3 spec/dummy_app/app/mongoid/fan.rb
rails_admin-0.6.2 spec/dummy_app/app/mongoid/fan.rb
rails_admin-0.6.1 spec/dummy_app/app/mongoid/fan.rb