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 41cf0a8 commit 58679f5
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 58679f5

Please sign in to comment.