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

8 lines
159 B
Ruby
Raw Normal View History

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