Added user roles and authentication, sign in/out

This commit is contained in:
Jason Denney
2012-12-29 16:22:24 -05:00
parent bb27c7a585
commit db9982dcd2
23 changed files with 232 additions and 89 deletions
@@ -19,6 +19,8 @@ class DeviseCreateUsers < ActiveRecord::Migration
t.string :current_sign_in_ip
t.string :last_sign_in_ip
t.integer :user_role_id
## Encryptable
# t.string :password_salt
@@ -0,0 +1,8 @@
class CreateUserRoles < ActiveRecord::Migration
def change
create_table(:user_roles) do |t|
t.string :role
t.timestamps
end
end
end