mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 09:34:57 +02:00
performance: denormalize count of followers
This commit is contained in:
parent
a542796ce3
commit
04af230f8d
8 changed files with 43 additions and 25 deletions
9
migrations/097_add_follow_count_to_sites.rb
Normal file
9
migrations/097_add_follow_count_to_sites.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :follow_count, :integer, default: 0
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :follow_count
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue