migerate employee

This commit is contained in:
Aung Myo
2018-05-23 10:29:32 +06:30
parent 9e56ece056
commit 1b4d144b46
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ class CreateEmployees < ActiveRecord::Migration[5.1]
create_table :employees do |t|
t.string :name, :null => false
t.string :role, :null => false, :default => "cashier"
t.boolean :is_active, :default => true
t.string :emp_id, :null => false
t.string :password_digest, :null => false
t.string :token_session