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;
Lets say the forum scaffold was made with these parameters “forum
name:string number:integer”. However if I wanted to add another
property to the forum scaffold (for example if I wanted to add
“password:string”) how would I do this?
At the moment I have something similar to this (well its different,
but never the less uses scaffolds kind of like this) and I need to add
a new property. Ive tried creating over the top of it with its already
existing parameters plus the ones I want to add (for example “forum
name:string number:integer password:string”) however when I do this I
then get this error when I attempt to migrate the database (categories
is the scaffold I’m trying to add properties to):
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,
(See full trace by running task with --trace)
I really need to be able to:
1)Get past this error.
2)Figure out how to add properties to scaffolds.
Thanks In Advance,