Added optimistic locking to wiki pages.
This commit is contained in:
parent
f83d2659de
commit
7ba6bc3680
4 changed files with 12 additions and 10 deletions
|
|
@ -4,6 +4,7 @@ class CreatePages < ActiveRecord::Migration
|
|||
t.string :title
|
||||
t.text :body
|
||||
t.string :permalink
|
||||
t.integer :lock_version, :default => 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
|
|
@ -215,6 +215,7 @@ ActiveRecord::Schema.define(:version => 20090325175756) do
|
|||
t.string "title"
|
||||
t.text "body"
|
||||
t.string "permalink"
|
||||
t.integer "lock_version", :default => 0
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue