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.



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

def seed!
  create_default_site
  create_root_page
end