diff --git a/app/models/phase.rb b/app/models/phase.rb index 2612f3e..0e0fce6 100644 --- a/app/models/phase.rb +++ b/app/models/phase.rb @@ -12,6 +12,7 @@ # Associations belongs_to :template has_many :sections, -> { order(:number => :asc) }, dependent: :destroy + has_many :questions, through: :sections ## # Possibly needed for active_admin