mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
21 lines
715 B
Ruby
21 lines
715 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSmtpAndImapToGroups < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_column :groups, :smtp_server, :string
|
|
add_column :groups, :smtp_port, :integer
|
|
add_column :groups, :smtp_ssl, :boolean
|
|
|
|
add_column :groups, :imap_server, :string
|
|
add_column :groups, :imap_port, :integer
|
|
add_column :groups, :imap_ssl, :boolean
|
|
|
|
add_column :groups, :imap_mailbox_name, :string, default: "", null: false
|
|
add_column :groups, :imap_uid_validity, :integer, default: 0, null: false
|
|
add_column :groups, :imap_last_uid, :integer, default: 0, null: false
|
|
|
|
add_column :groups, :email_username, :string
|
|
add_column :groups, :email_password, :string
|
|
end
|
|
end
|