ivyl/redmine-gitolite — Issue #4: Incorrect ActiveRecord type when using PostgreSQL
Author: gdiscry
Created: 2011-10-30 16:37:05+00:00
State: open

The type of the `:active` column in the `:gitolite_public_keys` table is incorrect. It currently has an `:integer` type but is used for booleans in the code. It probably works with MySQL because there isn't a real boolean type but if fails with PostgreSQL.

We need an ActiveRecord migration that converts the `:active` column to `:boolean`. However, the `change_column` method doesn't seem to work with PostgreSQL and an integer-to-boolean conversion, so we need a more complex solution.