20240222193403_create_notification_permissions.rb 343 B

123456789101112
  1. # frozen_string_literal: true
  2. class CreateNotificationPermissions < ActiveRecord::Migration[7.1]
  3. def change
  4. create_table :notification_permissions do |t|
  5. t.references :account, null: false, foreign_key: true
  6. t.references :from_account, null: false, foreign_key: { to_table: :accounts }
  7. t.timestamps
  8. end
  9. end
  10. end