devise initial, basic setting summary Surprisingly, it gets messed up, so ...
■ Work efficiency UP ■ Improved understanding of devise
■ Mac OS catalina ■ Ruby on Rails (5.2.4.2) ■ Virtual Box:6.1 ■ Vagrant: 2.2.7
$ rails g devise:install
* If an error occurs,
$ bundle exec spring stop
$ rails g devise:app name
$rails g devise views app name
$ rails g controllers devise:app name
db/migrate/devise_creat_app name.rb
## Confirmable
t.string :confirmation_token
t.datetime :confirmed_at
t.datetime :confirmation_sent_at
t.string :unconfirmed_email # Only if using reconfirmable
db/migrate/devise_creat_app name.rb
## Trackable
t.integer :sign_in_count, default: 0, null: false
t.datetime :current_sign_in_at
t.datetime :last_sign_in_at
t.string :current_sign_in_ip
t.string :last_sign_in_ip
that's all
■ [Environment variables] What are rails environment variables? https://qiita.com/tanaka-yu3/items/7bf03fee906b80367be9
■ Fastest rails mail devise Welcome mail sending function implementation action mailer unnecessary The easiest https://qiita.com/tanaka-yu3/items/2def7760fd67fe73091a
■ [devise] Administrator user login and logout are separated https://qiita.com/tanaka-yu3/items/046bf30e08e48fbc42ca
Recommended Posts