diff --git a/app/models/chat_conversation_account.rb b/app/models/chat_conversation_account.rb index b2ac7bda..dad54cac 100644 --- a/app/models/chat_conversation_account.rb +++ b/app/models/chat_conversation_account.rb @@ -12,7 +12,7 @@ # is_approved :boolean default(FALSE), not null # created_at :datetime not null # updated_at :datetime not null -# unread_count :bigint(8) default(0) +# unread_count :bigint(8) default(0), not null # chat_message_expiration_policy :string # is_muted :boolean default(FALSE), not null # diff --git a/db/schema.rb b/db/schema.rb index 6bb8bf98..9c022764 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -221,7 +221,7 @@ ActiveRecord::Schema.define(version: 2021_01_03_150000) do t.boolean "is_approved", default: false, null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.bigint "unread_count", default: 0 + t.bigint "unread_count", default: 0, null: false t.string "chat_message_expiration_policy" t.boolean "is_muted", default: false, null: false t.index ["account_id"], name: "index_chat_conversation_accounts_on_account_id"