Skip to content

Commit

Permalink
Add GitHub and ORCID IDs to the User model
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti authored and alexskr committed May 8, 2024
1 parent ea7b31b commit 0227d37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ontologies_linked_data/models/users/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class User < LinkedData::Models::Base
attribute :role, enforce: [:role, :list], :default => lambda {|x| [LinkedData::Models::Users::Role.default]}
attribute :firstName
attribute :lastName
attribute :githubId, enforce: [:unique]
attribute :orcidId, enforce: [:unique]
attribute :created, enforce: [:date_time], :default => lambda { |record| DateTime.now }
attribute :passwordHash, enforce: [:existence]
attribute :apikey, enforce: [:unique], :default => lambda {|x| SecureRandom.uuid}
Expand Down

0 comments on commit 0227d37

Please sign in to comment.