aboutsummaryrefslogtreecommitdiffstats
path: root/db/seeds.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 1b8135958..8acfc7e01 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -9,6 +9,12 @@
stif = Organisation.find_or_create_by(name: "STIF")
+stif.users.find_or_create_by!(username: "admin") do |user|
+ user.email = 'stif-boiv@af83.com'
+ user.name = "STIF Administrateur"
+ user.skip_confirmation!
+end
+
stop_area_referential = StopAreaReferential.find_or_create_by(name: "Reflex") do |referential|
referential.add_member stif, owner: true
end
@@ -25,4 +31,9 @@ end
line_referential.lines.find_or_create_by name: "Test #{n}"
end
-OfferWorkbench.find_or_create_by(name: "Gestion de l'offre", organisation: stif) \ No newline at end of file
+OfferWorkbench.find_or_create_by(name: "Gestion de l'offre", organisation: stif)
+
+stif.referentials.find_or_create_by(slug: "test", name: "Test") do |referential|
+ referential.line_referential = line_referential
+ referential.stop_area_referential = stop_area_referential
+end