Skip to content
Browse files

Updating gem and seeds

  • Loading branch information...
1 parent 74b72d0 commit d8e550e2fc3fa44742b6ded76a9125e2576688d2 @benhutton committed Feb 1, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −1 Gemfile.lock
  2. +7 −0 db/seeds.rb
View
2 Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: git@github.com:benhutton/resource_library.git
- revision: 401779c70a31c01edebf56023bcc9af73d4282b0
+ revision: 687211ace6481e78f3383d0ddb2c85b5f9bafa26
specs:
resource_library (0.0.1)
bson_ext (~> 1.5)
View
7 db/seeds.rb
@@ -35,8 +35,15 @@ module ResourceLibrary
# Create some categories
sermons = Category.create(title: "Sermons", default_grouping_type_id: topic.id)
+ sermons.grouping_types << topic
+ sermons.grouping_types << author
articles = Category.create(title: "Articles", default_grouping_type_id: topic.id)
+ articles.grouping_types << topic
+ articles.grouping_types << author
seminary_training = Category.create(title: "Seminary Training", default_grouping_type_id: course.id)
+ seminary_training.grouping_types << topic
+ seminary_training.grouping_types << author
+ seminary_training.grouping_types << course
puts "#{Category.count} categories"
puts "#{GroupingType.count} grouping types"

0 comments on commit d8e550e

Please sign in to comment.
Something went wrong with that request. Please try again.