# frozen_string_literal: true # == Schema Information # # Table name: user_name_changes # # id :integer not null, primary key # name :string not null # created_at :datetime not null # updated_at :datetime not null # user_id :bigint not null # # Indexes # # index_user_name_changes_on_user_id (user_id) # # Foreign Keys # # fk_rails_... (user_id => users.id) ON DELETE => cascade ON UPDATE => cascade # class UserNameChange < ApplicationRecord belongs_to :user, optional: true end