Ignore previous old ones

This commit is contained in:
Matt Jankowski 2024-11-11 11:38:39 -05:00
parent 7e68a1c8bb
commit 95cd62b8d1
2 changed files with 3 additions and 3 deletions

View file

@ -34,13 +34,13 @@ class CreateTaggings < ActiveRecord::Migration[7.1]
end end
def restore_join_tables def restore_join_tables
create_table :statuses_tags, primary_key: [:tag_id, :status_id], force: :cascade do |t| create_table :statuses_tags, primary_key: [:tag_id, :status_id], force: :cascade do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.bigint :status_id, null: false t.bigint :status_id, null: false
t.bigint :tag_id, null: false t.bigint :tag_id, null: false
t.index :status_id t.index :status_id
end end
create_table :accounts_tags, primary_key: [:tag_id, :account_id], force: :cascade do |t| create_table :accounts_tags, primary_key: [:tag_id, :account_id], force: :cascade do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.bigint :account_id, null: false t.bigint :account_id, null: false
t.bigint :tag_id, null: false t.bigint :tag_id, null: false
t.index [:account_id, :tag_id] t.index [:account_id, :tag_id]