app/models/decidim/accountability/status.rb in decidim-accountability-0.10.1 vs app/models/decidim/accountability/status.rb in decidim-accountability-0.11.0.pre1
- old
+ new
@@ -3,16 +3,16 @@
module Decidim
module Accountability
# The data store for a Status in the Decidim::Accountability component. It stores a
# key, a localized name, a localized description and and associated progress number.
class Status < Accountability::ApplicationRecord
- include Decidim::HasFeature
+ include Decidim::HasComponent
- feature_manifest_name "accountability"
+ component_manifest_name "accountability"
has_many :results, foreign_key: "decidim_accountability_status_id", class_name: "Decidim::Accountability::Result", inverse_of: :status, dependent: :nullify
- validates :key, presence: true, uniqueness: { scope: :decidim_feature_id }
+ validates :key, presence: true, uniqueness: { scope: :decidim_component_id }
validates :name, presence: true
end
end
end