This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-07-12 09:47:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-19 02:42:40 +02:00
|
|
|
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
|