Okay, I’m trying really hard to get this to work. And it has worked
before. I have added tables to my database before but now it suddenly
doesn’t "know how to build task ‘db:create’, ‘db:drop’ or even
I’ve updated to the latest ruby gems, latest rails, but these do not
solve the problem either.
I’ve checked the rake -T and can not locate any command called
‘db:create’, ‘db:drop’ or even ‘db:reset’ which I though I would find
I even tried to do an ugly solution by inserting the table contents in
the schema, but it rendered that i had an error in my SQL syntax. I
can’t see why it would be my table that is wrong, but maybe somehow it’s
a possibillity, or?
create_table :portfolios, :force => true do |t|
t.column “parent_id”, :integer
t.column “content_type”, :string
t.column “filename”, :string
t.column “thumbnail”, :string
t.column “size”, :integer
t.column “width”, :integer
t.column “height”, :integer
t.column “user_id”, :interger
so i even tried to insert it manually in SQLyog, but there isn’t a
string value to select to insert into my table.
WHAT IS WROOONG?!