Fix Rails/CreateTableWithTimestamps cop (#30836)

This commit is contained in:
Matt Jankowski 2024-10-01 09:56:43 -04:00 committed by GitHub
parent 65508bb0c0
commit 4cae309f6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 13 additions and 8 deletions

View file

@ -2,7 +2,7 @@
class CreatePreviewCardTrends < ActiveRecord::Migration[6.1]
def change
create_table :preview_card_trends do |t|
create_table :preview_card_trends do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.references :preview_card, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
t.float :score, null: false, default: 0
t.integer :rank, null: false, default: 0