app/forms/signup_form.rb
# Ensures unique subdomain, email and username
Ensures unique subdomain, email and username
Ensures unique subdomain email and username
def unique_attributes
    if Team.where(subdomain: subdomain).count > 0
      errors.add(:subdomain, "has already been taken")
    end
    if User.where(email: email).count > 0
      errors.add(:email, "has already been taken")
    end
  end
def unique_attributes if Team . where ( subdomain : subdomain ) . count > 0 errors . add ( :subdomain , "has already been taken" ) end if User . where ( email : email ) . count > 0 errors . add ( :email , "has already been taken" ) end end
Ensures unique subdomain, email and username
Ensures unique subdomain email and username