提交 44fb54fe 编写于 作者: D David Heinemeier Hansson

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

上级 fa575973
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册