otvorenesudy/otvorenesudy-api

View on GitHub
app/models/judge/property/change.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# == Schema Information
#
# Table name: judge_property_changes
#
#  id         :integer          not null, primary key
#  value      :string(255)      not null
#  created_at :datetime         not null
#  updated_at :datetime         not null
#
class Judge::Property::Change < ActiveRecord::Base
  include OpenCourts::Model

  has_many :properties, class_name: 'Judge::Property', foreign_key: :judge_property_id

  validates :value, presence: true
end