1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2025-01-01 12:58:18 +00:00
mastodon/db/migrate/20240607093446_change_mention_status_id_non_nullable.rb

8 lines
234 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ChangeMentionStatusIdNonNullable < ActiveRecord::Migration[7.1]
def change
add_check_constraint :mentions, 'status_id IS NOT NULL', name: 'mentions_status_id_null', validate: false
end
end