I have a column name "password" on my db some password has exclamation point(!) character how can i change the exclamation mark (!
) character with dollar sign ($
) using rake task?
This is my code so far:
namespace :update_db do
desc "Change ! Character to $"
User.where(password: '!').each do |t|
t.password
end
end
end