Skip to content

Commit

Permalink
fix factories specs
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfall committed Nov 7, 2023
1 parent 3b45110 commit bc9e565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/feedback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Feedback < ApplicationRecord
store_accessor :document, FeedbackForm.fields

scope :submitted, -> { where submitted: true }
belongs_to :authorable, polymorphic: true
belongs_to :authorable, polymorphic: true, optional: true
belongs_to :award_year, optional: true

validates :form_answer_id, uniqueness: true
Expand Down
2 changes: 1 addition & 1 deletion app/models/form_answer_progress.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class FormAnswerProgress < ApplicationRecord
belongs_to :form_answer
belongs_to :form_answer, optional: true

validates :form_answer_id, presence: true

Expand Down

0 comments on commit bc9e565

Please sign in to comment.