README.md in scripterator-1.2.0 vs README.md in scripterator-1.3.0
- old
+ new
@@ -30,11 +30,19 @@
before do
User.skip_some_callbacks_we_want_to_avoid_during_script_running
end
+ before_batch do |batch|
+ # do stuff
+ end
+
for_each_user do |user|
user.do_legacy_conversion
+ end
+
+ after_batch do |batch|
+ # do stuff
end
after do
# some code to run after everything's finished
end