Add/fix workflow-specific notification settings

* Fix template logic for `notify_on_change` attribute
* Add migration and SQLAlchemy definition for `notify_on_change` and
  `notify_custom_message` attributes