#750 DmsfFile.save requires project_id attribute
This commit is contained in:
parent
7e793f9af5
commit
f7318f4d39
@ -74,6 +74,11 @@ class DmsfFileContainerRollback < ActiveRecord::Migration
|
||||
if file
|
||||
file.container_id = container_id
|
||||
file.container_type = 'Issue'
|
||||
# Inject project into instance of dmsf_file because save method needs it.
|
||||
class << file
|
||||
attr_accessor :project_id
|
||||
end
|
||||
file.project_id = 0
|
||||
file.save
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user