Thanks, I was able to delete the add_test_date fine. So I have:
only output was
No change to the database, and the schema_info table has version 4 in
here is the basic file i am trying to use:
class AddTestData < ActiveRecord::Migration
Product.create(:title => 'Pragmatic Project Automation',
<em>Pragmatic Project Automation</em> shows you how to improve
consistency and repeatability of your project’s procedures using
automation to reduce risk and errors.
Simply put, we’re going to put this thing called a computer to
for you doing the mundane (but important) project stuff. That
you’ll have more time and energy to do the really
exciting—and difficult—stuff, like writing quality code.
:image_url => ‘/images/auto.jpg’,
:price => 29.95)
I don’t really know how or where it is supposed to get Product.create
Jan P. wrote:
On 8/1/06, Frank M. [email protected] wrote:
Just going through ‘agile web development with rails’ 2nd ed.
I accidentally created an empty migration source file with the wrong
ruby script/generate migration add_test_date
You might want to try ruby script/destroy migration add_test_date
and then straight after that created the one I wanted to use
ruby script/generate migration add_test_data
and populated the second one - when I ran
a few times it did not seem to update the table. I read something in the
book about creating empty migration files, but I thought if I created a
new one it should work.
Yes, I think so too. What exactly is it that is not working?
what should i do now? also - do i need the server running to perform
No, that isn’t necessary.