diff --git a/db/migrate/20150717000001_facebook_article_types.rb b/db/migrate/20150717000001_facebook_article_types.rb index 9d02545ca..b8fad083f 100644 --- a/db/migrate/20150717000001_facebook_article_types.rb +++ b/db/migrate/20150717000001_facebook_article_types.rb @@ -1,6 +1,9 @@ class FacebookArticleTypes < ActiveRecord::Migration def up - facebook_at = Ticket::Article::Type.find_by( name: 'facebook' ) + facebook_at = Ticket::Article::Type.find_by( name: 'facebook' ) + + return if !facebook_at + facebook_at.name = 'facebook feed post' facebook_at.save