Browse Source

fixed 修改user login唯一索引

pull/343/head
xxqfamous 3 years ago
parent
commit
ef88c31b96
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      db/migrate/20230520133729_add_user_login_uniq_index.rb

+ 1
- 1
db/migrate/20230520133729_add_user_login_uniq_index.rb View File

@@ -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…
Cancel
Save