Sha256: 31fdaad5b846c7302f58c2321e87fcae46ee92b104192ad5f0afd5140287994e
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
# Namespace Guts tasks namespace :guts do # Namespace Guts DB tasks namespace :db do desc "Initial setup of Guts data" task :seed => :environment do type = Guts::Type.new type.title = "Page" type.slug = "page" type.save! type = Guts::Type.new type.title = "Post" type.slug = "post" type.save! category = Guts::Category.new category.title = "Uncategorized" catrgory.slug = "uncategorized" category.save! group = Guts::Group.new group.title = "Admins" group.slug = "admins" group.save! puts "[Guts] Database seeded" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guts-1.0.3 | lib/tasks/guts_tasks.rake |