mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
14 lines
292 B
Ruby
14 lines
292 B
Ruby
|
# 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
|