Add emoji alias-names support
This commit is contained in:
parent
dd05f2b58c
commit
8638e715cb
9 changed files with 42 additions and 6 deletions
7
db/migrate/20230521122642_add_aliases_to_custom_emoji.rb
Normal file
7
db/migrate/20230521122642_add_aliases_to_custom_emoji.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddAliasesToCustomEmoji < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :custom_emojis, :aliases, :jsonb
|
||||
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_14_030455) do
|
||||
ActiveRecord::Schema.define(version: 2023_05_21_122642) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -438,6 +438,7 @@ ActiveRecord::Schema.define(version: 2023_05_14_030455) do
|
|||
t.integer "image_storage_schema_version"
|
||||
t.integer "image_width"
|
||||
t.integer "image_height"
|
||||
t.jsonb "aliases"
|
||||
t.index ["shortcode", "domain"], name: "index_custom_emojis_on_shortcode_and_domain", unique: true
|
||||
end
|
||||
|
||||
|
@ -1487,4 +1488,4 @@ ActiveRecord::Schema.define(version: 2023_05_14_030455) do
|
|||
|
||||
end
|
||||
|
||||
# rubocop:enable all
|
||||
#rubocop:enable all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue