mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: Add missing unique index on user_id for user_profiles."
Oops `user_id` is the primary key.
This reverts commit 5478aa63ab.
This commit is contained in:
@@ -11,7 +11,6 @@ class UserProfile < ActiveRecord::Base
|
||||
belongs_to :card_background_upload, class_name: "Upload"
|
||||
belongs_to :profile_background_upload, class_name: "Upload"
|
||||
|
||||
validates :user_id, uniqueness: true
|
||||
validates :bio_raw, length: { maximum: 3000 }
|
||||
validates :website, url: true, allow_blank: true, if: Proc.new { |c| c.new_record? || c.website_changed? }
|
||||
validates :user, presence: true
|
||||
|
||||
Reference in New Issue
Block a user