Fix mentions.account_id
and mentions.status_id
not having NOT NULL
database constraints (#30591)
This commit is contained in:
parent
37e4d96b70
commit
9e9613b286
6 changed files with 47 additions and 5 deletions
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ChangeMentionAccountIdNonNullable < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_check_constraint :mentions, 'account_id IS NOT NULL', name: 'mentions_account_id_null', validate: false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue