From 8ab4d9dc5879df33e28fbb200200be7f8956f822 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Mon, 6 Jan 2020 10:30:34 +0800 Subject: [PATCH] ADD watchers_count filed to projects table --- db/migrate/20200106022235_add_watchers_count_to_projects.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20200106022235_add_watchers_count_to_projects.rb diff --git a/db/migrate/20200106022235_add_watchers_count_to_projects.rb b/db/migrate/20200106022235_add_watchers_count_to_projects.rb new file mode 100644 index 000000000..551e9e5b6 --- /dev/null +++ b/db/migrate/20200106022235_add_watchers_count_to_projects.rb @@ -0,0 +1,5 @@ +class AddWatchersCountToProjects < ActiveRecord::Migration[5.2] + def change + add_column :projects, :watchers_count, :integer, :default => 0 + end +end