forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
37 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
class LogConversation < ActiveRecord::Migration[7.0] | ||
def change | ||
conversation = Conversation.find_by(display_id: 33053) | ||
conversation = Conversation.find_by(display_id: 33_053) | ||
|
||
if conversation.present? | ||
puts 'logging conversation' | ||
puts conversation.attributes | ||
conversation.messages.each do |msg| | ||
puts msg.attributes | ||
end | ||
return unless conversation.present? | ||
|
||
puts 'logging conversation' | ||
puts conversation.attributes | ||
conversation.messages.each do |msg| | ||
puts msg.attributes | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
class AddLabelsToDigitalTolk < ActiveRecord::Migration[7.0] | ||
def change | ||
account = Account.find(1) | ||
Digitaltolk::ChangeContactKindService::KIND_LABELS.each do |key, value| | ||
label = account.labels.find_or_create_by({title: value}) | ||
Digitaltolk::ChangeContactKindService::KIND_LABELS.each do |_key, value| | ||
label = account.labels.find_or_create_by({ title: value }) | ||
|
||
label.update({ | ||
description: value, | ||
color: Faker::Color.hex_color, | ||
show_on_sidebar: true | ||
}) | ||
description: value, | ||
color: Faker::Color.hex_color, | ||
show_on_sidebar: true | ||
}) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters