lib/tasks/statesman.rake in statesman-10.0.0 vs lib/tasks/statesman.rake in statesman-10.1.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
namespace :statesman do
- desc "Set most_recent to false for old transitions and to true for the "\
+ desc "Set most_recent to false for old transitions and to true for the " \
"latest one. Safe to re-run"
task :backfill_most_recent, [:parent_model_name] => :environment do |_, args|
parent_model_name = args.parent_model_name
abort("Parent model name must be specified") unless parent_model_name
@@ -54,11 +54,11 @@
transition_class.where(id: latest_ids).
update_all(most_recent: true, updated_at: updated_at)
end
done_models += batch_size
- puts "Updated #{transition_class.name.pluralize} for "\
- "#{[done_models, total_models].min}/#{total_models} "\
+ puts "Updated #{transition_class.name.pluralize} for " \
+ "#{[done_models, total_models].min}/#{total_models} " \
"#{parent_model_name.pluralize}"
end
end
end