Skip to content

Commit

Permalink
add seeds for digital service accounts and products
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Sep 14, 2023
1 parent c72f8fd commit 9cfc892
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -830,3 +830,19 @@ def random_words
comments: random_words,
})
end

for i in (1..20) do
DigitalServiceAccount.create!({
organization_list: [@gsa.id],
name: "Social Media Account #{i}",
account: DigitalServiceAccount.list.sample,
aasm_state: DigitalServiceAccount.aasm.states.map(&:name).sample,
service_url: "https://example.lvh.me/account#{i}"
})

DigitalProduct.create({
organization_list: [@gsa.id],
name: "Digital Product #{i}",
aasm_state: DigitalProduct.aasm.states.map(&:name).sample
})
end

0 comments on commit 9cfc892

Please sign in to comment.