employee login and authentication with session
This commit is contained in:
@@ -3,8 +3,11 @@ class CreateEmployees < ActiveRecord::Migration[5.0]
|
||||
create_table :employees do |t|
|
||||
t.string :name, :null => false
|
||||
t.string :role, :null => false, :default => "cashier"
|
||||
t.string :encrypted_access_code, :null => false
|
||||
|
||||
t.string :emp_id, :null => false
|
||||
t.string :password_digest, :null => false
|
||||
t.string :token_session
|
||||
t.datetime :session_expiry
|
||||
t.datetime :session_last_login
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user