0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/db/migrate/20200424032633_remove_canonical_email_from_user_emails.rb

14 lines
293 B
Ruby
Vendored

# frozen_string_literal: true
class RemoveCanonicalEmailFromUserEmails < ActiveRecord::Migration[6.0]
def up
execute <<~SQL
ALTER TABLE user_emails
DROP COLUMN IF EXISTS canonical_email
SQL
end
def down
# nothing to do, we already nuke the migrations
end
end