camdub/Internships

View on GitHub
app/models/department.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Department < ActiveRecord::Base
  belongs_to :college
  has_many :academic_focuses
  has_many :academic_contacts
  
  validates_presence_of :name
end

# == Schema Information
#
# Table name: departments
#
#  id         :integer         not null, primary key
#  name       :string(255)
#  college_id :integer
#  created_at :datetime
#  updated_at :datetime
#