Permalink
Browse files

Make explicit that references and belongs_to types have nil as defaul…

…t value.
  • Loading branch information...
1 parent ae7a785 commit 21019304f07f9ba70ef0ec4434d96321cebc266c @josevalim josevalim committed Jul 13, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/generators/generated_attribute.rb
@@ -30,6 +30,7 @@ def default
when :string then "MyString"
when :text then "MyText"
when :boolean then false
+ when :references, :belongs_to then nil
else
""
end

0 comments on commit 2101930

Please sign in to comment.