add opendata boolean attribute for procedure

when opendata is set to true, it means that descriptive's procedure can be
public
when opendata is set to false, ti means that descriptive's can not be
public, because the procedure is only available for public servants, not
citizens.
This commit is contained in:
Christophe Robillard 2022-06-22 15:32:35 +02:00
parent b35aeb778a
commit ea59f5f260
5 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,10 @@
class BackfillAddOpendataToProcedures < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
Procedure.in_batches do |relation|
relation.update_all opendata: true
sleep(0.01)
end
end
end