diff options
| author | Luc Donnet | 2018-01-22 14:32:50 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2018-01-22 14:33:54 +0100 | 
| commit | 5ecadfdead964381304fcf56a2564e2045988ef7 (patch) | |
| tree | 39bf21cd3f41bd431d065a53fbad36c650b7f9dd /db | |
| parent | 761ad42ea0ec53a633cbb30d65acf041231e92ec (diff) | |
| download | chouette-core-5ecadfdead964381304fcf56a2564e2045988ef7.tar.bz2 | |
Comment user and operator A creation in stif seed
Diffstat (limited to 'db')
| -rw-r--r-- | db/seeds/stif.seeds.rb | 34 | 
1 files changed, 17 insertions, 17 deletions
| diff --git a/db/seeds/stif.seeds.rb b/db/seeds/stif.seeds.rb index c87bb7970..f898021ce 100644 --- a/db/seeds/stif.seeds.rb +++ b/db/seeds/stif.seeds.rb @@ -16,30 +16,30 @@ Workbench.update_all workgroup_id: workgroup  stif = Organisation.find_or_create_by!(code: "STIF") do |org|    org.name = 'STIF'  end -operator = Organisation.find_or_create_by!(code: 'transporteur-a') do |organisation| -  organisation.name = "Transporteur A" -end +# operator = Organisation.find_or_create_by!(code: 'transporteur-a') do |organisation| +#   organisation.name = "Transporteur A" +# end  # Member  line_referential.add_member stif, owner: true -line_referential.add_member operator +# line_referential.add_member operator  stop_area_referential.add_member stif, owner: true -stop_area_referential.add_member operator +# stop_area_referential.add_member operator  # Users -stif.users.find_or_create_by!(username: "admin") do |user| -  user.email = 'stif-boiv@af83.com' -  user.password = "secret" -  user.name = "STIF Administrateur" -end - -operator.users.find_or_create_by!(username: "transporteur") do |user| -  user.email = 'stif-boiv+transporteur@af83.com' -  user.password = "secret" -  user.name = "Martin Lejeune" -end +# stif.users.find_or_create_by!(username: "admin") do |user| +#   user.email = 'stif-boiv@af83.com' +#   user.password = "secret" +#   user.name = "STIF Administrateur" +# end +# +# operator.users.find_or_create_by!(username: "transporteur") do |user| +#   user.email = 'stif-boiv+transporteur@af83.com' +#   user.password = "secret" +#   user.name = "Martin Lejeune" +# end  # Include all Lines in organisation functional_scope  stif.update sso_attributes: { functional_scope: line_referential.lines.pluck(:objectid) } -operator.update sso_attributes: { functional_scope: line_referential.lines.limit(3).pluck(:objectid) } +#operator.update sso_attributes: { functional_scope: line_referential.lines.limit(3).pluck(:objectid) } | 
