scinote-web/db/migrate/20210811103123_downcase_user_emails.rb

7 lines
159 B
Ruby

# frozen_string_literal: true
class DowncaseUserEmails < ActiveRecord::Migration[6.1]
def up
execute('UPDATE users SET email = LOWER(email)')
end
end