18 lines
423 B
Ruby
18 lines
423 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: admins
|
|
#
|
|
# id :bigint not null, primary key
|
|
# email :string
|
|
# name :string
|
|
# password_digest :string
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_admins_on_email (email) UNIQUE
|
|
#
|
|
class Admin < ApplicationRecord
|
|
has_many :moderation_logs, dependent: :destroy
|
|
end
|