demarches-normaliennes/db/migrate/20220622181047_add_opendata_to_procedures.rb
2024-08-22 09:26:48 +02:00

12 lines
273 B
Ruby

# frozen_string_literal: true
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