test/test_helper.rb in historic-0.1.0 vs test/test_helper.rb in historic-0.2.0
- old
+ new
@@ -14,15 +14,17 @@
ActiveRecord::Schema.define(:version => 1) do
columns = [:field_1, :field_2, :field_3]
create_table :historic_items do |t|
t.string *columns
+ t.integer :version, :default => 0
end
create_table :historic_item_histories do |t|
t.string *columns
t.integer :position
t.integer :historic_item_id
+ t.integer :version
end
end
require "historic_item_history"
require "historic_item"