app/models/openstax/accounts/account.rb in openstax_accounts-7.8.0 vs app/models/openstax/accounts/account.rb in openstax_accounts-7.9.0

- old
+ new

@@ -29,9 +29,10 @@ enum role: [:unknown_role, :student, :instructor, :administrator, :librarian, :designer, :other] validates :role, presence: true validates :openstax_uid, uniqueness: { allow_nil: true } validates :username, uniqueness: { allow_nil: true } + validates :uuid, uniqueness: { allow_nil: true } before_update :update_openstax_accounts, if: :should_send_updates_to_accounts? def name (first_name || last_name) ? [first_name, last_name].compact.join(" ") : username