mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
7 lines
237 B
Ruby
7 lines
237 B
Ruby
# 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
|