adds counter cache for user's notifications
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddNotificationsCounterCacheToUser < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :notifications_count, :integer, default: 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user