diff --git a/lib/tasks/timeline_events.rake b/lib/tasks/timeline_events.rake new file mode 100644 index 0000000000..13bceac257 --- /dev/null +++ b/lib/tasks/timeline_events.rake @@ -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