Sha256: 349d49ffa7e113ebe6e75314a8383e259892fd6c5f8675b2635712b857b0f257
Contents?: true
Size: 553 Bytes
Versions: 18
Compression:
Stored size: 553 Bytes
Contents
module Comatose class Page < ActiveRecord::Base set_table_name 'comatose_pages' acts_as_versioned :if_changed => [:title, :slug, :keywords, :body] end end class <%= class_name %> < ActiveRecord::Migration # Upgrades schema from version 0.6 to version 0.7 def self.up add_column :comatose_pages, "version", :integer Comatose::Page.create_versioned_table end # Downgrades schema from version 0.7 to version 0.6 def self.down Comatose::Page.drop_versioned_table remove_column :comatose_pages, "version" end end
Version data entries
18 entries across 18 versions & 6 rubygems