Enable email_login_token for all gestionnaires
This commit is contained in:
parent
2af37f85e2
commit
0969b1f85f
8 changed files with 36 additions and 58 deletions
|
@ -1,8 +0,0 @@
|
|||
namespace :'activate_trusted_device_for_a-f' do
|
||||
task run: :environment do
|
||||
letters_a_to_f = ('a'..'f').to_a
|
||||
Gestionnaire
|
||||
.where("substr(email, 1, 1) IN (?)", letters_a_to_f)
|
||||
.update_all(features: { "enable_email_login_token" => true })
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue