1
0
Fork 0
forked from gitea/nas

Fix Rails/CreateTableWithTimestamps cop (#30836)

This commit is contained in:
Matt Jankowski 2024-10-01 09:56:43 -04:00 committed by Claire
parent b2ce9bb4c7
commit c91e06bcad
9 changed files with 13 additions and 8 deletions

View file

@ -2,7 +2,7 @@
class CreateAccountConversations < ActiveRecord::Migration[5.2]
def change
create_table :account_conversations do |t|
create_table :account_conversations do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.belongs_to :account, foreign_key: { on_delete: :cascade }
t.belongs_to :conversation, foreign_key: { on_delete: :cascade }
t.bigint :participant_account_ids, array: true, null: false, default: []