Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jyotibista committed Dec 31, 2020
1 parent 017d90c commit 939769c
Show file tree
Hide file tree
Showing 51 changed files with 118 additions and 58,261 deletions.
10 changes: 10 additions & 0 deletions model/User.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'bcrypt'

class User < ActiveRecord::Base
# users.password_hash in the database is a :string
include BCrypt
has_secure_password
validates :username,presence: true
validates :username,uniquensess:true
has_many :grievances
end
Loading

0 comments on commit 939769c

Please sign in to comment.