@@ -0,0 +1,9 @@ |
||
| 1 |
+class ResetDataOutputAgents < ActiveRecord::Migration |
|
| 2 |
+ def up |
|
| 3 |
+ Agents::DataOutputAgent.find_each do |agent| |
|
| 4 |
+ agent.memory = {}
|
|
| 5 |
+ agent.save(validate: false) |
|
| 6 |
+ agent.latest_events(true) |
|
| 7 |
+ end |
|
| 8 |
+ end |
|
| 9 |
+end |