Files
fizzy/db/migrate/20250828084732_create_notification_settings.rb
T
2025-08-28 11:20:28 +02:00

13 lines
349 B
Ruby

class CreateNotificationSettings < ActiveRecord::Migration[8.1]
def change
create_table :notification_settings do |t|
t.references :user, null: false, foreign_key: true, index: true
t.integer :bundle_email_frequency, default: 0, null: false
t.timestamps
t.index %i[ user_id bundle_email_frequency ]
end
end
end