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

13 lines
273 B
Ruby
Raw Normal View History

# 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