mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 22:39:50 +08:00
Merge pull request '修复mysql index 超长导致的问题' (#98) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_identity_verifications_on_number (number)
|
||||
# index_identity_verifications_on_user_id (user_id)
|
||||
#
|
||||
|
||||
class IdentityVerification < ApplicationRecord
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
class CreateIdentityVerifications < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :identity_verifications do |t|
|
||||
t.integer :user_id, null:false
|
||||
t.string :number, null:false, index: true
|
||||
t.integer :user_id, null:false, index: true
|
||||
t.string :number, null:false
|
||||
t.string :name, null:false
|
||||
t.integer :card_front
|
||||
t.integer :card_back
|
||||
|
||||
Reference in New Issue
Block a user