agenda-libre-ruby/db/migrate/20141011100700_add_lock_version_to_events.rb

8 lines
249 B
Ruby

# Add optimistic locking to events, so that moderators won't risk overwriting
# each others' work
class AddLockVersionToEvents < ActiveRecord::Migration
def change
add_column :events, :lock_version, :integer, default: 0, null: false
end
end