This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :article do | |
task :migrate_to_disable_article_function => [:environment, :set_group_has_article_plugin_false, :make_moments_for_articles] | |
task :set_group_has_article_plugin_false do | |
progress_bar = ProgressBar.create(:title => "set group.has_article_plugin false", :total => 1) | |
Group.update_all has_article_plugin: false | |
progress_bar.progress += 1 | |
end | |
task :make_moments_for_articles do |