Description:
update
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r684:11ce8d963587 - - 2 files changed: 15 inserted, 14 deleted
@@ -114,6 +114,7 | |||
|
114 | 114 | @submission = Submission.joins(:problem).where(user_id: params[:id]) |
|
115 | 115 | @submission = @submission.where('problems.available = true') unless current_user.admin? |
|
116 | 116 | |
|
117 | + | |
|
117 | 118 | range = 120 |
|
118 | 119 | @histogram = { data: Array.new(range,0), summary: {} } |
|
119 | 120 | @summary = {count: 0, solve: 0, attempt: 0} |
@@ -15,7 +15,7 | |||
|
15 | 15 | |
|
16 | 16 | create_table "announcements", force: :cascade do |t| |
|
17 | 17 | t.string "author", limit: 255 |
|
18 |
- t.text "body", limit: |
|
|
18 | + t.text "body", limit: 16777215 | |
|
19 | 19 | t.boolean "published" |
|
20 | 20 | t.datetime "created_at", null: false |
|
21 | 21 | t.datetime "updated_at", null: false |
@@ -50,7 +50,7 | |||
|
50 | 50 | end |
|
51 | 51 | |
|
52 | 52 | create_table "descriptions", force: :cascade do |t| |
|
53 |
- t.text "body", limit: |
|
|
53 | + t.text "body", limit: 16777215 | |
|
54 | 54 | t.boolean "markdowned" |
|
55 | 55 | t.datetime "created_at", null: false |
|
56 | 56 | t.datetime "updated_at", null: false |
@@ -62,7 +62,7 | |||
|
62 | 62 | t.string "value", limit: 255 |
|
63 | 63 | t.datetime "created_at", null: false |
|
64 | 64 | t.datetime "updated_at", null: false |
|
65 |
- t.text "description", limit: |
|
|
65 | + t.text "description", limit: 16777215 | |
|
66 | 66 | end |
|
67 | 67 | |
|
68 | 68 | create_table "grader_processes", force: :cascade do |t| |
@@ -107,7 +107,7 | |||
|
107 | 107 | t.integer "sender_id", limit: 4 |
|
108 | 108 | t.integer "receiver_id", limit: 4 |
|
109 | 109 | t.integer "replying_message_id", limit: 4 |
|
110 |
- t.text "body", limit: |
|
|
110 | + t.text "body", limit: 16777215 | |
|
111 | 111 | t.boolean "replied" |
|
112 | 112 | t.datetime "created_at", null: false |
|
113 | 113 | t.datetime "updated_at", null: false |
@@ -153,7 +153,7 | |||
|
153 | 153 | |
|
154 | 154 | create_table "sessions", force: :cascade do |t| |
|
155 | 155 | t.string "session_id", limit: 255 |
|
156 |
- t.text "data", limit: |
|
|
156 | + t.text "data", limit: 16777215 | |
|
157 | 157 | t.datetime "updated_at" |
|
158 | 158 | end |
|
159 | 159 | |
@@ -181,14 +181,14 | |||
|
181 | 181 | t.integer "user_id", limit: 4 |
|
182 | 182 | t.integer "problem_id", limit: 4 |
|
183 | 183 | t.integer "language_id", limit: 4 |
|
184 |
- t.text "source", limit: |
|
|
184 | + t.text "source", limit: 16777215 | |
|
185 | 185 | t.binary "binary", limit: 65535 |
|
186 | 186 | t.datetime "submitted_at" |
|
187 | 187 | t.datetime "compiled_at" |
|
188 |
- t.text "compiler_message", limit: |
|
|
188 | + t.text "compiler_message", limit: 16777215 | |
|
189 | 189 | t.datetime "graded_at" |
|
190 | 190 | t.integer "points", limit: 4 |
|
191 |
- t.text "grader_comment", limit: |
|
|
191 | + t.text "grader_comment", limit: 16777215 | |
|
192 | 192 | t.integer "number", limit: 4 |
|
193 | 193 | t.string "source_filename", limit: 255 |
|
194 | 194 | t.float "max_runtime", limit: 24 |
@@ -211,8 +211,8 | |||
|
211 | 211 | |
|
212 | 212 | create_table "test_pairs", force: :cascade do |t| |
|
213 | 213 | t.integer "problem_id", limit: 4 |
|
214 |
- t.text "input", limit: |
|
|
215 |
- t.text "solution", limit: |
|
|
214 | + t.text "input", limit: 4294967295 | |
|
215 | + t.text "solution", limit: 4294967295 | |
|
216 | 216 | t.datetime "created_at", null: false |
|
217 | 217 | t.datetime "updated_at", null: false |
|
218 | 218 | end |
@@ -228,7 +228,7 | |||
|
228 | 228 | t.datetime "updated_at", null: false |
|
229 | 229 | t.datetime "submitted_at" |
|
230 | 230 | t.datetime "compiled_at" |
|
231 |
- t.text "compiler_message", limit: |
|
|
231 | + t.text "compiler_message", limit: 16777215 | |
|
232 | 232 | t.datetime "graded_at" |
|
233 | 233 | t.string "grader_comment", limit: 255 |
|
234 | 234 | t.datetime "created_at", null: false |
@@ -246,8 +246,8 | |||
|
246 | 246 | t.integer "score", limit: 4 |
|
247 | 247 | t.text "input", limit: 4294967295 |
|
248 | 248 | t.text "sol", limit: 4294967295 |
|
249 | - t.datetime "created_at" | |
|
250 | - t.datetime "updated_at" | |
|
249 | + t.datetime "created_at", null: false | |
|
250 | + t.datetime "updated_at", null: false | |
|
251 | 251 | end |
|
252 | 252 | |
|
253 | 253 | add_index "testcases", ["problem_id"], name: "index_testcases_on_problem_id", using: :btree |
@@ -272,10 +272,10 | |||
|
272 | 272 | t.boolean "activated", default: false |
|
273 | 273 | t.datetime "created_at" |
|
274 | 274 | t.datetime "updated_at" |
|
275 | + t.string "section", limit: 255 | |
|
275 | 276 | t.boolean "enabled", default: true |
|
276 | 277 | t.string "remark", limit: 255 |
|
277 | 278 | t.string "last_ip", limit: 255 |
|
278 | - t.string "section", limit: 255 | |
|
279 | 279 | end |
|
280 | 280 | |
|
281 | 281 | add_index "users", ["login"], name: "index_users_on_login", unique: true, using: :btree |
You need to be logged in to leave comments.
Login now