aboutsummaryrefslogtreecommitdiffstats
path: root/db/seeds.rb
diff options
context:
space:
mode:
authorAlban Peignier2016-09-10 19:38:03 +0200
committerAlban Peignier2016-09-10 19:38:03 +0200
commita57c971b30f9f086860b739f707f4719e1e04161 (patch)
treeec7324b5208ef2fac5961bc21056467c5ca3b70f /db/seeds.rb
parent992468148f7d63d52555dd87fe213b7a9b91ee3d (diff)
downloadchouette-core-a57c971b30f9f086860b739f707f4719e1e04161.tar.bz2
Fixes operator Organisation in seeds. Refs #1616
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 14640e608..956b9562c 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -19,7 +19,9 @@ end
OfferWorkbench.find_or_create_by(name: "Gestion de l'offre", organisation: stif)
-operator = Organisation.find_or_create_by(name: "Transporteur A")
+operator = Organisation.find_or_create_by(code: 'transporteur-a') do |organisation|
+ operator.name = "Transporteur A"
+end
operator.users.find_or_create_by!(username: "transporteur") do |user|
user.email = 'stif-boiv+transporteur@af83.com'