camdub/Internships

View on GitHub
app/models/provider.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Provider < ActiveRecord::Base
  belongs_to :provider_type
  has_one :provider_contact
  has_many :internships
  
  validates_presence_of :name
  validates_presence_of :bio
  
end

# == Schema Information
#
# Table name: providers
#
#  id                :integer         not null, primary key
#  name              :string(255)
#  bio               :text
#  website           :string(255)
#  agreement_on_file :boolean
#  provider_type_id  :integer
#  notes             :text
#  created_at        :datetime
#  updated_at        :datetime
#