From 62aa1d0ed5dae9f0826033877465af4de5687dad Mon Sep 17 00:00:00 2001 From: z9hang Date: Tue, 26 Aug 2014 17:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=BF=81=E7=A7=BB=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...20140826072838_project_score_add_cloumn.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 db/migrate/20140826072838_project_score_add_cloumn.rb diff --git a/db/migrate/20140826072838_project_score_add_cloumn.rb b/db/migrate/20140826072838_project_score_add_cloumn.rb new file mode 100644 index 000000000..1792273c1 --- /dev/null +++ b/db/migrate/20140826072838_project_score_add_cloumn.rb @@ -0,0 +1,19 @@ +class ProjectScoreAddCloumn < ActiveRecord::Migration + def up + add_column("project_scores","issue_num",:integer,:default => 0) + add_column("project_scores","issue_journal_num",:integer,:default => 0) + add_column("project_scores","news_num",:integer,:default => 0) + add_column("project_scores","documents_num",:integer,:default => 0) + add_column("project_scores","changeset_num",:integer,:default => 0) + add_column("project_scores","board_message_num",:integer,:default => 0) + end + + def down + remove_column("project_scores","issue_num") + remove_column("project_scores","issue_journal_num") + remove_column("project_scores","news_num") + remove_column("project_scores","documents_num") + remove_column("project_scores","changeset_num") + remove_column("project_scores","board_message_num") + end +end