noosfero | chat fixes and new features (1c125da7)

Daniela Feitosa gitlab at gitlab.com
Mon Jun 1 12:24:06 BRT 2015


New comment for Commit 1c125da7

https://gitlab.com/noosfero/noosfero/commit/1c125da767ba502b800bd58896ed1aaac828a092#note_1316719


Author: Daniela Feitosa

Instead of creating a new table with the same name, why didn't you change the old table?

This migration will not run on environments that already have the old table "chat_messages" :(

```
==  CreateChatMessages: migrating =============================================
-- create_table(:chat_messages)
NOTA:  CREATE TABLE criará sequência implícita "chat_messages_id_seq1" para coluna serial "chat_messages.id"
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::Error: ERRO:  relação "chat_messages" já existe
: CREATE TABLE "chat_messages" ("id" serial primary key, "from_id" integer NOT NULL, "to_id" integer NOT NULL, "body" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) /home/dani/noosfero/db/migrate/20141014205254_create_chat_messages.rb:3:in `up'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
```

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150601/9f6bcf67/attachment.html>


More information about the Noosfero-dev mailing list