commit
3ec90bfd0e
@ -0,0 +1,8 @@
|
||||
class ModifyLoginForUsers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
users = User.where("created_on > '2019-07-26 19:00:00'")
|
||||
users.find_each do |use|
|
||||
use.update_column(:login, use.login.strip)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue