2023-08-02 16:05:02 -07:00
|
|
|
class NeopetsConnection < ApplicationRecord
|
2014-01-18 19:54:11 -08:00
|
|
|
belongs_to :user
|
|
|
|
|
|
2025-06-22 11:16:26 -07:00
|
|
|
validates :neopets_username, uniqueness: {scope: :user_id},
|
|
|
|
|
format: { without: /@/, message: 'must not be an email address, for user safety' }
|
2014-01-18 19:54:11 -08:00
|
|
|
end
|