Show More
Commit Description:
[web] fix time.new, time.now to use gmtime...
Commit Description:
[web] fix time.new, time.now to use gmtime
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@249 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
db/migrate/029_add_test_allowed_to_problems.rb
| 15 lines
| 337 B
| text/x-ruby
| RubyLexer
|
|
r95 | class AddTestAllowedToProblems < ActiveRecord::Migration | ||
def self.up | ||||
add_column :problems, :test_allowed, :boolean | ||||
Problem.reset_column_information | ||||
Problem.find(:all).each do |problem| | ||||
problem.test_allowed = true | ||||
problem.save | ||||
end | ||||
end | ||||
def self.down | ||||
remove_column :problems, :test_allowed | ||||
end | ||||
end | ||||