Skip to content

Commit

Permalink
Merge pull request #527 from quintel/smallingerland-ren
Browse files Browse the repository at this point in the history
Smallingerland areable land update
  • Loading branch information
Charlottevm authored Aug 26, 2024
2 parents 252585a + ea56497 commit 3566b12
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class NetherlandsMunicipalities2019UpdateStep5 < ActiveRecord::Migration[5.0]
class Smallingerland2019PotentialsWindSolar < ActiveRecord::Migration[5.0]
def self.up
directory = Rails.root.join('db/migrate/20240329164854_netherlands_municipalities_2019_update_step_5')
directory = Rails.root.join('db/migrate/20240507094837_smallingerland_2019_potentials_wind_solar')
data_path = directory.join('data.csv')
commits_path = directory.join('commits.yml')
datasets = []
Expand All @@ -13,7 +13,7 @@ def self.up
# # ...
# end
#
CSVImporter.run(data_path, commits_path, create_missing_datasets: true) do |row, runner|
CSVImporter.run(data_path, commits_path) do |row, runner|
print "Updating #{row['geo_id']}... "
commits = runner.call

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- fields:
- :all
message:
Aangeleverd door gemeente Smallingerland
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
geo_id,areable_land,buildings_roof_surface_available_for_pv,residences_roof_surface_available_for_pv
GM0090,88.75,3.00,3.00

0 comments on commit 3566b12

Please sign in to comment.