Issue指派给为0的时候迁移
This commit is contained in:
parent
50a14ad5fe
commit
629770a703
|
@ -0,0 +1,8 @@
|
|||
class UpdateAssginToId < ActiveRecord::Migration
|
||||
def up
|
||||
Issue.find_by_sql("update `issues` set assigned_to_id = null where assigned_to_id = 0;")
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue