You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
362 B

  1. class CreateAccountTagStats < ActiveRecord::Migration[5.2]
  2. def change
  3. create_table :account_tag_stats do |t|
  4. t.belongs_to :tag, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
  5. t.bigint :accounts_count, default: 0, null: false
  6. t.boolean :hidden, default: false, null: false
  7. t.timestamps
  8. end
  9. end
  10. end