Show More
Commit Description:
change logger to be limited by file size
Commit Description:
change logger to be limited by file size
References:
File last commit:
Show/Diff file:
Action:
db/schema.rb | 310 lines | 11.7 KiB | text/x-ruby | RubyLexer |
Jittat Fakcharoenphol
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
r320 # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
jittat
added user settings...
r13 #
Jittat Fakcharoenphol
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
r320 # Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
jittat
added user settings...
r13 # you'll amass, the slower it'll run and the greater likelihood for issues).
#
fix compiler message...
r621 # It's strongly recommended that you check this file into your version control system.
jittat
added user settings...
r13
update max_score / current_score to property use group filter
r802 ActiveRecord::Schema.define(version: 2020_08_13_083020) do
jittat
[web] added announcement...
r97
merge
r834 create_table "announcements", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "author"
update max_score / current_score to property use group filter
r802 t.text "body"
- more test on user admin and authorization...
r754 t.boolean "published"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- more test on user admin and authorization...
r754 t.boolean "frontpage", default: false
t.boolean "contest_only", default: false
t.string "title"
t.string "notes"
jittat
[web] added announcement...
r97 end
jittat
[web] added configurations...
r76
merge
r834 create_table "contests", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "title"
t.boolean "enabled"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- more test on user admin and authorization...
r754 t.string "name"
Jittat Fakcharoenphol
added contest model
r266 end
merge
r834 create_table "contests_problems", id: false, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "contest_id"
t.integer "problem_id"
Jittat Fakcharoenphol
created join tables for contests and users and problems
r268 end
merge
r834 create_table "contests_users", id: false, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "contest_id"
t.integer "user_id"
Jittat Fakcharoenphol
created join tables for contests and users and problems
r268 end
merge
r834 create_table "countries", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "name"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
jittat
[web] import from site...
r106 end
merge
r834 create_table "descriptions", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
update max_score / current_score to property use group filter
r802 t.text "body"
- more test on user admin and authorization...
r754 t.boolean "markdowned"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
jittat
[web] refactor problem description, some styling...
r92 end
merge
r834 create_table "grader_configurations", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "key"
t.string "value_type"
t.string "value"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
update max_score / current_score to property use group filter
r802 t.text "description"
Jittat Fakcharoenphol
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
r320 end
merge
r834 create_table "grader_processes", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "host"
t.integer "pid"
t.string "mode"
t.boolean "active"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- more test on user admin and authorization...
r754 t.integer "task_id"
t.string "task_type"
t.boolean "terminated"
submission report
r790 t.index ["host", "pid"], name: "index_grader_processes_on_ip_and_pid"
jittat
started grader_process...
r29 end
fix whitelisting bugs...
r784 create_table "groups", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
start migrate to 5.0
r744 t.string "name"
t.string "description"
update max_score / current_score to property use group filter
r802 t.boolean "enabled", default: true
add problem group
r672 end
fix whitelisting bugs...
r784 create_table "groups_problems", id: false, options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "problem_id", null: false
- more test on user admin and authorization...
r754 t.integer "group_id", null: false
t.index ["group_id", "problem_id"], name: "index_groups_problems_on_group_id_and_problem_id"
add problem group
r672 end
submission report
r790 create_table "groups_users", options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "group_id", null: false
- more test on user admin and authorization...
r754 t.integer "user_id", null: false
t.index ["user_id", "group_id"], name: "index_groups_users_on_user_id_and_group_id"
add problem group
r672 end
merge
r834 create_table "heart_beats", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "user_id"
t.string "ip_address"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- more test on user admin and authorization...
r754 t.string "status"
t.index ["updated_at"], name: "index_heart_beats_on_updated_at"
add heart_beat...
r540 end
merge
r834 create_table "languages", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "name", limit: 10
start migrate to 5.0
r744 t.string "pretty_name"
- more test on user admin and authorization...
r754 t.string "ext", limit: 10
start migrate to 5.0
r744 t.string "common_ext"
jittat
added user settings...
r13 end
merge
r834 create_table "logins", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "user_id"
t.string "ip_address"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- login report...
r792 t.index ["user_id"], name: "index_logins_on_user_id"
- more test on user admin and authorization...
r754 end
merge
r834 create_table "messages", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "sender_id"
t.integer "receiver_id"
t.integer "replying_message_id"
update max_score / current_score to property use group filter
r802 t.text "body"
- more test on user admin and authorization...
r754 t.boolean "replied"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
add login stat
r410 end
merge
r834 create_table "problems", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
update max_score / current_score to property use group filter
r802 t.string "name", limit: 30
- more test on user admin and authorization...
r754 t.string "full_name"
start migrate to 5.0
r744 t.integer "full_score"
- more test on user admin and authorization...
r754 t.date "date_added"
update schema
r640 t.boolean "available"
- more test on user admin and authorization...
r754 t.string "url"
start migrate to 5.0
r744 t.integer "description_id"
update schema
r640 t.boolean "test_allowed"
t.boolean "output_only"
- more test on user admin and authorization...
r754 t.string "description_filename"
update schema
r640 t.boolean "view_testcase"
end
jittat
added user settings...
r13
fix whitelisting bugs...
r784 create_table "problems_tags", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "problem_id"
t.integer "tag_id"
- more test on user admin and authorization...
r754 t.index ["problem_id", "tag_id"], name: "index_problems_tags_on_problem_id_and_tag_id", unique: true
t.index ["problem_id"], name: "index_problems_tags_on_problem_id"
t.index ["tag_id"], name: "index_problems_tags_on_tag_id"
tag
r681 end
merge
r834 create_table "rights", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
start migrate to 5.0
r744 t.string "name"
t.string "controller"
t.string "action"
jittat
added user settings...
r13 end
merge
r834 create_table "rights_roles", id: false, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "right_id"
t.integer "role_id"
- more test on user admin and authorization...
r754 t.index ["role_id"], name: "index_rights_roles_on_role_id"
jittat
added user settings...
r13 end
merge
r834 create_table "roles", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
start migrate to 5.0
r744 t.string "name"
jittat
added user settings...
r13 end
merge
r834 create_table "roles_users", id: false, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
start migrate to 5.0
r744 t.integer "role_id"
t.integer "user_id"
- more test on user admin and authorization...
r754 t.index ["user_id"], name: "index_roles_users_on_user_id"
jittat
added user settings...
r13 end
merge
r834 create_table "sessions", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "session_id"
update max_score / current_score to property use group filter
r802 t.text "data"
jittat
added user settings...
r13 t.datetime "updated_at"
- more test on user admin and authorization...
r754 t.index ["session_id"], name: "index_sessions_on_session_id"
t.index ["updated_at"], name: "index_sessions_on_updated_at"
jittat
added user settings...
r13 end
merge
r834 create_table "sites", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "name"
t.boolean "started"
jittat
[web] added site and time out basic functionality...
r85 t.datetime "start_time"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- more test on user admin and authorization...
r754 t.integer "country_id"
t.string "password"
end
merge
r834 create_table "submission_view_logs", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "user_id"
t.integer "submission_id"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
jittat
[web] added site and time out basic functionality...
r85 end
merge
r834 create_table "submissions", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "user_id"
t.integer "problem_id"
t.integer "language_id"
t.text "source", limit: 16777215
t.binary "binary"
t.datetime "submitted_at"
t.datetime "compiled_at"
update max_score / current_score to property use group filter
r802 t.text "compiler_message"
- more test on user admin and authorization...
r754 t.datetime "graded_at"
t.integer "points"
update max_score / current_score to property use group filter
r802 t.text "grader_comment"
- more test on user admin and authorization...
r754 t.integer "number"
t.string "source_filename"
t.float "max_runtime"
t.integer "peak_memory"
t.integer "effective_code_length"
t.string "ip_address"
submission report
r790 t.index ["submitted_at"], name: "index_submissions_on_submitted_at"
- more test on user admin and authorization...
r754 t.index ["user_id", "problem_id", "number"], name: "index_submissions_on_user_id_and_problem_id_and_number", unique: true
t.index ["user_id", "problem_id"], name: "index_submissions_on_user_id_and_problem_id"
end
fix whitelisting bugs...
r784 create_table "tags", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "name", null: false
t.text "description"
t.boolean "public"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
merge
r834 create_table "tasks", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "submission_id"
t.datetime "created_at"
t.integer "status"
t.datetime "updated_at"
t.index ["submission_id"], name: "index_tasks_on_submission_id"
end
merge
r834 create_table "test_pairs", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "problem_id"
update max_score / current_score to property use group filter
r802 t.text "input", limit: 16777215
t.text "solution", limit: 16777215
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
NOT WORKING...
r528 end
merge
r834 create_table "test_requests", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "user_id"
t.integer "problem_id"
t.integer "submission_id"
t.string "input_file_name"
t.string "output_file_name"
t.string "running_stat"
t.integer "status"
submission report
r790 t.datetime "updated_at", null: false
jittat
added user settings...
r13 t.datetime "submitted_at"
t.datetime "compiled_at"
update max_score / current_score to property use group filter
r802 t.text "compiler_message"
jittat
added user settings...
r13 t.datetime "graded_at"
- more test on user admin and authorization...
r754 t.string "grader_comment"
submission report
r790 t.datetime "created_at", null: false
- more test on user admin and authorization...
r754 t.float "running_time"
t.string "exit_status"
t.integer "memory_usage"
t.index ["user_id", "problem_id"], name: "index_test_requests_on_user_id_and_problem_id"
jittat
added user settings...
r13 end
fix whitelisting bugs...
r784 create_table "testcases", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "problem_id"
t.integer "num"
t.integer "group"
t.integer "score"
t.text "input", limit: 4294967295
t.text "sol", limit: 4294967295
update max_score / current_score to property use group filter
r802 t.datetime "created_at"
t.datetime "updated_at"
- more test on user admin and authorization...
r754 t.index ["problem_id"], name: "index_testcases_on_problem_id"
tag
r681 end
merge
r834 create_table "user_contest_stats", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.integer "user_id"
t.datetime "started_at"
submission report
r790 t.datetime "created_at", null: false
t.datetime "updated_at", null: false
fix whitelisting bugs...
r784 t.boolean "forced_logout"
Jittat Fakcharoenphol
added test_pair model
r209 end
merge
r834 create_table "users", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci", force: :cascade do |t|
- more test on user admin and authorization...
r754 t.string "login", limit: 50
t.string "full_name"
t.string "hashed_password"
t.string "salt", limit: 5
t.string "alias"
t.string "email"
t.integer "site_id"
t.integer "country_id"
t.boolean "activated", default: false
put to master
r720 t.datetime "created_at"
t.datetime "updated_at"
- more test on user admin and authorization...
r754 t.boolean "enabled", default: true
t.string "remark"
t.string "last_ip"
merge
r834 t.string "section"
- more test on user admin and authorization...
r754 t.index ["login"], name: "index_users_on_login", unique: true
jittat
added user settings...
r13 end
tag
r681 add_foreign_key "problems_tags", "problems"
add_foreign_key "problems_tags", "tags"
jittat
added user settings...
r13 end