demarches-normaliennes/db/migrate/20180308110811_add_defaults_to_champs.rb

7 lines
238 B
Ruby
Raw Normal View History

2018-02-14 11:46:38 +01:00
class AddDefaultsToChamps < ActiveRecord::Migration[5.2]
def change
change_column :champs, :private, :boolean, default: false, null: false
change_column :types_de_champ, :private, :boolean, default: false, null: false
end
end