mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Models with no attributes should just have empty hash fixtures [Sam] (Closes #3563)
This commit is contained in:
@@ -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 -%>
|
||||
Reference in New Issue
Block a user