diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-06 16:12:48 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-06 16:21:40 +0200 |
commit | 341293217aefc15a10fc81dfc1d7850f89acfb1f (patch) | |
tree | 074ad652d1d5d74d145677083cb0e365677fe049 /db | |
parent | 88d6de26a0e55430414b05e9d4d08a7a68102684 (diff) | |
download | incommon-map-341293217aefc15a10fc81dfc1d7850f89acfb1f.tar.gz |
Populate database with Agents: rails db:seed
Diffstat (limited to 'db')
-rw-r--r-- | db/seeds.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 1beea2a..3ee3a11 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,3 +5,14 @@ # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first) + +# Create a bunch of Agents +{ + 'Dewey': '6347f151-6782-437c-8bae-55730672a76f', + 'PS': '3211da93-69fb-4d9b-825c-6ab51784fd18', + 'incommon': '262ea4f5-186d-483b-8414-025f23b65eb4', + 'ConcertES': '066e5968-03c3-4c15-bd5b-f73a10b5e9f1' +}.each do |agent_name, uuid| + Agent.find_or_create_by(name: agent_name, uuid: uuid) +end + |