add app_id and auth_token to employee

This commit is contained in:
Zin Moe
2020-01-14 14:58:23 +06:30
parent 48e6afa505
commit c5eb5d6678
7 changed files with 71 additions and 26 deletions

View File

@@ -0,0 +1,9 @@
class AddAppIdAndAuthTokenToEmployees < ActiveRecord::Migration[5.1]
def change
add_column :employees, :app_id, :string, unique: true
add_column :employees, :auth_token, :string, unique: true
add_index :employees, :app_id
add_index :employees, :auth_token
end
end