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/006_create_roles.rb | 19 lines | 379 B | text/x-ruby | RubyLexer |
class CreateRoles < ActiveRecord::Migration
def self.up
create_table :roles do |t|
t.column 'name', :string
end
create_table :roles_users, :id => false do |t|
t.column 'role_id', :integer
t.column 'user_id', :integer
end
add_index :roles_users, :user_id
end
def self.down
drop_table :roles_users
drop_table :roles
end
end