fix migration for heroku
This commit is contained in:
parent
5b882b1332
commit
53d77a0e5b
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ class MappingPolymorphism < ActiveRecord::Migration
|
|||
unless mapping.synapse_id.nil?
|
||||
mapping.mappable = Synapse.find(mapping.synapse_id)
|
||||
else
|
||||
next if mapping.topic_id == 0
|
||||
mapping.mappable = Topic.find(mapping.topic_id)
|
||||
end
|
||||
mapping.save
|
||||
|
|
Loading…
Reference in a new issue