One option would be to use raw SQL statements in your migration, like this:

def self.up
        execute "INSERT INTO authors_books VALUES (1,1)"
end

def self.down
        execute "TRUNCATE authors_books"
end

-- Patrick


Patrick,

Thanks.....I think that's what I'll need to do.

Does the "TRUNCATE authors_books" in the drop wipe all of the new rows?

Kevin Burk

--
***************************************
BURK DESIGN GROUP
http://www.BurkDesignGroup.com
mailto:[EMAIL PROTECTED]
6161 El Cajon Blvd #306
San Diego, CA 92115
PHONE (619) 583-2311
FAX (619) 583-5801
***************************************
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to