Forum: Typo db migrate failure in new 6.0.5

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C3ba977a99bd79469b06892c5d5a985e?d=identicon&s=25 Alan Partis (alpartis)
on 2011-07-05 00:43
(Received via mailing list)
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?

8f6b8e99f52f0928287b01a006950f52?d=identicon&s=25 Matijs van Zuijlen (mvz)
on 2011-07-05 10:51
(Received via mailing list)
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.

C3ba977a99bd79469b06892c5d5a985e?d=identicon&s=25 Alan Partis (alpartis)
on 2011-07-06 04:44
(Received via mailing list)

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
8f6b8e99f52f0928287b01a006950f52?d=identicon&s=25 Matijs van Zuijlen (mvz)
on 2011-07-08 17:26
(Received via mailing list)
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(TM) for this bug.
check it out if you like.

This topic is locked and can not be replied to.