otvorenesudy/otvorenesudy-api

View on GitHub
app/models/court/proceeding_type.rb

Summary

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

  has_many :jurisdictions, class_name: 'Court::Jurisdiction', foreign_key: :court_proceeding_type_id
  has_many :courts, through: :jurisdictions
end