lib/generators/documentation/scaffold/templates/resource.md.tt in documentation-zero-0.0.9 vs lib/generators/documentation/scaffold/templates/resource.md.tt in documentation-zero-0.0.10
- old
+ new
@@ -82,9 +82,11 @@
"<%= attribute.column_name %>": "integer",
<% elsif !attribute.virtual? -%>
"<%= attribute.column_name %>": "<%= attribute.type %>",
<% end -%>
<% end -%>
+<% if options.timestamps? -%>
"created_at": "datetime",
"updated_at": "datetime"
+<% end -%>
}
```