Sha256: e3c4250297d748d9ed07192b90c5429beabcb01eeb0f400cd39cde2b4a1b6eb7

Contents?: true

Size: 588 Bytes

Versions: 19

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

class RenameBbStatusTallyToTallyStarted < ActiveRecord::Migration[6.1]
  class Election < ApplicationRecord
    self.table_name = :decidim_elections_elections
  end

  def up
    # rubocop:disable Rails/SkipsModelValidations
    Election.where(bb_status: "tally").update_all(bb_status: "tally_started")
    # rubocop:enable Rails/SkipsModelValidations
  end

  def down
    # rubocop:disable Rails/SkipsModelValidations
    Election.where(bb_status: "tally_started").update_all(bb_status: "tally")
    # rubocop:enable Rails/SkipsModelValidations
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.9 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.28.3 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.8 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.28.2 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.7 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.28.1 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.6 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.28.0 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.5 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.28.0.rc5 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.28.0.rc4 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.4 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.3 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.2 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.1 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.0 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.0.rc2 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb
decidim-elections-0.27.0.rc1 db/migrate/20220404112802_rename_bb_status_tally_to_tally_started.rb