This commit is contained in:
呱呱呱 2023-08-10 17:37:06 +08:00
parent 96936da9ac
commit 36a3a3a24c
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
# #
# Indexes # Indexes
# #
# index_identity_verifications_on_number (number) # index_identity_verifications_on_user_id (user_id)
# #
class IdentityVerification < ApplicationRecord class IdentityVerification < ApplicationRecord

View File

@ -1,8 +1,8 @@
class CreateIdentityVerifications < ActiveRecord::Migration[5.2] class CreateIdentityVerifications < ActiveRecord::Migration[5.2]
def change def change
create_table :identity_verifications do |t| create_table :identity_verifications do |t|
t.integer :user_id, null:false t.integer :user_id, null:false, index: true
t.string :number, null:false, index: true t.string :number, null:false
t.string :name, null:false t.string :name, null:false
t.integer :card_front t.integer :card_front
t.integer :card_back t.integer :card_back