Fixed bug: On init setups, seeds.rb isn't started.

This commit is contained in:
Thorsten Eckel 2015-07-17 17:03:42 +02:00
parent 21ce374446
commit 76c22f0991

View file

@ -1,6 +1,9 @@
class FacebookArticleTypes < ActiveRecord::Migration class FacebookArticleTypes < ActiveRecord::Migration
def up 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.name = 'facebook feed post'
facebook_at.save facebook_at.save