Sha256: 880a521a7a42d2a20428c4c2623d06b8e8b725f8579c8bc658f7acc2a2674a75
Contents?: true
Size: 863 Bytes
Versions: 1
Compression:
Stored size: 863 Bytes
Contents
class User < ActiveRecord::Base has_many :projects has_many :ideas has_many :managers has_many :developers has_many :comments has_many :issues has_many :ideas end class Project < ActiveRecord::Base belongs_to :user belongs_to :member has_many :ideas has_many :issues end class Idea < ActiveRecord::Base belongs_to :project belongs_to :user end class Issue < ActiveRecord::Base belongs_to :project belongs_to :user has_many :comments end class Comment < ActiveRecord::Base belongs_to :issue belongs_to :user belongs_to :member end class Dummy < ActiveRecord::Base end class Member < ActiveRecord::Base belongs_to :user has_many :projects has_many :comments end class Manager < Member has_many :developers end class Developer < Member belongs_to :boss, class_name: "Manager", foreign_key: :custom_boss_id end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreign_key_validation-1.1.2 | spec/support/load_models.rb |