parent
4606cf7c28
commit
0b66097bfb
@ -0,0 +1,6 @@
|
|||||||
|
class StudentWorkTest < ActiveRecord::Base
|
||||||
|
attr_accessible :student_work_id, :homework_test_id
|
||||||
|
|
||||||
|
belongs_to :homework_test
|
||||||
|
belongs_to :student_work
|
||||||
|
end
|
@ -0,0 +1,13 @@
|
|||||||
|
class CreateTestResult < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
create_table :student_work_test do |t|
|
||||||
|
t.integer :student_work_id
|
||||||
|
t.integer :homework_test_id
|
||||||
|
t.integer :result
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue