demarches-normaliennes/db/migrate/20220622181047_add_opendata_to_procedures.rb
Christophe Robillard ea59f5f260 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.
2022-06-23 14:11:09 +02:00

10 lines
242 B
Ruby

class AddOpendataToProcedures < ActiveRecord::Migration[6.1]
def up
add_column :procedures, :opendata, :boolean
change_column_default :procedures, :opendata, true
end
def down
remove_column :procedures, :opendata
end
end