Class: Alchemy::Seeder

Inherits:
Object
  • Object
show all
Extended by:
Shell
Defined in:
lib/alchemy/seeder.rb

Direct Known Subclasses

Upgrader

Class Method Summary collapse

Methods included from Shell

add_todo, desc, display_todos, log, silence!, silenced?, todo, todos, verbose!

Class Method Details

.seed!Object

This seed builds the necessary page structure for Alchemy in your database.

Call this from your db/seeds.rb file with the ‘rake db:seed task’.



12
13
14
15
# File 'lib/alchemy/seeder.rb', line 12

def seed!
  create_default_site
  create_root_page
end