Updated facebook article types.
This commit is contained in:
parent
4eef31faeb
commit
10c3676679
2 changed files with 18 additions and 3 deletions
14
db/migrate/20150717000001_facebook_article_types.rb
Normal file
14
db/migrate/20150717000001_facebook_article_types.rb
Normal file
|
@ -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
|
|
@ -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' )
|
||||
|
|
Loading…
Reference in a new issue