mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Generated fixtures should not specify ids since theyre expected to be foxy fixtures (closes #10330) [jbarnette]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
c0d1f035fb
commit
cc86875a14
2 changed files with 14 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
*SVN*
|
||||
|
||||
* Generated fixtures should not specify ids since theyre expected to be foxy fixtures #10330 [jbarnette]
|
||||
|
||||
|
||||
*2.0.0 [RC2]* (November 28th, 2007)
|
||||
|
||||
* Update to Prototype -r8232. [sam]
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
<% unless attributes.empty? -%>
|
||||
one:
|
||||
<%= class_name.constantize.primary_key %>: 1
|
||||
<% for attribute in attributes -%>
|
||||
<%= attribute.name %>: <%= attribute.default %>
|
||||
<% end -%>
|
||||
<% unless options[:skip_timestamps] -%>
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
updated_at: <%= Time.now.to_s(:db) %>
|
||||
<% end -%>
|
||||
|
||||
two:
|
||||
<%= class_name.constantize.primary_key %>: 2
|
||||
<% for attribute in attributes -%>
|
||||
<%= attribute.name %>: <%= attribute.default %>
|
||||
<% end -%>
|
||||
<% unless options[:skip_timestamps] -%>
|
||||
created_at: <%= Time.now.to_s(:db) %>
|
||||
updated_at: <%= Time.now.to_s(:db) %>
|
||||
<% else -%>
|
||||
# one:
|
||||
# column: value
|
||||
#
|
||||
# two:
|
||||
# column: value
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue