performance: denormalize count of followers

This commit is contained in:
Kyle Drake 2017-04-02 20:47:06 -07:00
parent a542796ce3
commit 04af230f8d
8 changed files with 43 additions and 25 deletions

View 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