Sha256: dcd142383565a0528696997334c23bb319a8155f9a5d2e0ae7af7f8f10962d63
Contents?: true
Size: 938 Bytes
Versions: 4
Compression:
Stored size: 938 Bytes
Contents
class <%= class_name %> < ActiveRecord::Migration # Schema for Comatose version 0.7+ 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.text "body" t.string "filter_type", :limit => 25 t.string "author", :limit => 255 t.integer "position", :default => 0 t.integer "version" t.datetime "updated_on" t.datetime "created_on" end ComatosePage.create_versioned_table puts "Creating the default 'Home Page'..." Comatose.create_root_page( :title=>'Home Page', :body=>"h1. Welcome\n\nYour content goes here...", :author=>'System' ) end def self.down ComatosePage.drop_versioned_table drop_table :comatose_pages end end
Version data entries
4 entries across 4 versions & 1 rubygems