This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fixed 修改user login唯一索引
pull/343/head
xxqfamous
3 years ago
parent
eb7e658a7d
commit
ef88c31b96
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 Add
ForgeAppliedMessageUtf8mb4
< ActiveRecord::Migration[5.2]
class Add
UserLoginUniqIndex
< ActiveRecord::Migration[5.2]
def change
def change
users = User.group("login").having("count(1) >1")
users = User.group("login").having("count(1) >1")
Write
Preview
Loading…
Cancel
Save