discourse/db/migrate/20220607150432_disallow_nul...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
324 B
Ruby
Raw Normal View History

2022-06-22 10:15:33 -04:00
# frozen_string_literal: true
class DisallowNullEmojiOnUserStatus < ActiveRecord::Migration[7.0]
def up
execute "UPDATE user_statuses SET emoji = 'speech_balloon'"
change_column :user_statuses, :emoji, :string, null: false
end
def down
change_column :user_statuses, :emoji, :string, null: true
end
end