Merge pull request '修复mysql index 超长导致的问题' (#98) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
commit
d74cb997ab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue