cartodb/db/migrate/20160802075029_create_user_notifications.rb

9 lines
261 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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