aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-05-29 00:11:56 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-05-29 00:11:56 +0000
commit06744bb4c5777cae45dca3b0ed4826ab14cbc558 (patch)
treeb98960f3fee88a1ae10f39fdf14da4b527fafd03 /railties/lib/rails_generator/generators/components/model/templates/fixtures.yml
parent428d1f67dab05b84330c7fc66bff0202aee91bd8 (diff)
downloadrails-06744bb4c5777cae45dca3b0ed4826ab14cbc558.tar.gz
rails-06744bb4c5777cae45dca3b0ed4826ab14cbc558.tar.bz2
rails-06744bb4c5777cae45dca3b0ed4826ab14cbc558.zip
Generated migrations include timestamps by default. Closes #8501.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/model/templates/fixtures.yml')
-rw-r--r--railties/lib/rails_generator/generators/components/model/templates/fixtures.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml b/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml
index 6be3c81bee..eb3ab81ab8 100644
--- a/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml
+++ b/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml
@@ -4,8 +4,12 @@ one:
<% for attribute in attributes -%>
<%= attribute.name %>: <%= attribute.default %>
<% end -%>
+ created_at: <%= Time.now.to_s(:db) %>
+ updated_at: <%= Time.now.to_s(:db) %>
two:
id: 2
<% for attribute in attributes -%>
<%= attribute.name %>: <%= attribute.default %>
<% end -%>
+ created_at: <%= Time.now.to_s(:db) %>
+ updated_at: <%= Time.now.to_s(:db) %>