|
|
@ -1,6 +1,6 @@
|
|
|
|
class CourseGroup < ActiveRecord::Base
|
|
|
|
class CourseGroup < ActiveRecord::Base
|
|
|
|
# attr_accessible :title, :body
|
|
|
|
# attr_accessible :title, :body
|
|
|
|
belongs_to :course
|
|
|
|
belongs_to :course, counter_cache: true
|
|
|
|
has_many :course_members
|
|
|
|
has_many :course_members
|
|
|
|
has_many :members
|
|
|
|
has_many :members
|
|
|
|
has_many :memberships, :class_name => 'Member'
|
|
|
|
has_many :memberships, :class_name => 'Member'
|
|
|
|