Add custom_emoji isSensitive support
This commit is contained in:
parent
156f3a7c99
commit
ff2bcf7595
8 changed files with 23 additions and 4 deletions
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIsSensitiveToCustomEmojis < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :custom_emojis, :is_sensitive, :boolean, null: false, default: false
|
||||
end
|
||||
end
|
|
@ -12,7 +12,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2023_05_21_122642) do
|
||||
ActiveRecord::Schema.define(version: 2023_05_22_082252) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -439,6 +439,7 @@ ActiveRecord::Schema.define(version: 2023_05_21_122642) do
|
|||
t.integer "image_width"
|
||||
t.integer "image_height"
|
||||
t.jsonb "aliases"
|
||||
t.boolean "is_sensitive", default: false, null: false
|
||||
t.index ["shortcode", "domain"], name: "index_custom_emojis_on_shortcode_and_domain", unique: true
|
||||
end
|
||||
|
||||
|
@ -1488,4 +1489,4 @@ ActiveRecord::Schema.define(version: 2023_05_21_122642) do
|
|||
|
||||
end
|
||||
|
||||
#rubocop:enable all
|
||||
# rubocop:enable all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue