添加迁移--项目类型默认值
This commit is contained in:
parent
b8058c3e12
commit
f528584345
|
@ -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
|
Loading…
Reference in New Issue