refinery / refinerycms-news

News Plugin for Refinery CMS
http://www.refinerycms.com
MIT License
121 stars 120 forks source link

Problem with migrations #105

Closed andrewhavens closed 12 years ago

andrewhavens commented 12 years ago

Starting with a new refinery project, I wanted to try out the news engine. So I added the gem, bundle installed, and ran the generator. When I went to do rake db:migrate I got the following error:

rake aborted!
An error has occurred, this and all later migrations canceled:

SQLite3::SQLException: table "refinery_settings" already exists: CREATE TABLE "refinery_settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "value" text, "destroyable" boolean DEFAULT 't', "scoping" varchar(255), "restricted" boolean DEFAULT 'f', "form_value_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 

Not sure if this has broken anything yet, but I thought I should mention it.

andrewhavens commented 12 years ago

Ah, nevermind...my bad. I created for myself a "refinery sandbox" project. Rails, by default, adds the development.sqlite to the gitignore, so when I switched to my "try out the news engine" branch, it brought over the sqlite database from a different branch, with different migrations. Sorry! Lesson learned.