diff --git a/.ruby-version b/.ruby-version index 1f7da99d..6a81b4c8 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.7 +2.7.8 diff --git a/Gemfile b/Gemfile index 0b941c67..5dedee90 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } -ruby "2.7.7" +ruby "2.7.8" gem "rails", "6.1.6" diff --git a/Gemfile.lock b/Gemfile.lock index ac7195f3..d7aa2374 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -692,7 +692,7 @@ DEPENDENCIES webpacker (~> 4) RUBY VERSION - ruby 2.7.7p221 + ruby 2.7.8p225 BUNDLED WITH 2.1.4 diff --git a/lib/tasks/split_teacher_pending_state.rake b/lib/tasks/split_teacher_pending_state.rake index 127a16fe..997c7f70 100644 --- a/lib/tasks/split_teacher_pending_state.rake +++ b/lib/tasks/split_teacher_pending_state.rake @@ -3,7 +3,13 @@ namespace :split_teacher_pending_state do desc "Change all the pending state into not_reviewed state" task split: :environment do - Teacher.where(application_status: "pending").update_all(application_status: "not_reviewed") - Teacher.where(application_status: nil).update_all(application_status: "not_reviewed") + puts "Updating Pending/nil status to not_reviewed" + puts "Pending -> not reviewed" + puts Teacher.where(application_status: "Pending").update_all(application_status: "not_reviewed") + puts "Nil -> not_reviewed" + puts Teacher.where(application_status: nil).update_all(application_status: "not_reviewed") + puts "empty string -> not_reviewed" + puts Teacher.where(application_status: '').update_all(application_status: "not_reviewed") + puts "Done." end end