Files
codeocean/app/models/community_solution_contribution.rb
Sebastian Serth da4e10b990 Add CommunitySolution
* Also slightly refactor some JS files
2021-11-23 01:38:31 +01:00

15 lines
400 B
Ruby

# frozen_string_literal: true
class CommunitySolutionContribution < ApplicationRecord
include Creation
include Context
belongs_to :community_solution
belongs_to :community_solution_lock
validates :proposed_changes, boolean_presence: true
validates :timely_contribution, boolean_presence: true
validates :autosave, boolean_presence: true
validates :working_time, presence: true
end