otvorenesudy/otvorenesudy-api

View on GitHub
app/models/paragraph/explanation.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# == Schema Information
#
# Table name: paragraph_explanations
#
#  id               :integer          not null, primary key
#  paragraph_id     :integer          not null
#  explainable_id   :integer          not null
#  explainable_type :string(255)      not null
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#
class Paragraph::Explanation < OpenCourts::ApplicationRecord
  belongs_to :paragraph
  belongs_to :explainable, polymorphic: true
end