20180306084119_custom_html_email_css_font.rb 615 B

123456789101112131415161718192021
  1. class CustomHtmlEmailCssFont < ActiveRecord::Migration[5.1]
  2. def change
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'HTML Email CSS Font',
  7. name: 'html_email_css_font',
  8. area: 'Core',
  9. description: 'Defines the CSS font information for HTML Emails.',
  10. options: {},
  11. state: "font-family:'Helvetica Neue', Helvetica, Arial, Geneva, sans-serif; font-size: 12px;",
  12. preferences: {
  13. permission: ['admin'],
  14. },
  15. frontend: false
  16. )
  17. end
  18. end