fix
This commit is contained in:
parent
96936da9ac
commit
36a3a3a24c
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue