That's an issue with ActiveRecord and the PostgreSQL gem (which is
discussed 
https://insoshi.lighthouseapp.com/projects/9331/tickets/110-migration-27-fails-using-postgresql-83#ticket-110-5).
The simple workaround is to remove migration 27 (027_fix_parent_id.rb)
and altering migration 3 (003_create_communications) to read
"t.integer :parent_id".

On Jul 26, 11:27 pm, DFischer <[email protected]> wrote:
> rake db:migrate
> ==  FixMessageParentId: migrating
> =============================================
> -- change_column(:communications, :parent_id, :integer)
> rake aborted!
> An error has occurred, this and all later migrations canceled:
>
> PGError: ERROR:  column "parent_id" cannot be cast to type
> "pg_catalog.int4"
> : ALTER TABLE "communications" ALTER COLUMN "parent_id" TYPE integer
>
> (See full trace by running task with --trace)
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/

You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to