cirandas.net

ref: master

db/migrate/071_remove_lock_version.rb


1
2
3
4
5
6
7
8
9
class RemoveLockVersion < ActiveRecord::Migration
  def self.up
    remove_column :articles, :lock_version
  end

  def self.down
    add_column  :articles, :lock_version, :integer, :default => 0
  end
end