Show More
Commit Description:
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available?...
Commit Description:
- fix authorization for viewing submission, only admin can view all problems all the time, normal user depends on right.view_submission and problem.available? - add max score query
References:
File last commit:
Show/Diff file:
Action:
db/migrate/011_add_language_ext.rb | 16 lines | 319 B | text/x-ruby | RubyLexer |
class AddLanguageExt < ActiveRecord::Migration
def self.up
add_column :languages, :ext, :string, :limit => 10
Language.reset_column_information
langs = Language.find(:all)
langs.each do |l|
l.ext = l.name
l.save
end
end
def self.down
remove_column :languages, :ext
end
end