Skip to content

Commit

Permalink
Make explicit that references and belongs_to types have nil as defaul…
Browse files Browse the repository at this point in the history
…t value.
  • Loading branch information
josevalim committed Jul 13, 2009
1 parent ae7a785 commit 2101930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/generators/generated_attribute.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2101930

Please sign in to comment.