bsc-networks/workshift-website

View on GitHub
app/models/unit.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Unit < ActiveRecord::Base
   attr_accessible :name, :quiet_hour

   has_many :users
   has_many :workshifts
   has_many :workshift_assignments
   has_many :categories
   has_many :weekly_reports
   has_one :quiet_hour

   validates :name, presence: true
end