6 changed files with 39 additions and 4 deletions
@ -0,0 +1,5 @@
|
||||
class AdminUser < ApplicationRecord |
||||
# Include default devise modules. Others available are: |
||||
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable |
||||
devise :database_authenticatable, :recoverable, :rememberable, :validatable |
||||
end |
@ -0,0 +1,18 @@
|
||||
class AddAdminUsers < ActiveRecord::Migration[6.1] |
||||
def change |
||||
create_table :admin_users do |t| |
||||
## Database authenticatable |
||||
t.string :email, null: false, default: "" |
||||
t.string :encrypted_password, null: false, default: "" |
||||
|
||||
## Recoverable |
||||
t.string :reset_password_token |
||||
t.datetime :reset_password_sent_at |
||||
|
||||
## Rememberable |
||||
t.datetime :remember_created_at |
||||
|
||||
t.timestamps null: false |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue