20240607093446_change_mention_status_id_non_nullable.rb 234 B

1234567
  1. # frozen_string_literal: true
  2. class ChangeMentionStatusIdNonNullable < ActiveRecord::Migration[7.1]
  3. def change
  4. add_check_constraint :mentions, 'status_id IS NOT NULL', name: 'mentions_status_id_null', validate: false
  5. end
  6. end