Db migrate failure in new 6.0.5

I’m setting up a fresh typo 6.0.5 installation. Downloaded and untarred
the 6.0.5 tarball. Ran ‘bundle install’ and then tried rake db:migrate
RAILS_ENV=production. The database existed, but was empty. I expected
everything to run smoothly, of course, so I am surprised to be seeing

Creating shortened URL for existing contents, this may take a moment
rake aborted!
An error has occurred, all later migrations canceled:

The single-table inheritance mechanism failed to locate the subclass:
‘Page’. This error is raised because the column ‘type’ is reserved for
storing the class in case of inheritance. Please rename this column if
didn’t intend it to be used for storing the inheritance class or
Content.inheritance_column to use another column for that information.

Tasks: TOP => db:migrate
(See full trace by running task with --trace)

What am I missing? I can’t imagine there is/was a problem with the
database as I’m staring with a fresh empty database. Any thoughts?


Hi Alan,

Sadly, this is a known bug :-(. I’m working on an overhaul of the
migrations, many of which were created in prehistory, but I’ll try to
rush a fix for this particular problem today.

In the mean time, you can take a look at


The patch there apparently works (though I have not tested it myself),
but DO be sure to remove it once the migration is done.



I went ahead and pulled down a clone of the typo git repo and noted in
git log that you committed a change that says it fixes issue #209.
your fix, I chose to re-attempt my typo install using this code instead
making the patch to 6.0.5. Unfortunately, the problem as described

Is it possible that commit #a7964f4 was subsequently re-broken by one of
the two following commits?

For the time being, I’ve decided to just work with 6.0.5 and the patch.


Alan Partis
thundernet development group

Hi Alan,

I thought I understood the issues involved in this bug, but apparently I
I have now committed what I think is the Ultimate Fix™ for this bug.
check it out if you like.