impress/app/models/neopets_connection.rb

5 lines
130 B
Ruby

class NeopetsConnection < ActiveRecord::Base
belongs_to :user
validates :neopets_username, uniqueness: {scope: :user_id}
end