답변

3

scope :history, where('$or' => [{:end.ne => nil}, {:end.lt => Time.current}]) 
시도
관련 문제