aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/model/templates
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-12-17 17:53:16 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-12-17 17:53:16 -0800
commit44fb54fecdab684425bbc3bb15aac9d5c6e34fc8 (patch)
tree4f64d863d7bde4c999bcff497628246abcb5520b /railties/lib/rails/generators/test_unit/model/templates
parentfa575973b1ad5adb7115a18c4c1c7c31500e73b2 (diff)
downloadrails-44fb54fecdab684425bbc3bb15aac9d5c6e34fc8.tar.gz
rails-44fb54fecdab684425bbc3bb15aac9d5c6e34fc8.tar.bz2
rails-44fb54fecdab684425bbc3bb15aac9d5c6e34fc8.zip
Models with no attributes should just have empty hash fixtures [Sam] (Closes #3563)
Diffstat (limited to 'railties/lib/rails/generators/test_unit/model/templates')
-rw-r--r--railties/lib/rails/generators/test_unit/model/templates/fixtures.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml b/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml
index c21035113e..a30132bc99 100644
--- a/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml
+++ b/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml
@@ -11,9 +11,13 @@ two:
<%= attribute.name %>: <%= attribute.default %>
<% end -%>
<% else -%>
-# one:
-# column: value
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
#
-# two:
-# column: value
-<% end -%>
+one: {}
+# column: value
+#
+two: {}
+# column: value
+<% end -%> \ No newline at end of file