feat: Notification on new messages in conversation (#1204)

fixes: #895
fixes: #1118
fixes: #1075

Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
Sojan Jose
2020-09-10 19:19:15 +05:30
committed by GitHub
parent 3b92c744d6
commit 31c07771e8
36 changed files with 259 additions and 94 deletions

View File

@@ -0,0 +1,5 @@
class RenameUserLastSeen < ActiveRecord::Migration[6.0]
def change
rename_column :conversations, :user_last_seen_at, :contact_last_seen_at
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_08_28_175931) do
ActiveRecord::Schema.define(version: 2020_09_07_094912) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@@ -219,7 +219,7 @@ ActiveRecord::Schema.define(version: 2020_08_28_175931) do
t.datetime "updated_at", null: false
t.bigint "contact_id"
t.integer "display_id", null: false
t.datetime "user_last_seen_at"
t.datetime "contact_last_seen_at"
t.datetime "agent_last_seen_at"
t.boolean "locked", default: false
t.jsonb "additional_attributes"