ea59f5f260
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.
10 lines
242 B
Ruby
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
|