项目issue表数据迁移

This commit is contained in:
daiao 2016-11-11 15:20:07 +08:00
parent 812c74134a
commit e8f1a388ef
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class UpdateFixedVersionId < ActiveRecord::Migration
def up
Issue.find_by_sql("update `issues` set fixed_version_id = null where fixed_version_id = 0;")
end
def down
end
end