orbit-4-2/app/models/component.rb

10 lines
200 B
Ruby
Raw Permalink Normal View History

class Component
include Mongoid::Document
include Mongoid::Timestamps
field :key
field :document_class, :type => String
field :parent_id, :type => BSON::ObjectId, :index => true
end