Ok, I seem to have a problem already. So first of all with these things, can I just change it in db/migrate/ WhateverFile.rb ? Then when I have changed it how do I put these changes into action?
Also I cant seem to find how this could help me solve the error: rake aborted! An error has occurred, this and all later migrations canceled: SQLite3::SQLException: table "categories" already exists: CREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image" varchar(255), "created_at" datetime, "updated_at" datetime) (See full trace by running task with --trace) Although I assume it could in some way (since it has to do with the database, and rake etc).. Please Help, Thanks In Advance, Joe On Mar 21, 1:11 pm, yout...@dev-hq.co.uk wrote: > Aha, thanks! ill look into this (I really dont know any of the > terminology, when I created the stuff I saw the word scaffold and > assumed this was what to call it :P) > > If I have any further problems ill ask. > > Thanks, > > Joe > > On Mar 21, 1:02 pm, Michael Pavling <pavl...@gmail.com> wrote: > > > On 21 March 2010 12:02, <yout...@dev-hq.co.uk> wrote: > > > > For example if I created a forum with RoR and decided to have a forum, > > > thread, and post scaffold, and they each has their own properties; > > > > rake aborted! > > > An error has occurred, this and all later migrations canceled: > > > You've got some terminology problems there, that are confusing things > > a little. What you're calling "scaffolds" are really "migrations". > > > "Scaffolding" is the combination of views, migrations, models and > > controllers that Rails can create for you to give you a bootstrap into > > a working application. > > > By the sounds of it, you need to use "add_column" in your new migration. > > Have a look at some of the resources found through Google, or at p.71 > > of the "Agile Web Development With Rails" > > book.http://www.google.co.uk/search?q=rails+migration+add_column -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.