20160106000001_update_chat5.rb 563 B

12345678910111213141516171819202122232425
  1. class UpdateChat5 < ActiveRecord::Migration
  2. def change
  3. Setting.create_if_not_exists(
  4. title: 'Agent idle timeout',
  5. name: 'chat_agent_idle_timeout',
  6. area: 'Chat::Extended',
  7. description: 'Idle timeout in seconds till agent is set offline automatically.',
  8. options: {
  9. form: [
  10. {
  11. display: '',
  12. null: false,
  13. name: 'chat_agent_idle_timeout',
  14. tag: 'input',
  15. },
  16. ],
  17. },
  18. preferences: {},
  19. state: '120',
  20. frontend: true
  21. )
  22. end
  23. end