class Checkpoint < ApplicationRecord enum kind: {comment: 0, checkin: 1, checkout: 2} belongs_to :run belongs_to :user has_one_attached :save_file end