summaryrefslogtreecommitdiff
path: root/db/seeds.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 2008d89..00a0566 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -24,3 +24,8 @@ load_data_file("data/items.yml").map do |gid, hash|
item.whatnot = hash[:whatnot]
item.save
end
+
+load_data_file("data/activities.yml").map do |gid, hash|
+ activity = Activity.find_or_create_by(gid: gid)
+ activity.update(hash)
+end