20200413160113_issue_2990_delete_timeframe.rb 552 B

12345678910111213141516
  1. class Issue2990DeleteTimeframe < ActiveRecord::Migration[5.2]
  2. def change
  3. Setting.create_if_not_exists(
  4. title: 'Define timeframe where a own created note can get deleted.',
  5. name: 'ui_ticket_zoom_article_delete_timeframe',
  6. area: 'UI::TicketZoomArticle',
  7. description: "Set timeframe in seconds. If it's set to 0 you can delete notes without time limits",
  8. options: {},
  9. state: 600,
  10. preferences: {
  11. permission: ['admin.ui']
  12. },
  13. frontend: true
  14. )
  15. end
  16. end