otvorenesudy/otvorenesudy-api

View on GitHub
app/models/defendant.rb

Summary

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

  belongs_to :hearing

  has_many :accusations
end