tickets/app/models/ticket_query.rb

9 lines
171 B
Ruby

class TicketQuery
include Mongoid::Document
include Mongoid::Timestamps
field :query
belongs_to :ticket
has_many :ticket_query_responses, :dependent => :destroy
end