houdini/db/migrate/20210119195318_set_anonymous_to_default_to_false.rb
2021-01-20 13:01:01 -06:00

10 lines
399 B
Ruby

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
class SetAnonymousToDefaultToFalse < ActiveRecord::Migration[6.1]
def change
change_column_default :supporters, :anonymous, from: nil, to: false
change_column_null :supporters, :anonymous, false, false
end
end