set_table_name and set_locking_column are deprecated.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9549 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
d2f779d6e8
commit
d940797aa7
5 files changed
+5
-5
No files matched your search
@@ -18,7 +18,7 @@
|
||||
require 'zlib'
|
||||
|
||||
class WikiContent < ActiveRecord::Base
|
||||
set_locking_column :version
|
||||
self.locking_column = 'version'
|
||||
belongs_to :page, :class_name => 'WikiPage', :foreign_key => 'page_id'
|
||||
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
|
||||
validates_presence_of :text
|
||||
|
||||
Reference in new issue
Block a user