mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Add missing unique index on user_id for user_profiles.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddUniqueIndexUserIdOnUserProfiles < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :user_profiles, :user_id, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user