add watchers_count to user

This commit is contained in:
sylor_huang@126.com
2020-05-18 14:58:23 +08:00
parent 8bc503e9e6
commit b48fea51ca
2 changed files with 11 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
class AddWatchersCountToUser < ActiveRecord::Migration[5.2]
def change
add_column :users, :watchers_count, :integer, default: 0
end
end