chore: Add migration to set the default empty string value for contact name (#7052)

Fixes: https://linear.app/chatwoot/issue/CW-1650/issue-with-the-contact-name
This commit is contained in:
Muhsin Keloth
2023-05-11 17:35:19 +05:30
committed by GitHub
parent d99997d17d
commit c97d6021e0
3 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class SetDefaultEmptyStringForContactName < ActiveRecord::Migration[7.0]
def change
change_column_default :contacts, :name, from: nil, to: ''
end
end