mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-20 17:51:25 +09:00
73be8f38c1
Fix #5578
12 lines
362 B
Ruby
12 lines
362 B
Ruby
class CreateAccountTagStats < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :account_tag_stats do |t|
|
|
t.belongs_to :tag, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
|
|
t.bigint :accounts_count, default: 0, null: false
|
|
t.boolean :hidden, default: false, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|