add admin user by devise

This commit is contained in:
João Geonizeli
2021-08-03 19:46:26 -03:00
parent 50f12f49a6
commit f9a5f15e0e
19 changed files with 703 additions and 1 deletions

7
app/models/admin_user.rb Normal file
View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
class AdminUser < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :recoverable,
:rememberable, :validatable
end