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