Description of the problem
Redmine would not start and you got this error in your logs after you execute the migration command of the Tags plugin "bundle exec rake redmine:plugins NAME=redmineup_tags RAILS_ENV=production":
ERROR: column tags.color does not exist
Solution
to fix the problem, please just follow the below steps:
1. Launch the Rails console:
RAILS_ENV=production bundle exec rails console
Or via this command:
bundle exec rails console -e production
2. Run the command:
ActiveRecord::Base.add_tags_column(:tags, name: :color, type: :integer, default: nil)
If you use Redmine via Docker Container, please execute the below command:
docker compose exec -T redmine bundle exec rails runner "ActiveRecord::Base.add_tags_column(:tags, name: :color, type: :integer, default: nil)"
In this way you can put it in a script file and does not need an interactive console. The RAILS_ENV is set via the composefile.
3. Exit end reload Redmine