提交迁移文件。。

This commit is contained in:
z9hang 2014-08-26 17:46:28 +08:00
parent cb8b0e0f41
commit 62aa1d0ed5
1 changed files with 19 additions and 0 deletions

View File

@ -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