simplify the profile settings form

This commit is contained in:
Alex Turchyn
2023-06-07 12:04:11 +03:00
parent 219ad2b4a7
commit c34ea8451f
14 changed files with 43 additions and 163 deletions
+1 -5
View File
@@ -5,9 +5,6 @@
# Table name: users
#
# id :bigint not null, primary key
# confirmation_sent_at :datetime
# confirmation_token :string
# confirmed_at :datetime
# current_sign_in_at :datetime
# current_sign_in_ip :string
# deleted_at :datetime
@@ -24,7 +21,6 @@
# reset_password_token :string
# role :string not null
# sign_in_count :integer default(0), not null
# unconfirmed_email :string
# unlock_token :string
# created_at :datetime not null
# updated_at :datetime not null
@@ -49,7 +45,7 @@ class User < ApplicationRecord
belongs_to :account
devise :database_authenticatable, :recoverable, :rememberable, :validatable, :trackable, :confirmable
devise :database_authenticatable, :recoverable, :rememberable, :validatable, :trackable
devise :registerable # if ENV['APP_MULTITENANT']
attribute :role, :string, default: 'admin'