mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
ADD db schema in models
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: verification_codes
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# code :string(255)
|
||||
# code_type :integer
|
||||
# status :integer
|
||||
# phone :string(255)
|
||||
# email :string(255)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# by_email (email)
|
||||
# by_phone (phone)
|
||||
#
|
||||
|
||||
class VerificationCode < ApplicationRecord
|
||||
def effective?
|
||||
created_at + 10.minute > Time.current
|
||||
|
||||
Reference in New Issue
Block a user