diff --git a/lib/tasks/app.rake b/lib/tasks/app.rake index c8ab3b1458c05fc56ca777726b2c94e9f48aa941..db00725ff9ed9302f5db2dd18d64bfa2e8e52278 100644 --- a/lib/tasks/app.rake +++ b/lib/tasks/app.rake @@ -8,26 +8,8 @@ namespace :app do desc 'Fix things' task fix: :environment do - language = Language.first - User.find_each { |user| - user.confirm - user.role ||= :visitor - user.language ||= language - user.save - } - University.find_each { |university| - university.sms_sender_name ||= 'Osuny' - university.save - } - Communication::Website::Post.find_each { |post| - post.update(text: post.old_text) - } - Communication::Website::Page.find_each { |page| - page.update(text: page.old_text) - } - Communication::Website::Medium.find_each { |medium| - medium.send(:set_featured_images) - } + Communication::Website::Post.find_each { |post| post.update(text: post.old_text) } + Communication::Website::Page.find_each { |page| page.update(text: page.old_text) } end namespace :db do