Add default to user notifications

pull/9220/head
Javier Torres 8 years ago
parent 0d130d1c2b
commit a936209fb3

@ -2,7 +2,7 @@ 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'
String :notifications, null: false, type: 'json', default: '{}'
end
end
end

Loading…
Cancel
Save