Forum: Ruby on Rails Problems with MySQL Replication and Migrations

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.
6d93bda89be85bc834adeab757a1742b?d=identicon&s=25 Erik (Guest)
on 2006-12-22 22:10
(Received via mailing list)
Does anyone have MySQL replication set up for a Rails App that uses
migrations? I'm having an issue where every time I run a migration
Rails is trying to create the schema_info table.

Mysql::Error: Table 'schema_info' already exists: CREATE TABLE
schema_info (version int(11))

This causes a problem on the slave databases where the replicated
create table statement causes an error that stops the slave's SQL

I'm wondering if there is a reason why the migrations framework keeps
trying to create the table, rather than checking for its existence

Thanks in advance.

This topic is locked and can not be replied to.