Chatwoot/db/migrate
Sony Mathew 96efc44b82
Chore: Feature lock email settings in UI (#1065)
* Chore: Feature lock email settings in UI

The email settings under account settings needed to be
feature locked in a way different from teh current way for it
to be enabled for accounts in a self hosted scenario.

Some refactorings were also done along with this change.

1. There was a feature flag defined in code in account model called
domain_emails_enabled was used to check if the inbound emails was
enabled for the account. But there was already a feature flag called
"inbound_emails" defined in features.yml. So changed to use this to
check if inbound emails are enabled for an account.
2. Renamed and re-purposed existing `domain_emails_enabled` to
`custom_email_domain_enabled` to use for feature toggling the UI
for email settings.
3. To enable & disable multiple features using the featurable concern
we were passing an array of values. Changed this to accept a comma
separated set of values.

* Chore: Feature lock email settings in UI

Fixed the specs for accounts controller & removed
unneccessary code from Account seetings component in UI

* Chore: Convert newlines to <br>s

Removed the layout used while sending replies in
conversation continuity.

Converted the newlines in the messages to <br/> tags
for the correct HTML rendering.

* Chore: Bug fix in reply email domain

Renamed the function custom_email_domain_enabled  to
inbound_email_enabled.

Fixed bug on setting reply emails's domain.
2020-07-19 23:08:07 +05:30
..
20161022055031_create_accounts.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161022060602_create_inboxes.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161022061641_create_contacts.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161022062829_create_conversations.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161022072124_create_messages.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161022073137_add_sender_to_conversation.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161022080042_create_inbox_members.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161025063304_dropchannels.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161025063510_addchanneltype.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161025064031_create_facebook_pages.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161025070152_removechannelsfrommodels.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161025070645_remchannel.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161029151508_change_type_to_message_type.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161110102609_removeinboxid.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161113074313_change_integer_limit_of_sender_id.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161114101802_create_telegram_bots.rb Initial Commit 2019-08-14 15:18:44 +05:30
20161123131628_devise_token_auth_create_users.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170124104836_change_contact_to_bigint.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170131132031_addprivatemessages.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170207092002_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
20170207092003_add_missing_unique_indices.acts_as_taggable_on_engine.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
20170207092004_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
20170207092005_add_missing_taggable_index.acts_as_taggable_on_engine.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
20170207092006_change_collation_for_tag_names.acts_as_taggable_on_engine.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170207092007_add_missing_indexes.acts_as_taggable_on_engine.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
20170211092121_addallnametousers.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170211092540_notnullableusers.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170301135937_add_channel_to_user.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170329132640_create_canned_responses.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170330152347_add_user_id_to_message.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170402124536_add_role_to_user.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170403095203_contactadder.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170403140816_attachments_table.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170404095857_add_index_on_fb_page.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170406091955_add_display_id_to_conversations.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170406092426_add_display_id.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170406095417_create_trigger_conversations_insert.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170406100716_add_unique_display_id.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170406104018_add_default_status_conv.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170406134310_add_status_to_message.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170406134632_add_fb_id_to_message.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170408123445_add_last_seen_at_to_conversation.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170410101932_change_last_seen_at_to_date_time.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170424171708_create_subscriptions.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170426083945_create_attachments.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170426102045_add_fallback_title_to_attachments.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170426125410_last_seen_at_to_user_last_seen_at.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170426130050_add_agent_last_seen_at_to_conversation.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170503104957_add_lock_to_conversation.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170503162643_create_extension_for_file.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
20170505164157_add_state_to_subscription.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170511134418_latlong.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170513085726_add_payment_source_added_to_subscription.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170519085519_add_pic_to_inbox.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170519091539_add_avatar_to_fb.rb Initial Commit 2019-08-14 15:18:44 +05:30
20170525104650_create_round_robin.rb Chore: dup module name RoundRobin (#1036) 2020-07-14 20:16:03 +05:30
20171014112346_create_channel_widgets.rb Initial Commit 2019-08-14 15:18:44 +05:30
20171014113353_add_chat_channel_to_contact.rb Initial Commit 2019-08-14 15:18:44 +05:30
20190819005836_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
20190819010457_create_channels.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191014051743_add_invited_by_to_user.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191016211109_rename_channel_attribute_name_in_models.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191020085608_rename_old_tables.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191020173522_rename_sender_id_to_contact_in_conversation.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191024062958_add_website_token_to_web_widget.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191027054756_create_contact_inboxes.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191116073924_add_additional_attributes_to_conversation.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191124091232_add_widget_color_to_web_widget.rb Fix breaking migrations, revert migrations to 6.0 (#314) 2019-11-27 12:42:00 +05:30
20191126185833_update_user_invite_foreign_key.rb [BugFix] Fix Users not deletable because of foreign key reference (#300) 2019-11-27 09:01:39 +05:30
20191130164019_add_template_type_to_messages.rb [Feature] Email collect message hooks (#331) 2020-01-09 13:06:40 +05:30
20191202173004_add_not_null_constraint_to_account_name.rb Add Account Model specs (#341) 2019-12-03 10:09:45 +05:30
20191204192301_add_index_unique_channel_facebook_page_id_account_id.rb Add specs for model facebook_page (#346) 2019-12-05 13:20:04 +05:30
20191209195420_create_active_storage_tables.active_storage.rb Chore: Scope URLs with account_id (#601) 2020-03-09 23:27:10 +05:30
20191209202758_remove_image_from_user.rb Feature: Profile API [#238] (#354) 2019-12-10 10:29:35 +05:30
20191227191631_remove_carrier_wave_attributes.rb Chore: Switch from Carrierwave to ActiveStorage (#393) 2020-01-07 22:59:17 +05:30
20200107164449_add_contact_inbox_to_conversation.rb [Feature] Email collect message hooks (#331) 2020-01-09 13:06:40 +05:30
20200121190900_add_notification_settings.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200121190901_create_account_users.rb Chore: Enable Users to create multiple accounts (#440) 2020-03-07 12:18:16 +05:30
20200121220431_add_uniqueness_constraint_to_account_users.rb Chore: Enable Users to create multiple accounts (#440) 2020-03-07 12:18:16 +05:30
20200124190208_create_channel_twitter_profiles.rb Feature: Twitter DM Integration (#451) 2020-02-03 00:54:00 +05:45
20200206180408_add_contact_to_message.rb Feature: Create conversations from Tweets (#470) 2020-02-09 15:47:48 +05:30
20200206180927_rename_fb_id_to_source_id.rb Feature: Create conversations from Tweets (#470) 2020-02-09 15:47:48 +05:30
20200206182948_add_additional_attributes_to_contact.rb Feature: Create conversations from Tweets (#470) 2020-02-09 15:47:48 +05:30
20200213054733_create_webhooks.rb Feature: Webhooks (#489) 2020-02-14 23:19:17 +05:30
20200217192734_add_enable_auto_assignment_to_inboxes.rb Feature: Add ability to disable auto assignment of conversations (#513) 2020-02-19 14:40:03 +05:30
20200222143100_create_agent_bots.rb Feature: Introduce bots (#545) 2020-03-06 01:43:12 +05:30
20200222143259_create_agent_bot_inboxes.rb Feature: Introduce bots (#545) 2020-03-06 01:43:12 +05:30
20200225160650_rename_urls_to_url.rb Chore: Scope URLs with account_id (#601) 2020-03-09 23:27:10 +05:30
20200225162150_add_type_to_webhook.rb Chore: Scope URLs with account_id (#601) 2020-03-09 23:27:10 +05:30
20200309170810_create_access_tokens.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
20200309213132_add_account_id_to_agent_bot_inboxes.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
20200310062527_create_events.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200310070540_add_index_to_event.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200311083854_add_index_to_message.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
20200325210612_add_locale_to_account.rb Feature: API for updating account settings (#645) 2020-03-29 12:16:31 +05:30
20200330071706_create_channel_twilio_sms.rb Feature: Twilio SMS Channel (#658) 2020-04-05 22:11:27 +05:30
20200330115622_create_action_mailbox_tables.action_mailbox.rb Feature: Conversation Continuity with Email (#770) 2020-04-30 20:20:26 +05:30
20200331095710_add_identifier_to_contact.rb Feature: Website SDK (#653) 2020-04-03 13:04:58 +05:30
20200404092329_add_conversation_uuid.rb Feature: Conversation Continuity with Email (#770) 2020-04-30 20:20:26 +05:30
20200404135009_add_unique_validation_index.rb Feature: Twilio SMS Channel (#658) 2020-04-05 22:11:27 +05:30
20200410145519_devise_create_super_admins.rb Feature: Introduce Super Admins (#705) 2020-05-11 23:07:22 +05:30
20200411125638_add_domain_to_accounts.rb Feature: Conversation Continuity with Email (#770) 2020-04-30 20:20:26 +05:30
20200417093432_remove_name_from_channels.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30
20200418124534_add_sender_to_messages.rb Chore: Convert Message Sender to polymorphic (#740) 2020-06-27 21:34:53 +05:30
20200422130153_create_notifications.rb Chore: Fix data migration in notification settings (#797) 2020-05-01 22:30:57 +05:30
20200429082655_add_medium_to_twilio_sms.rb Feature: Twilio Whatsapp Integration (#779) 2020-04-30 01:41:13 +05:30
20200430163438_create_integrations_hooks.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
20200503151130_add_account_feature_flag.rb Feature: Feature flags on account (#814) (#815) 2020-05-04 23:06:42 +05:30
20200504144712_add_index_on_notification_subscriptions.rb Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30
20200509044639_add_hide_input_flag_to_bot_config.rb Feature: Customise widget for bot conversations (#834) 2020-05-09 22:02:43 +05:30
20200510112339_create_installation_config.rb Feature: Installation global config (#839) (#840) 2020-05-10 22:40:36 +05:30
20200510154151_add_reference_id_to_conversation.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
20200520125815_add_active_at_to_account_users.rb Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
20200522115645_reload_config.rb Enhancement: Threaded email replies for a conversation (#885) (#886) 2020-05-22 18:14:18 +05:30
20200605130625_agent_away_message_to_auto_reply.rb Feature: Inbox greeting message (#927) 2020-06-09 23:54:35 +05:30
20200606132552_create_labels.rb Feature: Label APIs (#931) 2020-06-07 11:17:13 +05:30
20200607140737_remove_subscriptions.rb Chore: Remove dead code related to billing (#935) 2020-06-07 20:31:48 +05:30
20200610143132_rename_reference_id.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
20200625124400_migrate_and_add_unique_index_to_labels.rb Feature: Improve label experience (#975) 2020-06-25 21:04:03 +05:30
20200625154254_add_default_value_to_color.rb Chore: Add default value for label color (#981) 2020-06-25 21:33:56 +05:30
20200629122646_add_availability_to_user.rb Feature: Availability Statuses (#874) 2020-07-04 11:42:47 +05:30
20200704173104_add_twitter_feature_flag.rb Chore: Feature Flags for Channels (#1010) 2020-07-06 11:16:19 +05:30
20200709145000_remove_multiple_feature_flags.rb Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30