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.
12 lines
362 B
12 lines
362 B
6 years ago
|
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
|