mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Added user roles and authentication, sign in/out
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user