Skip to content

Commit

Permalink
Adapt to structured addresses (hitobito/hitobito#2226)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaierhofer committed Mar 7, 2025
1 parent 96bdeda commit d642034
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions db/seeds/development/0_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
states = Group::State.seed(:name, :parent_id,
{ name: 'Kanton Bern',
short_name: 'BE',
address: 'Klostergasse 3',
street: 'Klostergasse',
housenummber: 3,
zip_code: '3333',
town: 'Bern',
country: 'Svizzera',
Expand All @@ -39,7 +40,8 @@

{ name: 'Kanton Zürich',
short_name: 'ZH',
address: 'Tellgasse 3',
street: 'Tellgasse',
housenummber: 3,
zip_code: '8888',
town: 'Zürich',
country: 'Svizzera',
Expand All @@ -48,7 +50,8 @@

{ name: 'Kanton Nordost',
short_name: 'NO',
address: 'Nordostgasse 3',
street: 'Nordostgasse',
housenummber: 3,
zip_code: '9000',
town: 'Nordosthausen',
country: 'Svizzera',
Expand All @@ -57,7 +60,8 @@

{ name: 'Kanton Luzern',
short_name: 'LU',
address: 'Kramgasse 3',
street: 'Kramgasse',
housenummber: 3,
zip_code: '4000',
town: 'Luzern',
country: 'Svizzera',
Expand All @@ -66,21 +70,23 @@

{ name: 'Kanton Schaffhausen',
short_name: 'SH',
address: 'Hauptstrasse 3',
street: 'Hauptstrasse',
housenummber: 3,
zip_code: '9500',
town: 'Stein',
country: 'Svizzera',
email: '[email protected]',
parent_id: ch.id },

name: 'Kanton Unterwalden',
short_name: 'UW',
address: 'Hohle Gasse 3',
zip_code: '4600',
town: 'Stans',
country: 'Schweiz',
email: '[email protected]',
parent_id: ch.id)
name: 'Kanton Unterwalden',
short_name: 'UW',
street: 'Hohle Gasse',
housenummber: 3,
zip_code: '4600',
town: 'Stans',
country: 'Schweiz',
email: '[email protected]',
parent_id: ch.id)

states.each do |s|
seeder.seed_social_accounts(s)
Expand Down

0 comments on commit d642034

Please sign in to comment.