bigdir/app/models/homework_user.rb

7 lines
180 B
Ruby

class HomeworkUser < ActiveRecord::Base
attr_accessible :homework_attach_id, :user_id
belongs_to :homework_attach, :foreign_key => :homework_attach_id
belongs_to :user
end