From 528618a91082748133488fefbf5f57cf8b96ed75 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 4 Sep 2006 00:02:38 +0000 Subject: Optimistic locking: gracefully handle nil versions, treat as zero. Closes #5908. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/db_definitions/schema.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'activerecord/test/fixtures/db_definitions') diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb index e06c14b6ae..6f4aca971e 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/fixtures/db_definitions/schema.rb @@ -49,4 +49,12 @@ ActiveRecord::Schema.define do t.column :sink_id, :integer, :null => false end add_index :edges, [:source_id, :sink_id], :unique => true, :name => 'unique_edge_index' + + create_table :lock_without_defaults, :force => true do |t| + t.column :lock_version, :integer + end + + create_table :lock_with_custom_column_without_defaults, :force => true do |t| + t.column :custom_lock_version, :integer + end end -- cgit v1.2.3