Sha256: 35d4b293158a434dd6b83dc8171739e96c9f3b7e99bf986a7784115281863c46

Contents?: true

Size: 199 Bytes

Versions: 2

Compression:

Stored size: 199 Bytes

Contents

module Tasuku
  class Taskables::Question::Option < ActiveRecord::Base
    belongs_to :question
    has_many :votes
    has_many :answers, through: :votes

    validates_presence_of :text
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tasuku-1.1.0 app/models/tasuku/taskables/question/option.rb
tasuku-1.0.1 app/models/tasuku/taskables/question/option.rb