20240607094603_change_mention_account_id_non_nullable.rb 237 B

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