From 76c22f0991e833f090324a0f815cad44c2866b97 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 17 Jul 2015 17:03:42 +0200 Subject: [PATCH] Fixed bug: On init setups, seeds.rb isn't started. --- db/migrate/20150717000001_facebook_article_types.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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