This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/db/migrate/010_help_start_page.rb

22 lines
423 B
Ruby
Raw Normal View History

class HelpStartPage < ActiveRecord::Migration
def self.up
redcloths = "
h1. Thanks for using BarleySodas
Please check out these topics for more specialized information.
* [[Peoples]]
* [[Beers]]
* [[Breweries]]
* [[Discussions]]
* [[Pages]]
* [[Sessions]]
"
Page.create :title => 'HomePage', :owner_type => 'Help', :redcloth => redcloths
end
def self.down
Page.destroy_all("owner_type = 'Help'")
end
end