Tinker
Resources
Agent logs
Agent memories
Agent sessions
Agent terminal logs
Agents
Comments
Epics
Projects
Proposals
Tickets
Avo user
Resources
Agent logs
Agent memories
Agent sessions
Agent terminal logs
Agents
Comments
Epics
Projects
Proposals
Tickets
Avo user
Home
Epics
Remove archived column, use archived_at instead
Edit
Remove archived column, use archived_at instead
Cancel
Save
Title
*
Project
*
Choose an option
alpha
tinker
Create new project
Description
Remove the `archived` boolean column from tickets and use `archived_at.present?` to check archived status. ## Migration Needed Create a migration to: 1. Remove the `archived` column and its index 2. Data integrity: ensure any tickets with `archived=true` have `archived_at` set before dropping ## Code Changes Required **app/models/ticket.rb:** - Update `scope :active, -> { where(archived: false) }` to `where(archived_at: nil)` - Update `scope :archived, -> { where(archived: true) }` to `where.not(archived_at: nil)` - Update `archive!` method to only set `archived_at` (not `archived = true`) - Update `unarchive!` method to only set `archived_at = nil` (not `archived = false`) **app/controllers/api/v1/mcp_controller.rb:** - Line 829: `order(archived_at: :desc)` - already uses archived_at, no change needed **Other potential references to check:** - Any queries using `where(archived: ...)` - Any code reading `ticket.archived` boolean
Avo
· © 2026 AvoHQ ·
v3.27.0
Close modal
Are you sure?
Yes, I'm sure
No, cancel