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/002_create_problems.rb | 15 lines | 347 B | text/x-ruby | RubyLexer |
class CreateProblems < ActiveRecord::Migration
def self.up
create_table :problems do |t|
t.column :name, :string, :limit => 30
t.column :full_name, :string
t.column :full_score, :integer
t.column :date_added, :date
t.column :available, :boolean
end
end
def self.down
drop_table :problems
end
end