From 10c3676679a23b112ec0dc8927ccd6d73bbe3537 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 17 Jul 2015 16:55:00 +0200 Subject: [PATCH] Updated facebook article types. --- .../20150717000001_facebook_article_types.rb | 14 ++++++++++++++ db/seeds.rb | 7 ++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20150717000001_facebook_article_types.rb diff --git a/db/migrate/20150717000001_facebook_article_types.rb b/db/migrate/20150717000001_facebook_article_types.rb new file mode 100644 index 000000000..9d02545ca --- /dev/null +++ b/db/migrate/20150717000001_facebook_article_types.rb @@ -0,0 +1,14 @@ +class FacebookArticleTypes < ActiveRecord::Migration + def up + facebook_at = Ticket::Article::Type.find_by( name: 'facebook' ) + facebook_at.name = 'facebook feed post' + facebook_at.save + + Ticket::Article::Type.create( + name: 'facebook feed comment', + communication: true, + updated_by_id: 1, + created_by_id: 1 + ) + end +end diff --git a/db/seeds.rb b/db/seeds.rb index c90e5804d..a28b1e794 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1501,9 +1501,10 @@ Ticket::Article::Type.create_if_not_exists( id: 4, name: 'fax', communication: t Ticket::Article::Type.create_if_not_exists( id: 5, name: 'phone', communication: true ) Ticket::Article::Type.create_if_not_exists( id: 6, name: 'twitter status', communication: true ) Ticket::Article::Type.create_if_not_exists( id: 7, name: 'twitter direct-message', communication: true ) -Ticket::Article::Type.create_if_not_exists( id: 8, name: 'facebook', communication: true ) -Ticket::Article::Type.create_if_not_exists( id: 9, name: 'note', communication: false ) -Ticket::Article::Type.create_if_not_exists( id: 10, name: 'web', communication: true ) +Ticket::Article::Type.create_if_not_exists( id: 8, name: 'facebook feed post', communication: true ) +Ticket::Article::Type.create_if_not_exists( id: 9, name: 'facebook feed comment', communication: true ) +Ticket::Article::Type.create_if_not_exists( id: 10, name: 'note', communication: false ) +Ticket::Article::Type.create_if_not_exists( id: 11, name: 'web', communication: true ) Ticket::Article::Sender.create_if_not_exists( id: 1, name: 'Agent' ) Ticket::Article::Sender.create_if_not_exists( id: 2, name: 'Customer' )