Skip to content

Commit cf1d52e

Browse files
committed
Fix seeds.rb
Regression from coderwall#279
1 parent fe3b3e7 commit cf1d52e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

db/seeds.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ def self.create_network_for(name)
1313
end
1414
end
1515

16+
puts '---- NETWORKS ----'
17+
1618
S.create_network_for('Ruby')
1719
S.create_network_for('JavaScript')
1820

21+
puts '---- PLANS ----'
22+
1923
Plan.find_or_create_by_id(1) do |s|
2024
s.amount = 0
2125
s.interval = 'month'
@@ -116,19 +120,19 @@ def self.create_network_for(name)
116120
S.create_protip_for(bryce) do |p|
117121
p.title = 'Suspendisse potenti'
118122
p.body = '<p>Suspendisse potenti. Nunc iaculis risus vel &#8216;Orci Ornare&#8217; dignissim sed vitae nulla. Nulla lobortis tempus commodo. Suspendisse <em>potenti</em>. Duis sagittis, est sit amet gravida tristique, purus lectus venenatis urna, id &#8216;molestie&#8217; magna risus ut nunc. Donec tempus tempus tellus, ac <abbr title="Hypertext Markup Language">HTML</abbr> lacinia turpis mattis ac. Fusce ac sodales magna. Fusce ac sodales <abbr title="Cascading Style Sheets">CSS</abbr> magna.</p>'
119-
p.topics = %w{suspendisse potenti}
123+
p.topic_list = %w{suspendisse potenti}
120124
end
121125

122126
S.create_protip_for(bryce) do |p|
123127
p.title = 'Vinyl Blue Bottle four loko wayfarers'
124128
p.body = 'Austin try-hard artisan, bicycle rights salvia squid dreamcatcher hoodie before they sold out Carles scenester ennui. Organic mumblecore Tumblr, gentrify retro 90\'s fanny pack flexitarian raw denim roof party cornhole. Hella direct trade mixtape +1 cliche, slow-carb Neutra craft beer tousled fap DIY.'
125-
p.topics = %w{etsy hipster}
129+
p.topic_list = %w{etsy hipster}
126130
end
127131

128132
S.create_protip_for(lisa) do |p|
129133
p.title = 'Cras molestie risus a enim convallis vitae luctus libero lacinia'
130134
p.body = '<p>Cras molestie risus a enim convallis vitae luctus libero lacinia. Maecenas sit <q cite="http://www.heydonworks.com">amet tellus nec mi gravida posuere</q> non pretium magna. Nulla vel magna sit amet dui <a href="#">lobortis</a> commodo vitae vel nulla. </p>'
131-
p.topics = %w{cras molestie}
135+
p.topic_list = %w{cras molestie}
132136
end
133137

134138
puts '---- TEAMS ----'

0 commit comments

Comments
 (0)