X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a4d3d324ecc2e4535dd1e8fa62bac2bdd2951d5b..4d6df34c4bca932b75f2260fe533b4d22c3651f9:/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb diff --git a/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb b/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb index 6b30071bd..d90521595 100644 --- a/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb +++ b/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb @@ -1,13 +1,4 @@ class AddNotesAndDiaryCommentsCounterCaches < ActiveRecord::Migration[7.1] - class DiaryComment < ApplicationRecord - end - - class NoteComment < ApplicationRecord - end - - class User < ApplicationRecord - end - def self.up add_column :users, :diary_comments_count, :integer, :default => 0 add_column :users, :note_comments_count, :integer, :default => 0