重新迁移实训作业

dev_shixuns
daiao 6 years ago
parent fef35fceae
commit 29cff5349b

@ -91,9 +91,9 @@ class GamesService
sql =
if max_query_index > 0
"SELECT
b.actual_output, b.out_put, b.result, a.is_public, a.input
b.actual_output, b.out_put, b.result, a.is_public, a.input, a.output
FROM
(SELECT position, input, challenge_id, is_public FROM test_sets where challenge_id=6000) a
(SELECT position, input, output, challenge_id, is_public FROM test_sets where challenge_id=6000) a
LEFT JOIN
(SELECT
result, test_set_position, g.challenge_id, o.actual_output, o.out_put

@ -1,4 +1,4 @@
class MigrationShixunStudentWork < ActiveRecord::Migration
class CreateShixunStudentWorks < ActiveRecord::Migration
def up
ActiveRecord::Base.transaction do
begin
Loading…
Cancel
Save