Technology Errors

Upgrade Redmine Rake Migrate Error: uninitialized constant ActionController::AbstractRequest

I ran into an issue earlier where adding a sub project to an already existing Redmine project produced an error and after a little bit of troubleshooting determined that upgrading Redmine would resolve the issue. During the upgrade process I ran into some other issues including a specific migration error using rake that is noted below. The upgrade process involved upgrading Redmine 0.8.3 to Redmine 0.9.3.

Technology Insights

Create Ruby Migration To Add An Index To A PostgreSQL Table

The other day I did some optimization work on a PostgreSQL database and at the end needed to create migrations so the changes I was going to make could be deployed on multiple servers. It was my first shot at migrations so I wanted to note for myself and anyone else that may find it useful how to create Ruby migrations for dropping and adding Indexes on PostgreSQL tables. Below you will find the basic concept for creating a migration that adds a Postgres table index and information on removing a table index which is just the reverse of adding.

Technology Insights

Generating RDoc HTML files for your Rails project

To generate Rdoc HTML documentation files for your Rails project, run:   ruby rake doc:app This will create the following directory structure in your #{RAILS_ROOT}/doc/app directory: classes (dir) files (dir) created.rid fr_class_index.html fr_file_index.html fr_method_index.html index.html rdoc-style.css Here are some the other RDoc related rake tasks (listed by running rake -T) ruby rake doc:app    …

Technology Insights

Setting Up Redmine: SVN Repositories Timing Out When Attempting to View

When setting up Redmine as a project management system you might run into an issue after configuring the SVN repository for a project. If the SVN project already exists and there are a bunch of commits typically when browsing to the repository for the first time it will time out. Usually when it does time out it will display in your browser as a 503 error. Below I discuss configuring the SVN repository and then running a rake task to resolve the browser time out issue.

First lets set up the SVN repository following the directions below.

  1. Open Redmine Project: After you have created a Redmine project that the SVN repository will belong to browse to that project  in a browser.

Technology Insights

Convert an Assembla Trac Project to Redmine Project Management

One of the larger projects I am working on recently decided to switch from Assembla to Redmine for project management. There are many advantages to Redmine versus Assembla the largest being cross project management for Redmine and in Assembla projects are completely isolated. There are some others that our team finds extremely useful including the stuff to do plugin for Redmine that allows for drag and drop priorities for tickets. It is also going to be nice to finally be in complete control of backing up our data, making changes, uptime, etc.

The below specifically applies to Assembla however can be used for any trac project that is on a remote server. At first I was under the assumption I would have to install trac, have it up and running, and then import into Redmine. This is not the case as the Redmine task will use the directory structure to do all the importing so you only need to backup the trac directory on the remote server and then copy it to the new Redmine server.