Sha256: 1437d59ec6aedcbd7e9347c9e7ac6c4f63dbbf64d06a602aeda7b2612c6ba499
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 Bytes
Contents
# == Schema Information # # Table name: projects # # id :integer not null, primary key # name :string(255) # description :text # employee_id :integer # created_at :datetime # updated_at :datetime # ancestry :string(255) # position :integer # deadline :datetime # color :string(255) # class Project < ActiveRecord::Base belongs_to :employee, inverse_of: :projects has_many :tasks, inverse_of: :project acts_as_taggable has_ancestry before_validation :strip_ancestry private def strip_ancestry self.ancestry = nil if self.ancestry == '' end end
Version data entries
4 entries across 4 versions & 1 rubygems