diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-13 16:18:56 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-13 16:18:56 +0200 |
commit | 21019304f07f9ba70ef0ec4434d96321cebc266c (patch) | |
tree | 1e316b175f066c10414833a4ff767e1776aea0fe /railties/lib | |
parent | ae7a7852d56bd99304affa220dd4d91a2fff16a7 (diff) | |
download | rails-21019304f07f9ba70ef0ec4434d96321cebc266c.tar.gz rails-21019304f07f9ba70ef0ec4434d96321cebc266c.tar.bz2 rails-21019304f07f9ba70ef0ec4434d96321cebc266c.zip |
Make explicit that references and belongs_to types have nil as default value.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/generated_attribute.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/generators/generated_attribute.rb b/railties/lib/generators/generated_attribute.rb index 35dac99dbe..e962308585 100644 --- a/railties/lib/generators/generated_attribute.rb +++ b/railties/lib/generators/generated_attribute.rb @@ -30,6 +30,7 @@ module Rails when :string then "MyString" when :text then "MyText" when :boolean then false + when :references, :belongs_to then nil else "" end |