add user document model

This commit is contained in:
João Geonizeli
2021-08-04 21:53:58 -03:00
parent 95079e2ae7
commit 30b290514f
11 changed files with 158 additions and 3 deletions

11
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_08_04_233306) do
ActiveRecord::Schema.define(version: 2021_08_05_000225) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -55,6 +55,14 @@ ActiveRecord::Schema.define(version: 2021_08_04_233306) do
t.index ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
end
create_table "user_documents", force: :cascade do |t|
t.string "status", null: false
t.bigint "user_id", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["user_id"], name: "index_user_documents_on_user_id"
end
create_table "users", force: :cascade do |t|
t.string "first_name", null: false
t.string "last_name", null: false
@@ -66,4 +74,5 @@ ActiveRecord::Schema.define(version: 2021_08_04_233306) do
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "user_documents", "users"
end