Sha256: e79207318a905045f634b1955ff4b1d867a04911ec717951b8b4753706419f4b
Contents?: true
Size: 482 Bytes
Versions: 18
Compression:
Stored size: 482 Bytes
Contents
class Article < ActiveRecord::Base validates :id, uniqueness: true, numericality: true, allow_nil: true, allow_blank: true, on: :create has_many :readings, :dependent => :delete_all has_many :users, :through => :readings has_many :comments, :dependent => :delete_all has_many :employee_commentators, :through => :comments, :source => :person, :source_type => :employee has_many :user_commentators, :through => :comments, :source => :person, :source_type => "User" end
Version data entries
18 entries across 18 versions & 1 rubygems