Models with no attributes should just have empty hash fixtures [Sam] (Closes #3563)

This commit is contained in:
David Heinemeier Hansson
2009-12-17 17:53:16 -08:00
parent fa575973b1
commit 44fb54fecd

View File

@@ -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 -%>