# == Schema Information
#
# Table name: template_message_settings
#
#  id                    :integer          not null, primary key
#  type                  :string(255)
#  name                  :string(255)
#  key                   :string(255)
#  openning              :boolean
#  notification_disabled :boolean
#  email_disabled        :boolean
#  created_at            :datetime         not null
#  updated_at            :datetime         not null
#

#我管理的
class TemplateMessageSetting::Manage < TemplateMessageSetting 

  def self.build_init_data
    self.find_or_create_by(name: "有新的易修", key: "ProjectIssue")
    self.find_or_create_by(name: "有新的合并请求", key: "ProjectPullRequest")
    self.find_or_create_by(name: "有成员变动", key: "ProjectMember")
    self.find_or_create_by(name: "设置更改", key: "ProjectSettingChanged")
  end
end
