FIX: Add missing unique index on user_id for user_profiles.

This commit is contained in:
Guo Xiang Tan
2019-05-24 12:10:53 +08:00
parent 4f5c9bb8d3
commit 5478aa63ab
3 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddUniqueIndexUserIdOnUserProfiles < ActiveRecord::Migration[5.2]
def change
add_index :user_profiles, :user_id, unique: true
end
end