Skip to content

Commit

Permalink
Add Rake task to migrate timeline events
Browse files Browse the repository at this point in the history
We're going to rename the `state_changed` event type to
`status_changed`.
  • Loading branch information
thomasleese committed Sep 27, 2023
1 parent 2dc34b6 commit 6e971e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/timeline_events.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace :timeline_events do
desc "Migrate state_changed events"
task migrate_state_changed: :environment do
TimelineEvent.where(event_type: "state_changed").update_all(
event_type: "status_changed",
)
end
end

0 comments on commit 6e971e3

Please sign in to comment.