diff --git a/app/models/user.rb b/app/models/user.rb index ea19010..ef21a82 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -6,7 +6,7 @@ class User < ApplicationRecord # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable - devise :invitable, :saml_authenticatable, :rememberable, :validatable + devise :invitable, :saml_authenticatable, :rememberable # Method added by Blacklight; Blacklight uses #to_s on your # user class to get a user-displayable login/identifier for diff --git a/db/migrate/20240722150000_change_users_password_to_non_null.rb b/db/migrate/20240722150000_change_users_password_to_non_null.rb new file mode 100644 index 0000000..467b7ef --- /dev/null +++ b/db/migrate/20240722150000_change_users_password_to_non_null.rb @@ -0,0 +1,5 @@ +class ChangeUsersPasswordToNonNull < ActiveRecord::Migration[6.1] + def change + change_column :users, :encrypted_password, :string, null: true + end +end