mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
d63f1826fe
We want to allow admins to make new required fields apply to existing users. In order for this to work we need to have a way to make those users fill up the fields on their next page load. This is very similar to how adding a 2FA requirement post-fact works. Users will be redirected to a page where they can fill up the remaining required fields, and until they do that they won't be able to do anything else.
15 lines
338 B
Ruby
15 lines
338 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UserRequiredFieldsVersion < ActiveRecord::Base
|
|
def self.current = maximum(:id) || 0
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: user_required_fields_versions
|
|
#
|
|
# id :bigint not null, primary key
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|