mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 19:42:32 -05:00
10 lines
266 B
Ruby
10 lines
266 B
Ruby
|
class EmailChangeRequest < ActiveRecord::Base
|
||
|
belongs_to :old_email_token, class_name: 'EmailToken'
|
||
|
belongs_to :new_email_token, class_name: 'EmailToken'
|
||
|
|
||
|
def self.states
|
||
|
@states ||= Enum.new(authorizing_old: 1, authorizing_new: 2, complete: 3)
|
||
|
end
|
||
|
|
||
|
end
|