Skip to content

Commit

Permalink
Merge pull request #99 from TAMULib/sso-users-migration-script
Browse files Browse the repository at this point in the history
Add migration script to remove non null constraint on users password
  • Loading branch information
wwelling authored Jul 22, 2024
2 parents 0b5fb73 + 8f091d2 commit 0b23210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeUsersPasswordToNonNull < ActiveRecord::Migration[6.1]
def change
change_column :users, :encrypted_password, :string, null: true
end
end

0 comments on commit 0b23210

Please sign in to comment.