class CreateNotifications < ActiveRecord::Migration[7.0] def change create_table :notifications, id: :uuid do |t| t.references :member, type: :uuid, foreign_key: true t.date :to_be_sent_on, null: false t.string :template, null: false t.string :status, null: false t.timestamp :sent_at t.timestamps end end end