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/001_create_users.rb | 17 lines | 417 B | text/x-ruby | RubyLexer |
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.column :login, :string, :limit => 10
t.column :full_name, :string
t.column :hashed_password, :string
t.column :salt, :string, :limit => 5
t.column :alias, :string
end
# force unique name
add_index :users, :login, :unique => true
end
def self.down
drop_table :users
end
end