mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fixed 修改user login唯一索引
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class AddForgeAppliedMessageUtf8mb4 < ActiveRecord::Migration[5.2]
|
||||
class AddUserLoginUniqIndex < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
|
||||
users = User.group("login").having("count(1) >1")
|
||||
|
||||
Reference in New Issue
Block a user