Sha256: 0a92e8a932c8a8e7bbdc3c1ea5fd31c418158a5bc96fe27dd83bcc44675d609c

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Elections
    # The data store for tracking asynchronous Actions done in the Bulletin Board from the Decidim::Elections component.
    class Action < ApplicationRecord
      belongs_to :election, foreign_key: "decidim_elections_election_id", class_name: "Decidim::Elections::Election"

      enum status: [:pending, :accepted, :rejected]
      enum action: [:start_key_ceremony, :start_vote, :end_vote, :start_tally]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-elections-0.24.3 app/models/decidim/elections/action.rb
decidim-elections-0.24.2 app/models/decidim/elections/action.rb
decidim-elections-0.24.1 app/models/decidim/elections/action.rb
decidim-elections-0.24.0 app/models/decidim/elections/action.rb
decidim-elections-0.24.0.rc2 app/models/decidim/elections/action.rb
decidim-elections-0.24.0.rc1 app/models/decidim/elections/action.rb