Permalink
Browse files

Update 20140505000000_create_re_relationtypes.rb

Because in ruby1.8 I get error:

rake redmine:plugins:migrate --trace
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:plugins:migrate
Migrating redmine_re (Redmine Requirements Engineering Plugin)...
rake aborted!
SyntaxError: /usr/share/redmine/plugins/redmine_re/db/migrate/20140505000000_create_re_relationtypes.rb:21: syntax error, unexpected ':', expecting ')'
...roperties.where(artifact_type: 'Project').each do |project|
                              ^
/usr/share/redmine/plugins/redmine_re/db/migrate/20140505000000_create_re_relationtypes.rb:21: syntax error, unexpected ')', expecting kEND
...here(artifact_type: 'Project').each do |project|
  • Loading branch information...
Tri0L committed Apr 4, 2015
1 parent 358266e commit 2fae3a3084fd41ec4307600b810cbd551899fe8c
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/migrate/20140505000000_create_re_relationtypes.rb
@@ -18,7 +18,7 @@ def self.up
t.integer :in_use
end
ReArtifactProperties.where(artifact_type: 'Project').each do |project|
ReArtifactProperties.where({:artifact_type => 'Project'}).each do |project|
ReRelationtype.new(:project_id => project.project_id, :relation_type => "parentchild", :alias_name => "parentchild", :color => "#0000ff", :is_system_relation => "1", :is_directed => "1", :in_use => "1").save
ReRelationtype.new(:project_id => project.project_id, :relation_type => "primary_actor", :alias_name => "primary_actor", :color => "#ff99cc", :is_system_relation => "1", :is_directed => "1", :in_use => "1").save
ReRelationtype.new(:project_id => project.project_id, :relation_type => "actors", :alias_name => "actors", :color => "#ff00ff", :is_system_relation => "1", :is_directed => "1", :in_use => "1").save
@@ -35,4 +35,4 @@ def self.up
def self.down
drop_table :re_relationtypes
end
end
end

0 comments on commit 2fae3a3

Please sign in to comment.