From: Thomas Kjeldahl Nilsson <tho...@gitorious.com>
Date: Wed, 31 Oct 2012 09:46:19 +0100
Local: Wed, Oct 31 2012 4:46 am
Subject: Re: [gitorious] rake db:migrate error
haven't seen this on my end but I'm helping a customer facing the same cheers,
On 10/30/2012 09:18 PM, Peter Kjellerstedt wrote:
> I stumbled upon the same problem the other day when I migrated our > The problem for you, however, is that you will have to revert the part > //Peter
> *From:*gitorious@googlegroups.com [mailto:gitorious@googlegroups.com] > Hi all,
> This is my error:
> git@maverick:~$ pwd
> /var/www/gitorious
> git@maverick:~$ bundle exec rake db:migrate
> .
> .
> .
> == AddProjectMemberships: migrating > -- create_table(:project_memberships)
> -> 0.0043s
> -- add_index(:project_memberships, [:project_id, :member_id, > -> 0.0062s
> == AddProjectMemberships: migrated (0.0110s) > == MakeProjectMembershipPolymorphicOnSubject: migrating > -- add_column(:project_memberships, :content_type, :string)
> -> 0.0062s
> rake aborted!
> An error has occurred, all later migrations canceled:
> Mysql::Error: Table 'gitorious_production.content_memberships' doesn't > (See full trace by running task with --trace)
> =======================================================
> *with --trace*
> *git@maverick:~$ bundle exec rake db:migrate --trace*
> *(in /var/www/gitorious)*
> *** Invoke db:migrate (first_time)*
> *** Invoke environment (first_time)*
> *** Execute environment*
> *** Execute db:migrate*
> *== MakeProjectMembershipPolymorphicOnSubject: migrating > *-- add_column(:project_memberships, :content_type, :string)*
> *rake aborted!*
> *An error has occurred, all later migrations canceled:*
> **
> *Mysql::Error: Duplicate column name 'content_type': ALTER TABLE > **
> I'm following this steps: > How can I fix it?
> -- > -- best regards, Thomas Kjeldahl Nilsson http://gitorious.com You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||