添加迁移--项目类型默认值

This commit is contained in:
huang 2015-04-14 20:04:58 +08:00
parent b8058c3e12
commit f528584345
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class ImportNewtypeDataToProject < ActiveRecord::Migration
def up
sql = ("update projects set project_new_type=1")
execute(sql)
end
def down
end
end