Versions VS Approvals
ruby
dev.to
Today I encountered a tricky problem in a seemingly simple "one record is not showing up in #index" bugfix task. The problem stems from this data situation: Task.pluck(:project_version_id, :is_actual) #=> [ [1, true], [nil, true] ] Both versioned and non-versioned records can be :actual, can this be right? Thinking about it, I came to the realization that working with versioned data requires clear answers to these questions: Are 'draft' data ever persisted in a sort of 'lobby'?