We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c66cd commit 468e088Copy full SHA for 468e088
db/seeds.rb
@@ -5,8 +5,17 @@ def self.create_protip_for(user)
5
yield protip = user.protips.build
6
protip.save!
7
end
8
+
9
+ def self.create_network_for(name)
10
+ Network.find_or_create_by_name(name) do |n|
11
+ n.create_slug!
12
+ end
13
14
15
16
+S.create_network_for('Ruby')
17
+S.create_network_for('JavaScript')
18
19
Plan.find_or_create_by_id(1) do |s|
20
s.amount = 0
21
s.interval = 'month'
@@ -152,7 +161,7 @@ def self.create_protip_for(user)
152
161
#Network.rebuild_index
153
162
Opportunity.rebuild_index
154
163
Protip.rebuild_index
155
-
164
156
165
#Team.rebuild_index #TODO: Disabled until switched from mongo
157
166
Team.all.each { |team| team.tire.update_index }
158
167
0 commit comments