parent
52dabc6b98
commit
c045b4682a
@ -0,0 +1,6 @@
|
||||
class HomeworkEvaluation < ActiveRecord::Base
|
||||
attr_accessible :homework_attach_id, :user_id
|
||||
|
||||
belongs_to :homework_attach
|
||||
belongs_to :user
|
||||
end
|
@ -0,0 +1,10 @@
|
||||
class CreateHomeworkEvaluations < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :homework_evaluations do |t|
|
||||
t.string :user_id
|
||||
t.string :homework_attach_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue