saucy/db/migrate/20220623135702_create_notifications.rb

15 lines
360 B
Ruby
Raw Permalink Normal View History

2022-06-25 12:48:46 +00:00
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