Added version control for wiki pages.
This commit is contained in:
parent
7ba6bc3680
commit
053c665270
36 changed files with 1647 additions and 15 deletions
15
vendor/plugins/acts_as_versioned/test/fixtures/migrations/1_add_versioned_tables.rb
vendored
Normal file
15
vendor/plugins/acts_as_versioned/test/fixtures/migrations/1_add_versioned_tables.rb
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class AddVersionedTables < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("things") do |t|
|
||||
t.column :title, :text
|
||||
t.column :price, :decimal, :precision => 7, :scale => 2
|
||||
t.column :type, :string
|
||||
end
|
||||
Thing.create_versioned_table
|
||||
end
|
||||
|
||||
def self.down
|
||||
Thing.drop_versioned_table
|
||||
drop_table "things" rescue nil
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue