Soc/app/models/todo.rb

7 lines
185 B
Ruby
Raw Normal View History

2024-01-07 13:22:21 +00:00
class Todo < ApplicationRecord
belongs_to :learning_goal
validates :done, inclusion: { in: [true, false] }
2024-01-07 13:50:53 +00:00
has_rich_text :description
has_one :user, through: :learning_goal
2024-01-07 13:22:21 +00:00
end