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