cartodb-4.42/db/migrate/20160802075029_create_user_notifications.rb
2024-04-06 05:25:13 +00:00

9 lines
261 B
Ruby

Sequel.migration do
change do
create_table :user_notifications do
foreign_key :user_id, :users, type: :uuid, null: false, on_delete: :cascade, primary_key: true
String :notifications, null: false, type: 'json', default: '{}'
end
end
end