class AddVersionedTables

Public Class Methods

down() click to toggle source
# File lib/plugins/acts_as_versioned/test/fixtures/migrations/1_add_versioned_tables.rb, line 9
def self.down
  Thing.drop_versioned_table
  drop_table "things" rescue nil
end
up() click to toggle source
# File lib/plugins/acts_as_versioned/test/fixtures/migrations/1_add_versioned_tables.rb, line 2
def self.up
  create_table("things") do |t|
    t.column :title, :text
  end
  Thing.create_versioned_table
end