mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
13 lines
324 B
Ruby
13 lines
324 B
Ruby
# 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
|