diff --git a/server/app/models/feedback.rb b/server/app/models/feedback.rb index 888b31fb..f6e52081 100644 --- a/server/app/models/feedback.rb +++ b/server/app/models/feedback.rb @@ -13,7 +13,7 @@ class Feedback < ApplicationRecord belongs_to :model belongs_to :workspace - enum feedback_type: { thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3 } + enum feedback_type: { thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3, multiple_choice: 4 } enum reaction: { negative: -99, positive: 99, scale_one: 1, scale_two: 2, scale_three: 3, scale_four: 4, scale_five: 5, scale_six: 6, scale_seven: 7, scale_eight: 8, scale_nine: 9, scale_ten: 10 } diff --git a/server/spec/models/feedback_spec.rb b/server/spec/models/feedback_spec.rb index b4361ea7..dd728b84 100644 --- a/server/spec/models/feedback_spec.rb +++ b/server/spec/models/feedback_spec.rb @@ -18,7 +18,10 @@ end describe "enum" do - it { should define_enum_for(:feedback_type).with_values(thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3) } + it { + should define_enum_for(:feedback_type) + .with_values(thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3, multiple_choice: 4) + } it do should define_enum_for(:reaction).with_values(