Files
sx-fc/db/migrate/20170403155230_create_employees.rb
2017-04-14 22:47:44 +06:30

15 lines
422 B
Ruby

class CreateEmployees < ActiveRecord::Migration[5.0]
def change
create_table :employees do |t|
t.string :name, :null => false
t.string :role, :null => false, :default => "cashier"
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
end