Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml * bootrapize the user_admin * now considering user.enabled * tidy up route
File last commit:
Show/Diff file:
Action:
db/migrate/029_add_test_allowed_to_problems.rb | 15 lines | 337 B | text/x-ruby | RubyLexer |
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