2023-07-12 07:47:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-12-06 16:36:11 +00:00
|
|
|
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
|