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 7adf0fc..ca72f1e 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -15,6 +15,11 @@ load_data_file("data/chat_rooms.yml").map do |gid, hash|
chat_room.update(hash)
end
+load_data_file("data/titles.yml").map do |gid, hash|
+ title = Title.find_or_create_by(gid: gid)
+ title.update(hash)
+end
+
load_data_file("data/skills.yml").map do |gid, hash|
skill = Skill.find_or_create_by(gid: gid)
skill.update(hash)