28 lines
579 B
Ruby
28 lines
579 B
Ruby
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: user_documents
|
|
#
|
|
# id :bigint not null, primary key
|
|
# status :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# user_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_user_documents_on_user_id (user_id)
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (user_id => users.id)
|
|
#
|
|
require "rails_helper"
|
|
|
|
RSpec.describe(UserDocument, type: :model) do
|
|
describe "associations" do
|
|
it { is_expected.to(belong_to(:user)) }
|
|
end
|
|
end
|