Displaying 1 result from an estimated 1 matches for "001_create_tables".
2006 May 17
0
acts_as_versioned with lock_version bug?
Hello.
The acts_as_versioned plugin works fine ... till the adjunction
of optimistic locking via the lock_version table column.
Here is the problem description:
Without optimistic locking things are fine:
# ++++ The table creation migration ++++
% cat db/migrate/001_create_tables.rb
class CreateTables < ActiveRecord::Migration
def self.up
create_table :softwares, :force => true do |t|
t.column :name, :string, :limit => 20, :null => false
t.column :version, :integer, :default => 0, :null => false
end
Sof...