aboutsummaryrefslogtreecommitdiffstats
path: root/db/seeds.rb
diff options
context:
space:
mode:
authorXinhui2016-08-05 15:44:58 +0200
committerXinhui2016-08-05 15:57:48 +0200
commit0a762d0f7d8462f44cd4c13b26291261cd5d1424 (patch)
treecaebb3499ececb8f045b1d2432d003d5a288cd40 /db/seeds.rb
parent9321b1e48945dc4a4e2c5ab981310d97e6a129da (diff)
downloadchouette-core-0a762d0f7d8462f44cd4c13b26291261cd5d1424.tar.bz2
Remove skip_confirmation
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 11ca7e9c1..77e6afc7a 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -7,13 +7,14 @@
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
# Mayor.create(:name => 'Emanuel', :city => cities.first)
-stif = Organisation.find_or_create_by(name: "STIF", code: "STIF")
+stif = Organisation.find_or_create_by!(name: "STIF") do |org|
+ org.code = 'STIF'
+end
stif.users.find_or_create_by!(username: "admin") do |user|
user.email = 'stif-boiv@af83.com'
user.password = "secret"
user.name = "STIF Administrateur"
- user.skip_confirmation!
end
OfferWorkbench.find_or_create_by(name: "Gestion de l'offre", organisation: stif)
@@ -24,7 +25,6 @@ operator.users.find_or_create_by!(username: "transporteur") do |user|
user.email = 'stif-boiv+transporteur@af83.com'
user.password = "secret"
user.name = "Martin Lejeune"
- user.skip_confirmation!
end
stop_area_referential = StopAreaReferential.find_or_create_by(name: "Reflex") do |referential|