aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/legacy_thing.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2006-01-14 09:36:52 +0000
committerMichael Koziarski <michael@koziarski.com>2006-01-14 09:36:52 +0000
commita471e6b4d741c498439767237efad9838df44834 (patch)
tree430eee828fff690cc1d1174f355e29d4822bfb4b /activerecord/test/fixtures/legacy_thing.rb
parent62d749ab0ef1787e050537bd9a6f833b30f1331d (diff)
downloadrails-a471e6b4d741c498439767237efad9838df44834.tar.gz
rails-a471e6b4d741c498439767237efad9838df44834.tar.bz2
rails-a471e6b4d741c498439767237efad9838df44834.zip
allow the 'lock_version' column to be configured with set_locking_column. Closes #3402
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/legacy_thing.rb')
-rw-r--r--activerecord/test/fixtures/legacy_thing.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/legacy_thing.rb b/activerecord/test/fixtures/legacy_thing.rb
new file mode 100644
index 0000000000..eaeb642d12
--- /dev/null
+++ b/activerecord/test/fixtures/legacy_thing.rb
@@ -0,0 +1,3 @@
+class LegacyThing < ActiveRecord::Base
+ set_locking_column :version
+end