Remove tasks to upgrade to version 1.3.0

These tasks are not needed for new installations, and in existing
installations they've already been executed when upgrading to version
1.3.0.
This commit is contained in:
Javi Martín
2021-08-27 14:05:29 +02:00
parent 0cdddc3647
commit 1b2256e084
5 changed files with 0 additions and 306 deletions

View File

@@ -4,17 +4,4 @@ namespace :db do
@avoid_log = args[:print_log] == "avoid_log"
load(Rails.root.join("db", "dev_seeds.rb"))
end
desc "Load SDG content into database"
task load_sdg: :environment do
ApplicationLogger.new.info "Adding Sustainable Development Goals content"
load(Rails.root.join("db", "sdg.rb"))
WebSection.where(name: "sdg").first_or_create!
end
desc "Calculates the TSV column for all polls and legislation processes"
task calculate_tsv: :environment do
Poll.find_each(&:calculate_tsvector)
Legislation::Process.find_each(&:calculate_tsvector)
end
end