README.md in notify_user-0.1.4 vs README.md in notify_user-0.3.1

- old
+ new

@@ -139,9 +139,25 @@ <p style="text-align: center;"> <%= unsubscribe_link(@notification, "Unsubscribe") %> </p> <% end %> ``` +##Unsubscribing/Subscribing to a specific group_id or resource +Unsubscribing from a specific `group_id` eg. specific resource. +`put /notify_user/notifications/unsubscribe_from_object.json` +expects +``` +subscription: {type: "NotificationType", group_id: 1, unsubscribe: true|false} +``` +returns +`response_code 201` + +##Upgrade v0.1.4 to v0.2 +Run aggregate_interval generator which generates the migrations to add a sent_time field to notifications +``` +rails generate notify_user:aggr_interval +rake db:migrate +``` ##Upgrading to JSON params data type Run json_update generator which generates the migrations to change the params datatype to json as well as convert the current data to json ``` rails generate notify_user:json_update