Skip to content
Permalink
Browse files

Adding Comment. Known problem during migration. Defaultvalue von re_a…

…rtifact_relation was not set to parentchild
  • Loading branch information...
Markowski
Markowski committed Aug 7, 2018
1 parent ac3e724 commit 6c6667d86550801bdb24950f94495a434c44f94f
Showing with 2 additions and 0 deletions.
  1. +2 −0 db/migrate/021_create_re_settings.rb
@@ -23,6 +23,8 @@ def self.up
#print 'storing {' + rel.id.to_s + ' => ' + rel.relation_type.to_s + '} \n'
stored_relations[rel.id] = rel.relation_type
end

#Known Problem: The default value may not be set. Check database when getting error on creation of artifacts.
change_column(:re_artifact_relationships, :relation_type, :string, { :limit => 50, :null => false, :default => 'parentchild'})
ReArtifactRelationship.reset_column_information
#print 'relations: ' + stored_relations.inspect

0 comments on commit 6c6667d

Please sign in to comment.
You can’t perform that action at this time.