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/012_add_email_to_users.rb
| 9 lines
| 167 B
| text/x-ruby
| RubyLexer
|
|
r18 | class AddEmailToUsers < ActiveRecord::Migration | ||
def self.up | ||||
add_column :users, :email, :string | ||||
end | ||||
def self.down | ||||
remove_column :users, :email | ||||
end | ||||
end | ||||