fixed 修改user login唯一索引
This commit is contained in:
parent
8cc565ca0c
commit
e16452ac90
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue