demarches-normaliennes/db/migrate/20220622181047_add_opendata_to_procedures.rb

11 lines
242 B
Ruby
Raw Normal View History

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