parent
7bfd7755f7
commit
bb3e0c4c7e
@ -0,0 +1,5 @@
|
|||||||
|
class HomeworkDetailPrograming < ActiveRecord::Base
|
||||||
|
attr_accessible :language, :standard_code, :homework_common_id
|
||||||
|
|
||||||
|
belongs_to :homework_common
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class HomeworkTest < ActiveRecord::Base
|
||||||
|
attr_accessible :input, :output, :homework_common_id
|
||||||
|
|
||||||
|
belongs_to :homework_common
|
||||||
|
end
|
@ -0,0 +1,11 @@
|
|||||||
|
class CreateHomeworkDetailProgramings < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :homework_detail_programings do |t|
|
||||||
|
t.string :language
|
||||||
|
t.text :standard_code, :limit => 4294967295
|
||||||
|
t.integer :homework_common_id
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,11 @@
|
|||||||
|
class CreateHomeworkTests < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :homework_tests do |t|
|
||||||
|
t.text :input
|
||||||
|
t.text :output
|
||||||
|
t.integer :homework_common_id
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue