Hello all,

A newly created fixture file by Rails generators contains some fixtures by
default with keys 'one' and 'two'.
If I add any null constraint on some column in that table and try to run
tests then it fails. Because Rails tries
to insert records with null values on columns having not-null constraint.

What do you think about adding the fixtures through generators but
commenting them. So when I actually want
to use those fixtures, I will go into fixtures file and uncomment the
existing ones or add new ones.
Right now it becomes a little painful to see build failing just because of
those fixtures.

Thanks.

-- 
./prathamesh
 GITHUB <https://github.com/prathamesh-sonpatki> Blog
<http://prathamesh-sonpatki.github.com>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAMAqDYikS%3DYXUUUXQSK59uR-%3DQH6One9CJ88ULuj-vHA6fGw4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to