mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
15 lines
345 B
Ruby
15 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateCustomEmojis < ActiveRecord::Migration[5.1]
|
|
def change
|
|
create_table :custom_emojis do |t|
|
|
t.string :shortcode, null: false, default: ''
|
|
t.string :domain
|
|
t.attachment :image
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :custom_emojis, [:shortcode, :domain], unique: true
|
|
end
|
|
end
|