Sha256: be17c30615ed9b12a4a7df2bc3a4d5245c10e7331f01faf34cebd413e0c3606a

Contents?: true

Size: 258 Bytes

Versions: 20

Compression:

Stored size: 258 Bytes

Contents

class AddOptimisticLockingToCart < ActiveRecord::Migration
  def self.up
    change_table :carts do |t|
      t.integer :lock_version, :default => 0
    end
  end

  def self.down
    change_table :carts do |t|
      t.remove :lock_version
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-enriquez-0.9.4 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.9.4 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.9.3 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.9.2 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.9.1 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.9.0 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.8.4 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.8.5 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.4.0 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.4.1 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.5.0 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.6.0 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.5.1 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.7.0 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.7.1 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.8.0 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.8.1 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.8.2 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb
spree-0.8.3 db/migrate/20080715014028_add_optimistic_locking_to_cart.rb