Gobierto Budgets module - Load debt and population data

Gobierto Budgets module implements a Rake task to load a CSV with data of population and debt.

The format of the CSV is:

yearpopulationdebt
2020134800120000
2121134700100000

Loading CSV data files

Log into the server where Gobierto is hosted (you can use it even in your computer for the development environment) and call this rake task with the csv file path as the only argument inside the current path of your installation (probably /var/www/gobierto/current):

rails gobierto_budgets:data:import_extra_data[domain,csv_path]

The argument domain corresponds to the domain of the site, without the protocol part. For example: presupuestos.muncipio.es.

After loading the file you might need to reset the cache:

# Open a Rails console
bin/rails c

# Reset cache
Rails.cache.clear