otvorenesudy/otvorenesudy-api

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

Summary

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

  has_many :property_lists, class_name: 'Judge::Property::List', foreign_key: :judge_property_list_id

  validates :value, presence: true
end