|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20150930011457) do
|
|
|
|
|
|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
|
t.integer "act_id", :null => false
|
|
|
|
@ -575,6 +575,8 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
t.integer "viewed"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "secret_key"
|
|
|
|
|
t.integer "status"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "forums", :force => true do |t|
|
|
|
|
@ -619,11 +621,11 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
t.text "description"
|
|
|
|
|
t.date "publish_time"
|
|
|
|
|
t.date "end_time"
|
|
|
|
|
t.integer "homework_type", :default => 1
|
|
|
|
|
t.integer "homework_type", :default => 1
|
|
|
|
|
t.string "late_penalty"
|
|
|
|
|
t.integer "course_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "teacher_priority", :default => 1
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -668,8 +670,8 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
t.text "input"
|
|
|
|
|
t.text "output"
|
|
|
|
|
t.integer "homework_common_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "result"
|
|
|
|
|
t.text "error_msg"
|
|
|
|
|
end
|
|
|
|
@ -783,16 +785,6 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
|
|
|
|
|
add_index "journal_details", ["journal_id"], :name => "journal_details_journal_id"
|
|
|
|
|
|
|
|
|
|
create_table "journal_details_copy", :force => true do |t|
|
|
|
|
|
t.integer "journal_id", :default => 0, :null => false
|
|
|
|
|
t.string "property", :limit => 30, :default => "", :null => false
|
|
|
|
|
t.string "prop_key", :limit => 30, :default => "", :null => false
|
|
|
|
|
t.text "old_value"
|
|
|
|
|
t.text "value"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "journal_details_copy", ["journal_id"], :name => "journal_details_journal_id"
|
|
|
|
|
|
|
|
|
|
create_table "journal_replies", :id => false, :force => true do |t|
|
|
|
|
|
t.integer "journal_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
@ -911,6 +903,7 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
t.datetime "updated_on", :null => false
|
|
|
|
|
t.boolean "locked", :default => false
|
|
|
|
|
t.integer "sticky", :default => 0
|
|
|
|
|
t.integer "reply_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "messages", ["author_id"], :name => "index_messages_on_author_id"
|
|
|
|
@ -1318,8 +1311,8 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
|
|
|
|
|
create_table "student_work_tests", :force => true do |t|
|
|
|
|
|
t.integer "student_work_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "status", :default => 9
|
|
|
|
|
t.text "results"
|
|
|
|
|
t.text "src"
|
|
|
|
@ -1335,8 +1328,8 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
t.float "student_score"
|
|
|
|
|
t.float "teaching_asistant_score"
|
|
|
|
|
t.integer "project_id", :default => 0
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "late_penalty", :default => 0
|
|
|
|
|
t.integer "absence_penalty", :default => 0
|
|
|
|
|
t.float "system_score", :default => 0.0
|
|
|
|
@ -1376,6 +1369,7 @@ ActiveRecord::Schema.define(:version => 20150917022239) do
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.text "description"
|
|
|
|
|
t.string "subject"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "taggings", :force => true do |t|
|
|
|
|
|