Skip to content

Instantly share code, notes, and snippets.

@edgar
Created September 12, 2011 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgar/1212801 to your computer and use it in GitHub Desktop.
Save edgar/1212801 to your computer and use it in GitHub Desktop.
class Stream
include Mongoid::Document
include Mongoid::Timestamps
field :original_photo_id
field :locked, type: Boolean, default: false
field :popular, type: Boolean, default: false
field :popular_order
field :photos_count
field :title
attr_accessible :locked
referenced_in :user
references_many :photos
references_many :trackings
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment