Sha256: 0103394f54fe6d9921c1e76e116a9e70cccd85c28d37871cb50bddaa4610079b
Contents?: true
Size: 1.11 KB
Versions: 6
Compression:
Stored size: 1.11 KB
Contents
# class Comatose::Page < ActiveRecord::Base # set_table_name 'comatose_pages' # acts_as_versioned :table_name =>'comatose_page_versions', :if_changed => [ :title, :slug, :keywords, :body ] # end class AddComatoseSupport < ActiveRecord::Migration # Schema for Comatose version 3.0.0+ def self.up create_table :comatose_pages do |t| t.integer "parent_id" t.text "full_path", :default => '' t.string "title", :limit => 255 t.string "slug", :limit => 255 t.string "keywords", :limit => 255 t.string "layout" t.text "body" t.string "filter_type", :limit => 25, :default => "Textile" t.string "author", :limit => 255 t.integer "position", :default => 0 t.integer "version" t.timestamps end Comatose::Page.create_versioned_table rescue "Skipping Comatose::Page.create_versioned_table" end def self.down Comatose::Page.drop_versioned_table rescue "Skipping Comatose::Page.drop_versioned_table" drop_table :comatose_pages end end
Version data entries
6 entries across 6 versions & 1 rubygems