fixed 修改user login唯一索引
This commit is contained in:
parent
eb7e658a7d
commit
ef88c31b96
|
@ -1,4 +1,4 @@
|
||||||
class AddForgeAppliedMessageUtf8mb4 < ActiveRecord::Migration[5.2]
|
class AddUserLoginUniqIndex < ActiveRecord::Migration[5.2]
|
||||||
def change
|
def change
|
||||||
|
|
||||||
users = User.group("login").having("count(1) >1")
|
users = User.group("login").having("count(1) >1")
|
||||||
|
|
Loading…
Reference in New Issue