Add custom-emoji license support

This commit is contained in:
KMY 2023-05-22 18:40:06 +09:00
parent ff2bcf7595
commit 34f0ad7ad5
5 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddLicenseToCustomEmojis < ActiveRecord::Migration[6.1]
def change
add_column :custom_emojis, :license, :string, null: true
end
end

View file

@ -12,7 +12,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2023_05_22_082252) do
ActiveRecord::Schema.define(version: 2023_05_22_093135) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -440,6 +440,7 @@ ActiveRecord::Schema.define(version: 2023_05_22_082252) do
t.integer "image_height"
t.jsonb "aliases"
t.boolean "is_sensitive", default: false, null: false
t.string "license"
t.index ["shortcode", "domain"], name: "index_custom_emojis_on_shortcode_and_domain", unique: true
end