feat: Allow custom email address for inbox (#1336)

This commit is contained in:
Pranav Raj S
2020-10-11 23:24:11 +05:30
committed by GitHub
parent 58c0792920
commit 2c324d9421
5 changed files with 37 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
class AddEmailAddressToInbox < ActiveRecord::Migration[6.0]
def up
add_column :inboxes, :email_address, :string
end
def down
remove_column(:inboxes, :email_address)
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_09_27_135222) do
ActiveRecord::Schema.define(version: 2020_10_11_152227) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@@ -277,6 +277,7 @@ ActiveRecord::Schema.define(version: 2020_09_27_135222) do
t.boolean "enable_auto_assignment", default: true
t.boolean "greeting_enabled", default: false
t.string "greeting_message"
t.string "email_address"
t.index ["account_id"], name: "index_inboxes_on_account_id"
end
@@ -449,11 +450,9 @@ ActiveRecord::Schema.define(version: 2020_09_27_135222) do
t.index ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
t.index ["taggable_id", "taggable_type", "tagger_id", "context"], name: "taggings_idy"
t.index ["taggable_id"], name: "index_taggings_on_taggable_id"
t.index ["taggable_type", "taggable_id"], name: "index_taggings_on_taggable_type_and_taggable_id"
t.index ["taggable_type"], name: "index_taggings_on_taggable_type"
t.index ["tagger_id", "tagger_type"], name: "index_taggings_on_tagger_id_and_tagger_type"
t.index ["tagger_id"], name: "index_taggings_on_tagger_id"
t.index ["tagger_type", "tagger_id"], name: "index_taggings_on_tagger_type_and_tagger_id"
end
create_table "tags", id: :serial, force: :cascade do |t|