iachat/db/migrate
Pranav 0b4028b95d
feat: Add support for the references in FAQs (#10699)
Currently, it’s unclear whether an FAQ item is generated from a
document, derived from a conversation, or added manually.

This PR resolves the issue by providing visibility into the source of
each FAQ. Users can now see whether an FAQ was generated or manually
added and, if applicable, by whom.

- Move the document_id to a polymorphic relation (documentable).
- Updated the APIs to accommodate the change.
- Update the service to add corresponding references. 
- Updated the specs.

<img width="1007" alt="Screenshot 2025-01-15 at 11 27 56 PM"
src="https://github.com/user-attachments/assets/7d58f798-19c0-4407-b3e2-748a919d14af"
/>

---------

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
2025-01-16 15:27:30 +05:30
..
20230426130150_init_schema.rb
20230503101201_create_sla_policies.rb
20230509101256_add_index_to_messages_created_at.rb
20230510060828_add_index_to_messages_for_reportings.rb
20230510113208_set_default_empty_string_for_contact_name.rb
20230515051424_update_article_image_keys.rb
20230523104139_add_partial_index_for_resolved_contacts.rb
20230525085402_add_custom_sender_name_toggle.rb
20230608040738_add_processed_message_content_to_messages.rb
20230612103936_add_index_to_reporting_events.rb
20230614044633_add_sender_name_to_in.rb
20230620132319_add_sla_policy_to_conversations.rb
20230620212340_add_waiting_since_to_conversations.rb
20230706090122_sentiment_column_to_messages.rb
20230714054138_add_api_key_sid_to_twilio_sms.rb
20230727065605_add_partial_index_contact_account_id.rb
20230801180936_update_default_status_in_hooks.rb
20230905060223_add_regex_to_custom_attribute_definition.rb
20231011041615_ensure_message_private_not_null.rb
20231013072802_add_icon_to_categories.rb
20231114111614_change_feature_flags_to_bigint_in_accounts.rb
20231129091149_add_snoozed_until_to_notifications.rb
20231201014644_remove_notifications_with_message_primary_actor.rb
20231211010807_add_cached_labels_list.rb
20231219000743_re_run_cache_label_job.rb
20231219073832_add_last_activity_at_to_notifications.rb
20231223033019_refactor_sla_policy_columns.rb
20231223040257_create_applied_slas.rb
20240124054340_add_contact_type_to_contacts.rb
20240124084032_add_middle_name_and_last_name_to_contacts.rb
20240129080827_add_location_and_country_code_to_contacts.rb
20240131040316_remove_imap_inbox_syned_at_from_channel_email.rb
20240207103014_change_applied_sla_sla_status_to_enum.rb
20240213131252_add_blocked_to_contacts.rb
20240215065844_add_meta_to_notifications.rb
20240216055809_add_unique_index_to_applied_slas.rb
20240306201954_change_identifier_type_in_notifications_subscriptions.rb
20240319062553_create_sla_events.rb
20240322071629_convert_cached_label_list_to_text.rb
20240415210313_add_channel_web_widget_to_portals.rb
20240515201632_index_improvements_conversations_contacts.rb chore: Improved indexes for Conversations & Contacts [CW-3300] (#9475) 2024-05-15 16:10:39 -07:00
20240516003531_add_index_for_message_type_account_date.rb chore: Add indexes to improve reporting performance (#9478) 2024-05-15 21:21:15 -07:00
20240726220747_add_custom_roles.rb feat: Add APIs to manage custom roles in Chatwoot (#9995) 2024-08-23 17:18:28 +05:30
20240923215335_add_locale_to_article.rb fix: Include uncategorized articles in the all article section to allow edit/delete (#10153) 2024-09-23 23:39:03 -07:00
20241217041352_fix_old_audio_alert_data.rb fix: Update old data to fix login issues (#10594) 2024-12-17 17:17:11 +05:30
20250104200055_create_captain_tables.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250104210328_remove_robin_tables.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250105001414_add_status_to_captain_documents.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250105005821_remove_not_null_from_captain_documents.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250107030743_add_config_to_captain_assistant.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250108031358_create_captain_inbox.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250108211541_remove_index_from_captain_assistants.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
20250116000103_add_status_to_captain_assistant_responses.rb feat: Add a review step for FAQs generated from conversations before using it (#10693) 2025-01-16 09:54:34 +05:30
20250116061033_convert_document_to_polymorphic_association.rb feat: Add support for the references in FAQs (#10699) 2025-01-16 15:27:30 +05:30