demarches-normaliennes/db/migrate/20190607122941_ensure_follow_dates_not_null.rb

9 lines
325 B
Ruby
Raw Normal View History

class EnsureFollowDatesNotNull < ActiveRecord::Migration[5.2]
def change
change_column_null :follows, :demande_seen_at, false
change_column_null :follows, :annotations_privees_seen_at, false
change_column_null :follows, :avis_seen_at, false
change_column_null :follows, :messagerie_seen_at, false
end
end