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 committed May 7, 2024
1 parent a3f6cf0 commit a192308
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 a192308

Please sign in to comment.