diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-04-16 17:25:55 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-04-16 17:25:55 -0500 |
commit | abb899c54e8777428b7a607774370ba29a5573bd (patch) | |
tree | 7fe740e4df2db5f96900e1d536db733da8edd42f /activerecord/test/schema | |
parent | fdb61f02c54bda0ad5ff6d0259209113202b9307 (diff) | |
download | rails-abb899c54e8777428b7a607774370ba29a5573bd.tar.gz rails-abb899c54e8777428b7a607774370ba29a5573bd.tar.bz2 rails-abb899c54e8777428b7a607774370ba29a5573bd.zip |
Added :touch option to belongs_to associations that will touch the parent record when the current record is saved or destroyed [DHH]
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index ea848a2940..5640510c96 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -281,6 +281,8 @@ ActiveRecord::Schema.define do create_table :owners, :primary_key => :owner_id ,:force => true do |t| t.string :name + t.column :updated_at, :datetime + t.column :happy_at, :datetime end |