[Rails] Re: Code runs in development but not in test

2009-05-08 Thread uberlordchris
Lee is using InnoDB. Chris. On 8 May, 15:02, Jodi Showers wrote: > Lee - > > On 8-May-09, at 9:53 AM, Colin Law wrote: > > > Is it failing while running one of your tests (possibly an error in   > > the test) or while preparing for the test (possibly a problem with   > > your fixtures)? > > > C

[Rails] belongs_to not working as expected

2009-04-24 Thread uberlordchris
I'm using ActiveRecord 2.3.2. I have a class with a belongs_to association like this: class Foo < ActiveRecord::Base belongs_to :bar end It is valid for bar to be nil (thus, in the database, foos.bar_id can be null). However, if I execute the following I get an error: foo = Foo.new