1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/db/migrate/20240222193403_create_notification_permissions.rb

13 lines
343 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class CreateNotificationPermissions < ActiveRecord::Migration[7.1]
def change
create_table :notification_permissions do |t|
t.references :account, null: false, foreign_key: true
t.references :from_account, null: false, foreign_key: { to_table: :accounts }
t.timestamps
end
end
end